/* ==========================================================================
   AutomaWorks — hoja de estilos (v1.2)
   Paleta: Palladian, Oatmeal, Blue Fantastic, Abyssal Anchorfish Blue,
           Burning Flame, Truffle Trouble.
   Contraste: Burning Flame nunca como texto sobre fondo claro (≈1,4:1).
   Sobre claro, el acento es Truffle (≈4,8:1).
   Oxygen solo tiene pesos 300, 400 y 700.
   ========================================================================== */

:root {
  --palladian: #EEE9DF;
  --oatmeal:   #C9C1B1;
  --blue:      #2C3B4D;
  --abyss:     #1B2632;
  --flame:     #FFB162;
  --truffle:   #A35139;
  --frame:     #121A23;

  --ink:       var(--abyss);
  --ink-muted: #56606C;
  --rule:      rgba(27, 38, 50, .16);

  --font: "Oxygen", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap:   74rem;
  --space-section: clamp(3.5rem, 6.5vw, 5.5rem);

  --step--1: .8125rem;
  --step-0:  1rem;
  --step-1:  1.125rem;
  --step-2:  clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
  --step-3:  clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem);
  --step-4:  clamp(2.5rem, 1.3rem + 4.4vw, 4.6rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--palladian);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: var(--step-3); letter-spacing: -.03em; }
h3 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.3; }
p  { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--truffle); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--truffle); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--flame); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--abyss); color: var(--palladian); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .7rem 1.25rem;
  font: 700 .95rem/1.2 var(--font);
  text-decoration: none; border: 2px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--ink   { background: var(--abyss); color: var(--palladian); }
.btn--ink:hover { background: var(--truffle); color: var(--palladian); }
.btn--line  { border-color: var(--abyss); color: var(--abyss); background: transparent; }
.btn--line:hover { background: var(--abyss); color: var(--palladian); }
.btn--flame { background: var(--flame); color: var(--abyss); }
.btn--flame:hover { background: var(--palladian); color: var(--abyss); }
.btn--light { border-color: var(--palladian); color: var(--palladian); background: transparent; }
.btn--light:hover { background: var(--palladian); color: var(--abyss); }

.link { font-weight: 700; color: var(--truffle); text-decoration: underline; text-decoration-thickness: 2px; }
.on-dark .link { color: var(--flame); }
.on-dark .link:hover { text-decoration-color: var(--palladian); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--palladian); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.03em; text-decoration: none; }
.brand__mark { width: 1.3rem; height: 1.3rem; flex: none; }

.nav-toggle { display: none; background: none; border: 2px solid var(--abyss); color: var(--abyss); font: 700 .9rem var(--font); padding: .4rem .75rem; border-radius: 2px; cursor: pointer; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-size: .95rem; }
.nav a { text-decoration: none; padding-block: .35rem; }
.nav a:not(.btn):hover { text-decoration: underline; }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--truffle); text-decoration-thickness: 2px; }
.nav .btn { min-height: 2.5rem; padding: .45rem 1rem; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--palladian); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1.25rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; border-bottom: 2px solid transparent; }
}

/* ---------- Hero ---------- */
.hero { background: var(--frame); padding: clamp(.75rem, 2vw, 1.25rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto minmax(9rem, auto) minmax(10rem, auto);
  grid-template-areas:
    "head head consult"
    "sub  software consult"
    "integr auto ia";
  min-height: min(80vh, 46rem);
}

.hero__head {
  grid-area: head; background: var(--palladian);
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.25rem) clamp(1rem, 2vw, 1.5rem);
  display: flex; align-items: flex-end;
}
.hero__head h1 { max-width: 13ch; }

