/* ==========================================================================
   Aitheria AI Studio · sistema editorial
   Papel + tinta · Gunken (titulares, minúscula) · Avenir Next (texto) · mono (datos)

   Escala tipográfica (una sola por rol, en toda la página):
     --t-hero     titular del hero
     --t-h2       titular de sección
     --t-h3       subtítulos (capítulos, servicios, pasos)
     --t-lead     texto de entrada
     --t-body     texto corrido
     --t-small    texto de apoyo
     kicker 12 · mono 11
   ========================================================================== */

@font-face {
  font-family: "Gunken";
  src: url("../fonts/gunken.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F4EE;
  --paper-2: #EEEBE3;
  --ink: #0B0D13;
  --ink-80: rgba(11, 13, 19, .80);
  --ink-70: rgba(11, 13, 19, .70);
  --ink-55: rgba(11, 13, 19, .55);
  --ink-12: rgba(11, 13, 19, .12);
  --paper-80: rgba(246, 244, 238, .80);
  --paper-60: rgba(246, 244, 238, .60);
  --paper-40: rgba(246, 244, 238, .40);
  --paper-14: rgba(246, 244, 238, .14);

  --f-display: "Gunken", "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;
  --f-body: "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-hero: clamp(34px, 4.2vw, 64px);
  --t-h2: clamp(30px, 3.4vw, 52px);
  --t-h3: clamp(21px, 1.7vw, 26px);
  --t-lead: clamp(17px, 1.25vw, 19px);
  --t-body: 16px;
  --t-small: 15px;

  --gutter: 24px;
  --margin: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 72px;
  --space-section: clamp(96px, 11vw, 160px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol, blockquote { margin: 0; padding: 0; }
p, li { text-wrap: pretty; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ── Roles tipográficos ────────────────────────────────────────────────── */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

/* La coma de Gunken se confunde con un punto: se dibuja con la fuente de texto */
.display .comma {
  font-family: var(--f-body);
  font-weight: 500;
  margin-left: -.04em;
}

.kicker {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 36em;
}

/* ── Layout ────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }

/* Cabecera de sección: índice + etiqueta a la izquierda, titular a la derecha */
.section-head {
  row-gap: 20px;
  margin-bottom: clamp(56px, 6vw, 96px);
  align-items: start;
}
.section-head__meta {
  grid-column: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.section-head__meta .mono { color: var(--ink-55); }
.section-head__title {
  grid-column: 4 / -1;
  font-size: var(--t-h2);
  max-width: 15em;
}
.section-head__lead { grid-column: 4 / span 6; }

/* Marcas de registro */
.crosshair {
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  opacity: .6;
}
.crosshair::before,
.crosshair::after { content: ""; position: absolute; background: currentColor; }
.crosshair::before { left: 6px; top: 0; width: 1px; height: 13px; }
.crosshair::after { top: 6px; left: 0; height: 1px; width: 13px; }

/* ── Botones ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: #fff; border-color: #fff; }
.btn--ghost-paper { color: var(--paper); border-color: var(--paper-40); }
.btn--ghost-paper:hover { border-color: var(--paper); background: var(--paper-14); }

.link-line { position: relative; display: inline-block; }
.link-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Navegación ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-solid {
  color: var(--ink);
  background: rgba(246, 244, 238, .88);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--ink-12);
}
.nav.is-solid.is-dark {
  color: var(--paper);
  background: rgba(11, 13, 19, .84);
  border-bottom-color: var(--paper-14);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__iso { width: 28px; height: 28px; }
.brand__word { width: 96px; height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a { opacity: .78; transition: opacity .3s; }
.nav__links a:hover,
.nav__links a[aria-current="true"] { opacity: 1; }

.nav__end { display: flex; align-items: center; gap: 20px; }

.lang { display: inline-flex; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.lang button { opacity: .45; padding: 6px 2px; transition: opacity .3s; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang span { opacity: .3; padding: 6px 0; }

.nav__cta { min-height: 38px; padding: 0 18px; font-size: 13px; border-color: currentColor; }
.nav:not(.is-solid) .nav__cta { border-color: var(--paper-40); }
.nav:not(.is-solid) .nav__cta:hover,
.nav.is-dark .nav__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav.is-solid:not(.is-dark) .nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.nav__toggle span { position: relative; display: block; width: 22px; height: 1px; background: currentColor; }
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 22px; height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--nav-h) + 32px) var(--margin) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(36px, 10vw, 56px);
  padding-block: 8px;
  border-bottom: 1px solid var(--paper-14);
}
.menu__links .mono { color: var(--paper-40); }
.menu__foot { display: flex; flex-direction: column; gap: 20px; }
.menu__foot .lang { font-size: 13px; }
body.menu-open .nav { color: var(--paper); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-io); }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7.5s linear;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { transform: scale(1); }

/* Oscurecido mínimo: solo donde hay texto, para que mande la imagen */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,13,19,.38) 0%, rgba(11,13,19,0) 16%),
    linear-gradient(0deg, rgba(11,13,19,.62) 0%, rgba(11,13,19,.18) 30%, rgba(11,13,19,0) 48%),
    linear-gradient(90deg, rgba(11,13,19,.32) 0%, rgba(11,13,19,0) 45%);
}

.hero__frame { position: absolute; inset: calc(var(--nav-h) + 8px) var(--margin) 24px; pointer-events: none; }
.hero__frame .crosshair:nth-child(1) { left: -6px; top: -6px; }
.hero__frame .crosshair:nth-child(2) { right: -6px; top: -6px; }
.hero__frame .crosshair:nth-child(3) { left: -6px; bottom: -6px; }
.hero__frame .crosshair:nth-child(4) { right: -6px; bottom: -6px; }

.hero__top { position: absolute; top: calc(var(--nav-h) + 28px); left: 0; right: 0; }
.hero__top .wrap { display: flex; justify-content: space-between; gap: 24px; color: var(--paper-80); }

.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(92px, 11vh, 120px); }
.hero__content .grid { align-items: end; row-gap: 24px; text-shadow: 0 1px 18px rgba(11, 13, 19, .28); }
.hero__content .btn { text-shadow: none; }
.hero__title {
  grid-column: 1 / span 7;
  font-size: var(--t-hero);
  line-height: 1.02;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.hero.is-ready .hero__title .line > span { transform: none; }
.hero.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .08s; }

.hero__aside {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s;
}
.hero.is-ready .hero__aside { opacity: 1; transform: none; }
.hero__aside p { color: var(--paper-80); font-size: var(--t-small); line-height: 1.6; max-width: 30em; }

.hero__index { position: absolute; left: 0; right: 0; bottom: 40px; }
.hero__index ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hero__index button {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--paper-60);
  transition: color .3s;
}
.hero__index button:hover,
.hero__index button[aria-current="true"] { color: var(--paper); }
.hero__index .bar { position: relative; height: 1px; width: 100%; background: var(--paper-14); overflow: hidden; }
.hero__index .bar i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hero__index button[aria-current="true"] .bar i { animation: progress var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero__index button[aria-current="true"] .bar i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ── Portafolio ────────────────────────────────────────────────────────── */

.chapter { margin-bottom: clamp(80px, 9vw, 136px); }
.chapter:last-child { margin-bottom: 0; }

.chapter__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--ink-12);
}
.chapter__head .mono { color: var(--ink-55); }
.chapter__name { font-size: var(--t-h3); }

