/* =========================================================================
   Deporpress · Agencia de comunicación
   Concepto: narrativa por capítulos al estilo Apple. Bloques a sangre que
   alternan claro y oscuro, titulares grandes sobre imágenes con parallax,
   servicios en mosaico ("bento") y un único momento orquestado: la frase
   que se ilumina palabra a palabra al hacer scroll.
   ========================================================================= */

:root {
  /* Corporativos */
  --gold: rgb(200 160 100);          /* #C8A064 principal */
  --silver: rgb(175 175 175);        /* #AFAFAF secundario */
  --gold-ink: #8a6a36;               /* dorado oscurecido para texto pequeño sobre claro */
  --gold-soft: rgb(200 160 100 / .14);

  /* Neutros con un leve sesgo cálido hacia el dorado */
  --paper: #ffffff;
  --mist: #f6f5f3;
  --ink: #1b1a19;
  --muted: #6c6a67;
  --line: rgb(27 26 25 / .1);
  --nav-bg: rgb(255 255 255 / .72);
  --danger: #b42318;

  /* Capítulos oscuros: iguales en ambos temas */
  --night: #0b0b0b;
  --night-2: #171615;
  --night-ink: #f5f4f2;
  --night-muted: #a9a6a1;

  /* Logos según fondo */
  --logo-dark-text: block;
  --logo-light-text: none;

  /* Tipografía */
  --font-display: "Cabin", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step-hero: clamp(2.9rem, 8.4vw, 7rem);
  --step-1: clamp(2.2rem, 5.2vw, 4.25rem);
  --step-2: clamp(1.6rem, 3vw, 2.5rem);
  --step-3: clamp(1.2rem, 1.6vw, 1.5rem);
  --lead: clamp(1.15rem, 1.9vw, 1.5rem);

  /* Medidas */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold-ink: #d6b47f;
    --gold-soft: rgb(200 160 100 / .16);
    --paper: #000000;
    --mist: #141312;
    --ink: #f5f4f2;
    --muted: #a3a09b;
    --line: rgb(245 244 242 / .12);
    --nav-bg: rgb(12 12 12 / .72);
    --danger: #ff8a7a;
    --logo-dark-text: none;
    --logo-light-text: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --gold-ink: #d6b47f;
  --gold-soft: rgb(200 160 100 / .16);
  --paper: #000000;
  --mist: #141312;
  --ink: #f5f4f2;
  --muted: #a3a09b;
  --line: rgb(245 244 242 / .12);
  --nav-bg: rgb(12 12 12 / .72);
  --danger: #ff8a7a;
  --logo-dark-text: none;
  --logo-light-text: block;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Imagen con margen sobrante para el parallax */
.px-img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; object-fit: cover; will-change: transform; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.lead { font-size: var(--lead); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.gold { color: var(--gold); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #1b1a19; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 999px; text-decoration: none;
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1b1a19; }
.btn-gold:hover { background: #d4b07a; }
.btn-ghost { color: var(--gold-ink); padding-inline: .2em; }
.btn-ghost::after { content: "›"; font-size: 1.3em; line-height: 0; transition: transform .3s var(--ease); }
.btn-ghost:hover::after { transform: translateX(4px); }
.on-dark .btn-ghost { color: var(--gold); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.brand img { height: 30px; width: auto; }
.brand .logo-on-light { display: var(--logo-dark-text); }
.brand .logo-on-dark { display: var(--logo-light-text); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: .9rem; color: var(--ink); opacity: .78;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; color: var(--gold-ink); }
.nav-links .nav-cta { opacity: 1; background: var(--gold); color: #1b1a19; padding: .45em 1.1em; border-radius: 999px; font-weight: 600; }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current] { color: #1b1a19; background: #d4b07a; }
/* Las anclas no quedan tapadas por la cabecera fija */
section[id] { scroll-margin-top: calc(60px + env(safe-area-inset-top, 0px)); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: calc(60px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.15rem; font-family: var(--font-display); font-weight: 700; }
  .nav-links .nav-cta { display: inline-block; padding: .6em 1.4em; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section-mist { background: var(--mist); }
.on-dark { background: var(--night); color: var(--night-ink); }
.on-dark .lead, .on-dark .muted { color: var(--night-muted); }
.on-dark .eyebrow { color: var(--gold); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { font-size: var(--step-1); }

/* ---------- Hero portada ---------- */
.hero { padding-top: calc(60px + env(safe-area-inset-top, 0px) + clamp(56px, 9vw, 120px)); text-align: center; overflow: hidden; }
.hero .eyebrow { display: block; margin-bottom: 20px; }
.hero h1 { font-size: var(--step-hero); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin: 28px auto 0; text-align: center; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 36px; align-items: center; }
.hero-stage { margin-top: clamp(56px, 8vw, 96px); padding-inline: var(--gutter); }
.hero-frame {
  --p: 0;
  position: relative; max-width: 1400px; margin-inline: auto;
  aspect-ratio: 3 / 2; max-height: 82vh; width: 100%;
  border-radius: calc(var(--radius) * (1 - var(--p) * .6));
  overflow: hidden; background: var(--night);
  transform: scale(calc(.88 + var(--p) * .12));
  transform-origin: 50% 0;
  will-change: transform;
}
.hero-frame .px-img { object-position: 60% 40%; }
/* Capas dentro de la imagen de portada */
.hero { padding-bottom: clamp(96px, 14vw, 200px); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .35) 38%, transparent 62%),
    linear-gradient(to right, rgb(0 0 0 / .55), transparent 55%);
}
.hero-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: clamp(16px, 2.6vw, 32px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.glass-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
}
.glass-pill img { width: 28px; height: auto; }
.glass-pill .dot { color: var(--gold); }
.hero-since { padding-inline: 16px; font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.hero-mark {
  width: clamp(64px, 9vw, 128px); height: auto; margin-bottom: clamp(4px, 1.2vw, 16px);
  filter: drop-shadow(0 16px 32px rgb(0 0 0 / .5));
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 4vw, 56px);
  color: #fff; text-align: left;
  display: grid; gap: 14px; justify-items: start;
}
.hero-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero-claim {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 6.2vw, 5.4rem); line-height: .95; letter-spacing: -0.035em;
  max-width: 11ch; text-wrap: balance;
}
.hero-sub { color: rgb(255 255 255 / .78); font-size: clamp(.95rem, 1.3vw, 1.15rem); max-width: 44ch; line-height: 1.5; }
.hero-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li {
  font-size: .82rem; font-weight: 600; color: #fff;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgb(200 160 100 / .7); background: rgb(200 160 100 / .14);
}
@media (max-width: 700px) {
  .hero-frame { aspect-ratio: 4 / 5; max-height: none; }
  .hero-since, .hero-sub { display: none; }
}

/* ---------- Frase que se ilumina ---------- */
.statement { padding-block: clamp(120px, 20vw, 260px); }
.statement-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.12; letter-spacing: -0.025em;
  max-width: 18ch;
}
.statement-text .w { transition: color .25s linear; }
.js .statement-text .w { color: rgb(245 244 242 / .2); }
.js .statement-text .w.is-lit { color: var(--night-ink); }
.js .statement-text .w.is-gold.is-lit { color: var(--gold); }
.statement-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 48px; color: var(--night-muted); }
.statement-foot strong { display: block; color: var(--silver); font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Bento de servicios ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper); border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgb(0 0 0 / .25); }
.tile h3 { font-size: var(--step-2); }
.tile p { color: var(--muted); max-width: 42ch; }
.tile .tag { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.tile ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.tile li { padding-left: 22px; position: relative; color: var(--muted); }
.tile li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--gold); }
.t-wide { grid-column: span 4; }
.t-half { grid-column: span 3; }
.t-third { grid-column: span 2; }
.t-dark { background: var(--night-2); color: var(--night-ink); }
.t-dark p, .t-dark li { color: var(--night-muted); }
.t-dark .tag { color: var(--gold); }
.t-gold { background: var(--gold); color: #1b1a19; }
.t-gold p, .t-gold li { color: rgb(27 26 25 / .78); }
.t-gold .tag { color: #1b1a19; }
.t-gold li::before { background: #1b1a19; }
.t-photo { min-height: 420px; justify-content: flex-end; color: #fff; }
.t-photo p { color: rgb(255 255 255 / .82); }
.t-photo .tag { color: var(--gold); }
.t-photo .tile-bg { position: absolute; inset: -12% 0; z-index: -1; }
.t-photo .tile-bg img { width: 100%; height: 100%; object-fit: cover; }
.tile-bg-bright img { filter: brightness(1.9) contrast(1.05); object-position: 50% 45%; }
.t-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .8) 10%, rgb(0 0 0 / .1) 70%); }
.big-number { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -0.04em; color: var(--gold); }
.t-gold .big-number { color: #1b1a19; }

/* Entrada de las tarjetas de servicios: suben desde abajo, se abren hacia
   los lados, se inclinan y se enfocan, una detrás de otra. Solo se arma con
   JavaScript; sin él, las tarjetas se ven directamente. */
.bento.is-armed { perspective: 1400px; }
.bento.is-armed .tile {
  opacity: 0;
  transform: translate3d(var(--dx, 0px), 140px, -120px) rotateX(16deg) scale(.86);
  filter: blur(10px);
  transition:
    opacity .8s ease var(--d, 0ms),
    transform 1.3s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms),
    filter .9s ease var(--d, 0ms),
    box-shadow .5s var(--ease);
}
.bento.is-armed .tile.is-in { opacity: 1; transform: none; filter: none; }
.bento.is-armed .tile.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
.bento.is-armed .tile > :not(.tile-bg) {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--d, 0ms) + 350ms + var(--c, 0) * 90ms);
}
.bento.is-armed .tile.is-in > :not(.tile-bg) { opacity: 1; transform: none; }
.bento.is-armed .t-photo .tile-bg img { transform: scale(1.35); transition: transform 2.2s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms); }
.bento.is-armed .t-photo.is-in .tile-bg img { transform: scale(1); }
.bento.is-armed .t-gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.bento.is-armed .t-gold.is-in::before { transition: transform 1.4s ease calc(var(--d, 0ms) + 500ms); transform: translateX(120%); }