.hero__sub {
  grid-area: sub; background: var(--palladian);
  padding: 0 clamp(1.5rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1.35rem;
}
.hero__sub p { max-width: 44ch; color: var(--blue); font-size: .98rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Cada pieza del hero es una solución y enlaza a su detalle */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem;
  padding: clamp(1.1rem, 2vw, 1.75rem);
  text-decoration: none;
}
.tile__name { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tile__desc { font-size: .875rem; line-height: 1.45; max-width: 27ch; opacity: .86; }
.tile:hover .tile__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

.tile--consult  { grid-area: consult;  background: var(--blue);    color: var(--palladian); }
.tile--software { grid-area: software; background: var(--oatmeal); color: var(--abyss); }
.tile--integr   { grid-area: integr;   background: var(--flame);   color: var(--abyss); }
.tile--auto     { grid-area: auto;     background: var(--truffle); color: var(--palladian); }
.tile--ia       { grid-area: ia;       background: var(--abyss);   color: var(--palladian); }
.tile--consult .tile__name { font-size: var(--step-3); max-width: 9ch; }

/* Único movimiento automático de la web: las piezas encajan al cargar */
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: encajar 1s cubic-bezier(.2, .75, .15, 1) both; animation-delay: var(--d, 0ms); }
  .tile--consult  { --dx: 2.5rem;  --dy: -1.5rem; --r: 1.2deg;  --d: 120ms; }
  .tile--software { --dx: 1.25rem; --dy: 1.75rem; --r: -1.6deg; --d: 260ms; }
  .tile--integr   { --dx: -2rem;   --dy: 2.25rem; --r: -1deg;   --d: 380ms; }
  .tile--auto     { --dx: .75rem;  --dy: 3rem;    --r: 1.4deg;  --d: 470ms; }
  .tile--ia       { --dx: 2.25rem; --dy: 2rem;    --r: -.8deg;  --d: 560ms; }
}
@keyframes encajar {
  from { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto repeat(3, minmax(8rem, auto));
    grid-template-areas: "head head" "sub sub" "consult software" "integr auto" "ia ia";
    min-height: 0;
  }
  .hero__sub { padding-top: 1.25rem; }
  .tile--consult .tile__name { font-size: var(--step-2); }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--space-section); }
.section--dark  { background: var(--abyss); color: var(--palladian); }
.section--blue  { background: var(--blue);  color: var(--palladian); }
.section--oat   { background: var(--oatmeal); }
.section--flame { background: var(--flame); color: var(--abyss); }

.section__head { display: grid; gap: .8rem; max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--blue); max-width: 54ch; }
.on-dark .section__head p { color: var(--oatmeal); }
.section__head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 1rem 3rem; }
@media (max-width: 760px) { .section__head--split { grid-template-columns: 1fr; } }
.section__foot { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* Qué hace (fondo claro) */
.offer { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--abyss); }
.offer li {
  display: grid; grid-template-columns: minmax(13rem, 1fr) 1.7fr; gap: .5rem 3rem;
  padding-block: 1.35rem; border-bottom: 1px solid var(--rule);
}
.offer__name { display: flex; align-items: center; gap: .8rem; font-size: var(--step-1); }
.offer__name a { text-decoration: none; }
.offer__name a:hover { text-decoration: underline; text-decoration-color: var(--truffle); }
.offer__swatch { width: .8rem; height: .8rem; flex: none; }
.offer__text { display: grid; gap: .3rem; color: var(--blue); max-width: 58ch; }
.offer__tech { font-size: var(--step--1); color: var(--ink-muted); }
@media (max-width: 700px) { .offer li { grid-template-columns: 1fr; } }