.plates { row-gap: 40px; align-items: stretch; }
.plate { display: flex; flex-direction: column; }
/* La vertical toma la altura de la ancha de su fila: mismo borde arriba y abajo */
.plate--tall .plate__media { flex: 1; aspect-ratio: auto; min-height: 0; }

.plate__media { position: relative; overflow: hidden; background: var(--paper-2); }
.plate__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.plate:hover .plate__media img { transform: scale(1.03); }
.plate__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: top;
  transition: transform .7s var(--ease-io);
}
.plate.is-in .plate__media::after { transform: scaleY(0); }
.plate figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--ink-55); }
.plate figcaption .mono:first-child { color: var(--ink); }

.r-3x2 { aspect-ratio: 3 / 2; }
.r-3x4 { aspect-ratio: 3 / 4; }

/* Ancha + vertical, alternando lados como en el original */
.c-wide-l { grid-column: 1 / span 8; }
.c-tall-r { grid-column: 9 / span 4; }
.c-tall-l { grid-column: 1 / span 4; }
.c-wide-r { grid-column: 5 / span 8; }

/* Antes / después */
.compare-list { row-gap: 56px; }
.case { display: flex; flex-direction: column; gap: 14px; }
.case:first-child { grid-column: 2 / span 4; }
.case:last-child { grid-column: 8 / span 4; }
.case__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.case__head .mono { color: var(--ink-55); }

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--paper); pointer-events: none; }
.ba__handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--ink-12);
}
.ba__handle svg { width: 20px; height: 20px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 4px; }