@media (max-width: 980px) {
  .t-wide, .t-half { grid-column: span 6; }
  .t-third { grid-column: span 3; }
}
@media (max-width: 620px) {
  .t-third { grid-column: span 6; }
  .t-photo { min-height: 360px; }
}

/* ---------- Banda parallax a sangre ---------- */
.band { position: relative; overflow: hidden; min-height: clamp(520px, 90vh, 860px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.band-media { position: absolute; inset: -20% 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .75), rgb(0 0 0 / .05) 60%); }
.band .wrap { padding-block: clamp(56px, 8vw, 104px); }
.band blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.05; letter-spacing: -0.025em; max-width: 16ch; }
.band blockquote span { color: var(--gold); }
.band p { margin-top: 20px; color: rgb(255 255 255 / .8); font-size: var(--lead); max-width: 36ch; }

/* ---------- Streaming: imagen fija + pasos ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.split-media {
  position: sticky; top: 110px; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 7 / 5; max-width: 560px; width: 100%; background: var(--night-2);
  box-shadow: 0 0 0 1px rgb(245 244 242 / .08), 0 40px 80px -30px rgb(200 160 100 / .35);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(0 0 0 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px 6px 10px; border-radius: 999px;
}
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.live-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .85);
  background: linear-gradient(to top, rgb(0 0 0 / .65), transparent);
  font-variant-numeric: tabular-nums;
}
.steps { display: grid; gap: clamp(56px, 9vw, 120px); padding-block: clamp(0px, 6vw, 80px); }
.step h3 { font-size: var(--step-2); margin-bottom: 16px; }
.step p { color: var(--night-muted); max-width: 44ch; }
.step .eyebrow { display: block; margin-bottom: 14px; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-media { position: relative; top: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Alcance (lista tipográfica) ---------- */
.reach { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reach li {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; align-items: baseline;
  padding-block: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--line);
}
.reach h3 { font-size: var(--step-2); transition: color .3s; }
.reach li:hover h3 { color: var(--gold-ink); }
.reach p { color: var(--muted); }
@media (max-width: 700px) { .reach li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Equipo (portada) ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.duo-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1153 / 768; }
.duo h2 { font-size: var(--step-1); margin-block: 16px 24px; }
.checks { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); }
.checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Clientes ---------- */
.clients-head { text-align: center; margin-inline: auto; }
.clients-head .lead { margin-inline: auto; }
.marquee { overflow: hidden; margin-top: clamp(40px, 6vw, 72px); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee + .marquee { margin-top: 20px; }
.logo-card {
  flex: none; width: 220px; height: 120px; display: grid; place-items: center;
  background: #ffffff; border-radius: 20px; padding: 22px 30px;
  border: 1px solid rgb(27 26 25 / .06);
}
.logo-card img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.logo-card:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- CTA final ---------- */
.cta { text-align: center; }
.cta h2 { font-size: var(--step-hero); letter-spacing: -0.035em; }
.cta .lead { margin: 24px auto 40px; text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: clamp(560px, 92vh, 900px); display: grid; align-items: end; }
.page-hero .band-media { inset: -15% 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .7), rgb(0 0 0 / .15) 70%); }
.page-hero .wrap { padding-block: calc(60px + clamp(64px, 10vw, 140px)) clamp(56px, 8vw, 104px); }
.page-hero .eyebrow { color: var(--gold); display: block; margin-bottom: 20px; }
.page-hero h1 { font-size: var(--step-hero); letter-spacing: -0.035em; max-width: 12ch; }
.page-hero p { margin-top: 24px; font-size: var(--lead); color: rgb(255 255 255 / .85); max-width: 34ch; line-height: 1.45; }