/* ---------- Proyectos: captura enmarcada en un bloque de color ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 1.75rem; }
.work__item { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; }
.work__frame { background: var(--c, var(--blue)); padding: .9rem .9rem 0; aspect-ratio: 16 / 11; overflow: hidden; }
.work__item:nth-child(4n+1) .work__frame { --c: var(--blue); }
.work__item:nth-child(4n+2) .work__frame { --c: var(--flame); }
.work__item:nth-child(4n+3) .work__frame { --c: var(--truffle); }
.work__item:nth-child(4n+4) .work__frame { --c: var(--abyss); }
.work__img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  background: var(--palladian); box-shadow: 0 -1px 0 rgba(0,0,0,.08);
  transition: transform .35s cubic-bezier(.2, .75, .15, 1);
}
.work__item:hover .work__img { transform: translateY(-.35rem); }
.work__title { font-size: var(--step-1); font-weight: 700; letter-spacing: -.02em; margin-top: .25rem; }
.work__item:hover .work__title { text-decoration: underline; text-decoration-color: var(--truffle); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.work__item p { color: var(--ink-muted); font-size: .92rem; line-height: 1.55; }
.chips { list-style: none; margin: .1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { font-size: .75rem; line-height: 1; padding: .35rem .5rem; border: 1px solid rgba(27, 38, 50, .28); color: var(--blue); }
.section--oat .chips li { border-color: rgba(27, 38, 50, .4); }
.section--oat .work__item p { color: var(--blue); }
@media (max-width: 980px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .work { grid-template-columns: 1fr; } }

.plain-list { list-style: none; margin: 0; padding: 0; columns: 2 20rem; column-gap: 3rem; }
.plain-list li { break-inside: avoid; padding-block: .9rem; border-top: 1px solid var(--rule); }
.plain-list a { font-weight: 700; }
.plain-list span { display: block; color: var(--ink-muted); font-size: .92rem; }

/* ---------- Cómo trabajo: escalera de bloques ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: paso;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; align-items: end;
}
.steps li {
  counter-increment: paso; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 1.35rem 1.35rem 1.5rem; min-height: 15rem;
  background: var(--c); color: var(--t);
}
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.75rem); font-weight: 300; line-height: .9; letter-spacing: -.05em;
}
.steps h3 { font-size: var(--step-2); letter-spacing: -.03em; margin-bottom: .45rem; }
.steps p { font-size: .9rem; line-height: 1.55; opacity: .88; }
.steps li:nth-child(1) { --c: var(--oatmeal);   --t: var(--abyss);     min-height: 15rem; }
.steps li:nth-child(2) { --c: var(--flame);     --t: var(--abyss);     min-height: 18rem; }
.steps li:nth-child(3) { --c: var(--truffle);   --t: var(--palladian); min-height: 21rem; }
.steps li:nth-child(4) { --c: var(--palladian); --t: var(--abyss);     min-height: 24rem; }
.steps-note { margin-top: 1.5rem; color: var(--oatmeal); font-size: .92rem; max-width: 60ch; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .steps li:nth-child(n) { min-height: 13rem; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(n) { min-height: 0; } }

/* ---------- Quién hay detrás ---------- */
.person { display: grid; grid-template-columns: minmax(14rem, .8fr) 1.5fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.person__brand { display: grid; gap: 1rem; justify-items: start; }
.person__mark { width: 100%; max-width: 17rem; height: auto; }
.person__wordmark { font-size: var(--step-3); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.person__body { display: grid; gap: 1rem; }
.person__body > p { color: var(--blue); max-width: 58ch; }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.signature img { width: 4.25rem; height: 4.25rem; object-fit: cover; object-position: center 20%; flex: none; }
.signature strong { display: block; font-size: 1.05rem; }
.signature span { display: block; color: var(--ink-muted); font-size: .9rem; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.75rem; font-size: .95rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-muted); }
@media (max-width: 800px) {
  .person { grid-template-columns: 1fr; }
  .person__mark { max-width: 10rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .6rem; }
}

/* ---------- Asistente ---------- */
.assistant { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.assistant__intro { display: grid; gap: 1rem; }
.assistant__intro p { color: var(--oatmeal); max-width: 42ch; }
.assistant__intro small { color: rgba(238, 233, 223, .6); font-size: var(--step--1); max-width: 42ch; }
@media (max-width: 900px) { .assistant { grid-template-columns: 1fr; } }

/* ---------- Llamada final ---------- */
.cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem 4rem; align-items: end; }
.cta h2 { max-width: 20ch; }
.cta p { margin-bottom: 1.25rem; max-width: 38ch; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 18ch; margin-bottom: 1.1rem; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.75rem); }
.page-head p { color: var(--blue); max-width: 58ch; font-size: var(--step-1); }

.page-index { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.page-index a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--abyss); text-decoration: none; font-size: .9rem; font-weight: 700; }
.page-index a:hover { background: var(--abyss); color: var(--palladian); }