.case__actions { display: flex; justify-content: space-between; gap: 8px; }
.chip-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  color: var(--ink-70);
  transition: border-color .3s, color .3s, background-color .3s;
}
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Video ─────────────────────────────────────────────────────────────── */

.film { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 6vw, 96px); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__hud { position: absolute; inset: 20px 20px auto; pointer-events: none; }
.player__hud .row { display: flex; justify-content: space-between; gap: 16px; }
.player__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper);
  margin-right: 8px;
  vertical-align: 1px;
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.player__sound {
  position: absolute;
  right: 20px; bottom: 20px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper-40);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(11, 13, 19, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .3s, background-color .3s;
}
.player__sound:hover { border-color: var(--paper); }
.player__sound svg { width: 18px; height: 18px; }
.player__sound .snd--on { display: none; }
.player__sound[aria-pressed="true"] .snd--on { display: block; }
.player__sound[aria-pressed="true"] .snd--off { display: none; }
.player__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--paper-14); }
.player__progress i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* ── Servicios ─────────────────────────────────────────────────────────── */

.svc-list { border-top: 1px solid var(--ink); }
.svc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 12px;
  align-items: baseline;
  padding-block: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--ink-12);
}
.svc { align-items: start; }
.svc__num { grid-column: 1 / span 3; color: var(--ink-55); padding-top: 6px; }
.svc__title { grid-column: 4 / span 3; font-size: var(--t-h3); transition: transform .5s var(--ease); }
.svc:hover .svc__title { transform: translateX(10px); }
.svc__text { grid-column: 7 / span 4; font-size: var(--t-body); color: var(--ink-70); }
.svc__media {
  grid-column: 11 / span 2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }

/* ── Proceso ───────────────────────────────────────────────────────────── */

.process { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.step { position: relative; padding-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: calc(var(--gutter) * -1);
  height: 1px;
  background: var(--ink-12);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  transition: background-color .4s var(--ease) .1s;
}
.step.is-in::after { background: var(--ink); }
.step__num { color: var(--ink-55); }
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--ink-70); max-width: 26em; }

.process__note { margin-top: clamp(64px, 7vw, 104px); }
.process__note p {
  grid-column: 4 / span 7;
  padding-top: 24px;
  border-top: 1px solid var(--ink-12);
  font-size: var(--t-lead);
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-70);
}

/* ── Contacto ──────────────────────────────────────────────────────────── */