/* ---------- Historia ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.story-year { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 16vw, 13rem); line-height: .82; letter-spacing: -0.05em; color: var(--gold); }
.story-year small { display: block; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 20px; font-family: var(--font-body); font-weight: 600; }
.story-body { display: grid; gap: 24px; font-size: 1.15rem; color: var(--muted); }
.story-body p:first-child { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; color: var(--ink); letter-spacing: -0.015em; }
@media (max-width: 760px) { .story { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Equipo (página) ---------- */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.member { display: grid; gap: 16px; }
.member-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.04); transition: filter .6s var(--ease), transform .8s var(--ease); }
.member:hover .member-photo img { filter: none; transform: scale(1.09); }
.member h3 { font-size: 1.4rem; }
.member p { color: var(--muted); font-size: .95rem; }
.member:nth-child(even) { margin-top: 64px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .member:nth-child(even) { margin-top: 0; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--mist);
  border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-status { font-size: .95rem; color: var(--gold-ink); min-height: 1.5em; }
.form-status.is-error { color: var(--danger); }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.info-card { background: var(--night-2); color: var(--night-ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 28px; }
.info-card h3 { font-size: var(--step-2); }
.info-item span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.info-item p, .info-item a { font-size: 1.15rem; color: var(--night-ink); text-decoration: none; }
.info-item a:hover { color: var(--gold); }
.info-card .btn-ghost { color: var(--gold); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.privacy { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; font-size: .9rem; color: var(--muted); }
.privacy h4 { grid-column: 1 / -1; font-size: 1.1rem; color: var(--ink); }
.privacy strong { display: block; color: var(--ink); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: var(--night-muted); padding-block: 72px 40px; font-size: .9rem; }
.footer .cookie-settings {
  padding: 0; border: 0; background: none; color: var(--night-ink);
  font: inherit; text-align: left; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.footer .cookie-settings:hover { color: var(--gold); }
.cookie-banner {
  position: fixed; z-index: 1000; inset: auto var(--gutter) 24px;
  max-width: 760px; margin-inline: auto; padding: 24px;
  display: grid; gap: 12px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 16px 56px rgb(0 0 0 / .24);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.25rem; }
.cookie-banner p { color: var(--muted); font-size: .92rem; }
.cookie-banner a { color: var(--gold-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button {
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
}
.cookie-actions button:hover { border-color: var(--gold); }
.cookie-actions .cookie-accept { background: var(--gold); border-color: var(--gold); color: #1b1a19; }
.cookie-banner[data-storage-error="true"]::after {
  content: "No se pudo guardar tu elección en este navegador. Activa el almacenamiento local para guardar tu preferencia.";
  color: var(--danger); font-size: .85rem;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgb(245 244 242 / .1); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 32ch; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--night-ink); opacity: .8; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; }
.footer .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.consent a, .privacy a { color: var(--gold-ink); text-underline-offset: 3px; }
.consent a:hover, .privacy a:hover { color: var(--ink); }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Aparición al hacer scroll (solo donde el navegador lo soporta;
   en el resto, todo está visible desde el principio) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-frame { transform: none; }
  .js .statement-text .w { color: var(--night-ink); }
  .js .statement-text .w.is-gold { color: var(--gold); }
}