.solution { display: grid; grid-template-columns: minmax(13rem, 1fr) 2fr; gap: 1.5rem clamp(2rem, 6vw, 5.5rem); padding-block: clamp(2.75rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.solution__aside { display: grid; gap: .9rem; align-content: start; position: sticky; top: 5.5rem; }
.solution__aside h2 { font-size: var(--step-2); }
.solution__swatch { width: 2.5rem; height: 2.5rem; }
.solution__body { display: grid; gap: 1.1rem; max-width: 44rem; }
.solution__lead { font-size: var(--step-1); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.solution__body > p { color: var(--blue); }
.solution__body h3 { font-size: .95rem; margin-top: .25rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.3rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--truffle); }
.tech-line { font-size: var(--step--1); color: var(--ink-muted); border-top: 1px solid var(--rule); padding-top: .85rem; }
@media (max-width: 800px) { .solution { grid-template-columns: 1fr; } .solution__aside { position: static; } }

.honest { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem clamp(2rem, 6vw, 5.5rem); }
.honest p { color: var(--oatmeal); max-width: 56ch; }
.honest p + p { margin-top: .9rem; }
@media (max-width: 800px) { .honest { grid-template-columns: 1fr; } }

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; margin: 0; }
.stack div { border-top: 2px solid var(--abyss); padding-top: .85rem; }
.stack dt { font-weight: 700; margin-bottom: .25rem; }
.stack dd { margin: 0; color: var(--ink-muted); font-size: .95rem; }
@media (max-width: 800px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .stack { grid-template-columns: 1fr; } }

.faq { max-width: 50rem; border-top: 2px solid var(--abyss); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-size: var(--step-1); font-weight: 700; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .7rem; height: .7rem; border-right: 2px solid var(--abyss); border-bottom: 2px solid var(--abyss); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding: 0 0 1.25rem; color: var(--blue); max-width: 62ch; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #F6F3EC; border: 1px solid var(--blue); border-radius: 2px; padding: .75rem .85rem; }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--truffle); outline-offset: 0; border-color: var(--truffle); }
.field[data-error] input, .field[data-error] textarea, .field[data-error] select { border-color: var(--truffle); border-width: 2px; }
.field__error { color: var(--truffle); font-size: .9rem; font-weight: 700; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .92rem; font-weight: 400 !important; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--abyss); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--truffle); background: #F6F3EC; }
.notice--ok { border-left-color: var(--blue); }
.notice strong { display: block; margin-bottom: .2rem; }
.legal-note { font-size: .8rem; color: var(--ink-muted); line-height: 1.5; max-width: 62ch; }
.contact__aside { display: grid; gap: 2rem; }
.contact__aside dl { margin: 0; display: grid; gap: 1.1rem; }
.contact__aside dt { font-weight: 700; }
.contact__aside dd { margin: .15rem 0 0; color: var(--ink-muted); }

.prose { max-width: 44rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose h2 { font-size: var(--step-2); margin: 2.25rem 0 .7rem; }
.prose p, .prose ul { margin: 0 0 1rem; color: var(--blue); }
.prose ul { padding-left: 1.2rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--abyss); color: var(--oatmeal); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.25rem; }
.site-footer .brand { color: var(--palladian); margin-bottom: .9rem; }
.site-footer h2 { font-size: .95rem; color: var(--palladian); margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--palladian); text-decoration: underline; text-decoration-color: var(--flame); }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(238, 233, 223, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: rgba(201, 193, 177, .75); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.lost { min-height: 60vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 4.5rem; }
.lost h1 { max-width: 16ch; }
.lost p { color: var(--blue); max-width: 48ch; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 44rem; margin-left: auto; background: var(--abyss); color: var(--palladian);
  border-top: 4px solid var(--flame); box-shadow: 0 1.25rem 3rem rgba(18, 26, 35, .35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.1rem 2rem; align-items: end; padding: 1.25rem 1.4rem; }
.cookie-banner__title { font-size: 1rem; letter-spacing: 0; margin-bottom: .3rem; }
.cookie-banner p { font-size: .9rem; line-height: 1.5; color: var(--oatmeal); max-width: 46ch; }
.cookie-banner__actions { display: flex; gap: .55rem; }
.cookie-banner__actions .btn { min-width: 7.25rem; min-height: 2.65rem; }
@media (max-width: 600px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; }
  .cookie-banner__inner { grid-template-columns: 1fr; }
  .cookie-banner__actions .btn { flex: 1; }
}

.footer-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.footer-link-btn:hover { color: var(--palladian); text-decoration: underline; text-decoration-color: var(--flame); }
.prose .footer-link-btn { color: var(--truffle); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.prose .footer-link-btn:hover { color: var(--abyss); text-decoration-color: var(--truffle); }

@media print {
  .site-header, .site-footer, .hero, #asistente, .cookie-banner { display: none; }
}