.contact { background: var(--ink); color: var(--paper); }
.contact .section-head { margin-bottom: 0; }
.contact .section-head__meta { border-top-color: var(--paper); }
.contact .section-head__meta .mono { color: var(--paper-40); }
.contact .lead { color: var(--paper-60); }
.contact__actions { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.contact__social { grid-column: 4 / -1; margin-top: 16px; }
.contact__social a { display: inline-flex; color: var(--paper-40); transition: color .3s; }
.contact__social a:hover { color: var(--paper); }
.contact__social svg { width: 20px; height: 20px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 80px) 0 28px; border-top: 1px solid var(--paper-14); }
.footer__word { width: 100%; height: auto; margin-bottom: 28px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--paper-40); }
.footer__row nav { display: flex; gap: 24px; }
.footer__row a:hover { color: var(--paper); }

/* ── Páginas legales ───────────────────────────────────────────────────── */

.legal { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 112px)); padding-bottom: var(--space-section); }
.legal__body { grid-column: 4 / -1; display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
.legal__body section { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink-12); }
.legal__body h2 { font-size: var(--t-h3); }
.legal__body p, .legal__body li { color: var(--ink-70); }
.legal__body ul { display: flex; flex-direction: column; gap: 8px; }
.legal__body li { padding-left: 20px; position: relative; }
.legal__body li::before { content: "—"; position: absolute; left: 0; color: var(--ink-55); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__updated { color: var(--ink-55); }
.legal__cta {
  margin-top: 24px;
  padding: clamp(32px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.legal__cta h2 { font-size: var(--t-h3); }
.legal__cta p { color: var(--paper-60); max-width: 32em; }

/* ── Revelado ──────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0s) * .5);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav__links, .nav__end .nav__cta, .nav__end .lang { display: none; }
  .nav__toggle { display: inline-flex; }

  .hero__title { grid-column: 1 / span 9; }
  .hero__aside { grid-column: 1 / span 7; }

  .section-head__meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .section-head__title,
  .section-head__lead,
  .contact__actions,
  .contact__social { grid-column: 1 / -1; }

  .case:first-child { grid-column: 1 / span 6; }
  .case:last-child { grid-column: 7 / span 6; }

  .svc__num { grid-column: 1 / span 1; }
  .svc__title { grid-column: 2 / span 4; }
  .svc__text { grid-column: 6 / span 5; }
  .svc__media { grid-column: 11 / span 2; }

  .process__note p { grid-column: 1 / -1; }
  .legal__body { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .hero__title { font-size: var(--t-hero); }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(11,13,19,.4) 0%, rgba(11,13,19,0) 16%),
      linear-gradient(0deg, rgba(11,13,19,.78) 0%, rgba(11,13,19,.35) 38%, rgba(11,13,19,0) 60%);
  }
  .hero__title, .hero__aside { grid-column: 1 / -1; }
  .hero { --t-hero: clamp(22px, 7.2vw, 40px); }
  .hero__content { bottom: 64px; }
  .hero__index { bottom: 28px; }
  .hero__index ol { gap: 6px; }
  .hero__index .label { display: none; }
  .hero__top .wrap > :last-child { display: none; }

  .plates > * { grid-column: 1 / -1 !important; }
  .plate--tall .plate__media { flex: none; aspect-ratio: 3 / 4; }
  .case:first-child, .case:last-child { grid-column: 1 / -1; margin-top: 0; }

  .svc { grid-template-columns: 40px 1fr 96px; row-gap: 8px; }
  .svc__num { grid-column: 1; grid-row: 1; }
  .svc__title { grid-column: 2; grid-row: 1; }
  .svc__text { grid-column: 2 / -1; grid-row: 2; }
  .svc__media { grid-column: 3; grid-row: 1; }

  .steps { grid-template-columns: 1fr; row-gap: 48px; }
  .step::before { right: 0; }

  .player__hud { inset: 12px 12px auto; }
  .player__sound { right: 12px; bottom: 12px; }
}

@media (max-width: 520px) {
  .contact__actions .btn { width: 100%; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero__slide img { transform: none !important; }
}
