/* ==========================================================================
   LUCIANO DALLAVIA — Sistema de diseño "Institutional Excellence"
   Tokens derivados de DESIGN.md · Estética "Technical Sage"
   ========================================================================== */

/* ---------- 1. TOKENS DE MARCA ---------- */
:root {
  /* Colores nucleares — paleta "Onyx & Brass"
     El azul profundo pasa a negro intenso y el azul medio a grafito.
     Los nombres --navy-* se conservan para no romper otros archivos. */
  --ink-black:        #0B0B0D;   /* negro intenso (antes navy profundo) */
  --graphite:         #1E1E22;   /* gris oscuro   (antes navy medio)    */
  --navy-deep:        var(--ink-black);
  --navy-gradient-a:  var(--graphite);
  --navy-gradient-b:  var(--ink-black);
  --gold-brass:       #B89146;
  --gold-soft:        #ECC070;
  --gold-container:   #FED17F;
  --slate-pro:        #2B2B30;
  --gray-technical:   #7C7C84;
  --tertiary-steel:   #4C4C54;

  /* Superficies */
  --surface:          #FBF9FB;
  --surface-off:      #F7F7F8;
  --surface-low:      #F5F3F5;
  --surface-container:#EFEDEF;
  --surface-high:     #EAE7EA;
  --surface-white:    #FFFFFF;
  --on-surface:       #1B1B1D;
  --on-surface-var:   #44474D;
  --outline:          #75777E;
  --outline-variant:  #C5C6CD;
  --border-formal:    #E4E4E7;
  --error:            #BA1A1A;
  --ok:               #1F7A3D;

  /* Tipografías */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Radios (manual: soft) */
  --r-sm: 0.125rem;
  --r:    0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-full: 9999px;

  /* Layout */
  --container-max: 1280px;
  --gutter: 1.5rem;
  --stack-sm: 0.5rem;
  --stack-md: 1.5rem;
  --stack-lg: 3rem;
  --section-pad: 110px;

  /* Sombra ambiental teñida de navy */
  --shadow-soft:  0px 4px 20px rgba(11, 11, 13, 0.08);
  --shadow-lift:  0px 12px 34px rgba(11, 11, 13, 0.14);

  /* Glow cursor (actualizado por JS) */
  --mx: 50%;
  --my: 50%;
}

/* ---------- 2. RESET Y BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold-brass);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-deep); color: #fff;
  padding: 10px 18px; z-index: 2000; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* ---------- 3. TIPOGRAFÍA JERÁRQUICA ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-deep); }

.display-lg {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.headline-md { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; }
.headline-sm { font-size: 1.5rem; font-weight: 600; line-height: 1.33; }
.title-lg    { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.body-lg     { font-size: 1.125rem; line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-brass);
  margin-bottom: var(--stack-md);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--gold-brass);
  animation: blinkDot 1.6s ease-in-out infinite;
}
@keyframes blinkDot { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-technical);
}

.accent { color: var(--gold-brass); }

.section-intro { max-width: 720px; color: var(--on-surface-var); }
.section-head { margin-bottom: var(--stack-lg); }
.section-head.center { text-align: center; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- 4. HEADER STICKY ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: color 0.3s ease;
}
/* El blur SIEMPRE en pseudo-elemento: backdrop-filter en el header
   convertiría al header en containing block del panel móvil fixed. */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11, 11, 13, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  z-index: -1;
}
.site-header.scrolled::before {
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(184, 145, 70, 0.25);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  position: relative;
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--gold-brass);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

/* CTA del menú: selector específico para no ser pisado por .nav-links a */
.nav-links li.nav-cta-item a.nav-cta {
  color: var(--navy-deep);
  background: linear-gradient(120deg, var(--gold-soft), var(--gold-brass));
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--r);
  white-space: nowrap;
  animation: ctaPulse 2.2s ease-in-out infinite;
}
.nav-links li.nav-cta-item a.nav-cta::after { display: none; }
.nav-links li.nav-cta-item a.nav-cta:hover {
  animation-play-state: paused;
  box-shadow: 0 0 0 4px rgba(184, 145, 70, 0.25), 0 0 32px rgba(184, 145, 70, 0.65);
  color: var(--navy-deep);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 145, 70, 0.35), 0 0 10px rgba(184, 145, 70, 0.25); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px rgba(184, 145, 70, 0.10), 0 0 26px rgba(184, 145, 70, 0.55); transform: scale(1.025); }
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent; border: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  z-index: 1400;
}
.nav-toggle-bar {
  width: 26px; height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Header sobre fondos claros (páginas sin hero oscuro) */
.header-light-page .site-header:not(.scrolled) .brand,
.header-light-page .site-header:not(.scrolled) .nav-links a { color: var(--navy-deep); }
.header-light-page .site-header:not(.scrolled) .nav-links a { color: rgba(11, 11, 13, 0.8); }
.header-light-page .site-header:not(.scrolled) .nav-links li.nav-cta-item a.nav-cta { color: var(--navy-deep); }
.header-light-page .site-header:not(.scrolled) .nav-toggle-bar { background: var(--navy-deep); }
.header-light-page .site-header:not(.scrolled)::before {
  background: rgba(251, 249, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border-formal);
}

/* ---------- 5. HERO CARRUSEL ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-slides {
  position: absolute; inset: -3%;
  transform: translate3d(calc(var(--par-x) * -1.6), calc(var(--par-y) * -1.6), 0);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Fundido encadenado profesional ---------------------------------
   Tecnica de APILADO: la imagen saliente permanece 100% opaca por
   debajo mientras la entrante se funde por encima. Nunca hay un
   instante en que ambas esten a media opacidad, que es lo que producia
   el bajon de luminosidad ("sobresalto") en el cruce.
   Duraciones centralizadas en variables para ajustarlas en un solo
   lugar (deben coincidir con FADE e INTERVAL de main.js).
------------------------------------------------------------------- */
.hero {
  --hero-fade: 1500ms;   /* duracion del barrido  (= FADE en main.js) */
  --hero-kb: 10.5s;      /* zoom Ken Burns: > interval + fade         */
  --clip-from: inset(0% 0% 0% 100%);  /* direccion del barrido (JS)   */
  --kb: kenBurnsA;                    /* variante de zoom (JS)        */
  --par-x: 0px; --par-y: 0px;         /* parallax de cursor (JS)      */
}
/* --- Barrido cinematografico ----------------------------------------
   La entrante ya no se "funde": se REVELA con una mascara direccional
   (clip-path) que alterna lado en cada pase, mientras se desenfoca y
   desescala ligeramente. La saliente permanece opaca por debajo, asi
   que nunca hay bajon de luminosidad en el cruce.
-------------------------------------------------------------------- */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  z-index: 0;
  clip-path: var(--clip-from);
  transition:
    opacity 260ms linear,
    clip-path var(--hero-fade) cubic-bezier(0.72, 0, 0.16, 1),
    filter var(--hero-fade) ease-out;
  will-change: clip-path, opacity;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1) translateZ(0);
  backface-visibility: hidden;   /* evita el parpadeo de subpixel */
  will-change: transform;
}
/* Entrante: se revela POR ENCIMA de la saliente */
.hero-slide.active {
  opacity: 1; z-index: 2;
  clip-path: inset(0% 0% 0% 0%);
  filter: blur(0) saturate(1);
}
/* Saliente: sigue totalmente opaca y descubierta por debajo */
.hero-slide.leaving {
  opacity: 1; z-index: 1;
  clip-path: inset(0% 0% 0% 0%);
}
/* Estado inicial de la entrante justo antes de revelarse */
.hero-slide.priming { filter: blur(14px) saturate(1.35); }

/* Zoom identico en .active y .leaving: al cambiar de clase las
   propiedades computadas no varian y el navegador NO reinicia la
   animacion, por lo que la imagen saliente continua su recorrido. */
.hero-slide.active img,
.hero-slide.leaving img {
  animation: var(--kb) var(--hero-kb) linear forwards;
}
/* Cuatro recorridos alternos: el hero deja de repetirse a si mismo. */
@keyframes kenBurnsA {
  from { transform: scale(1)     translate3d(0, 0, 0); }
  to   { transform: scale(1.095) translate3d(-1.4%, -0.9%, 0); }
}
@keyframes kenBurnsB {
  from { transform: scale(1.095) translate3d(1.3%, 0.8%, 0); }
  to   { transform: scale(1)     translate3d(0, 0, 0); }
}
@keyframes kenBurnsC {
  from { transform: scale(1.02)  translate3d(1.6%, -0.6%, 0); }
  to   { transform: scale(1.11)  translate3d(-1.2%, 0.9%, 0); }
}
@keyframes kenBurnsD {
  from { transform: scale(1.08)  translate3d(0, -1.2%, 0) rotate(0.4deg); }
  to   { transform: scale(1.005) translate3d(0, 1%, 0) rotate(0deg); }
}

/* Filo de luz dorada que viaja con el borde del barrido */
.hero-sweep {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg,
    transparent 42%,
    rgba(236, 192, 112, 0.10) 48%,
    rgba(255, 240, 210, 0.55) 50%,
    rgba(236, 192, 112, 0.10) 52%,
    transparent 58%);
}
.hero-sweep.run { animation: heroSweep var(--hero-fade) cubic-bezier(0.72, 0, 0.16, 1); }
@keyframes heroSweep {
  0%   { opacity: 0; transform: translate3d(-105%, 0, 0); }
  18%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(105%, 0, 0); }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, rgba(11,11,13,0.94) 0%, rgba(11,11,13,0.78) 45%, rgba(30,30,34,0.45) 100%);
}

.hero-content {
  position: relative; z-index: 4;
  padding-top: 130px; padding-bottom: 130px;
  max-width: 780px;
  transform: translate3d(var(--par-x), var(--par-y), 0);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: var(--stack-md);
}
.hero-phrase {
  min-height: 3.4em;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 2.2rem;
  perspective: 800px;
}
/* Entrada palabra a palabra: materializacion con desenfoque, empuje en
   profundidad y un destello dorado que se apaga al asentarse. */
.hero-phrase .word {
  display: inline-block;
  opacity: 0;
  will-change: transform, filter, opacity;
  animation: wordIn 0.85s cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
}
@keyframes wordIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.7em, -120px) scale(0.92) rotateX(35deg);
    filter: blur(14px);
    text-shadow: 0 0 22px rgba(236, 192, 112, 0.95);
  }
  55% { filter: blur(0); }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
    text-shadow: 0 0 0 rgba(236, 192, 112, 0);
  }
}
/* Salida escalonada: la frase se deshace en sentido inverso en lugar
   de apagarse en bloque, encadenando con el barrido de la imagen. */
.hero-phrase.is-out .word {
  animation: wordOut 0.42s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
@keyframes wordOut {
  to {
    opacity: 0;
    transform: translate3d(0, -0.5em, -90px) scale(0.96);
    filter: blur(9px);
  }
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Dots con barra de progreso */
.hero-dots {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 4;
  display: flex; gap: 10px;
}
.hero-dot {
  position: relative;
  width: 34px; height: 5px;
  border: 0; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: background 0.3s ease;
}
.hero-dot .dot-progress {
  position: absolute; inset: 0;
  width: 0%;
  background: var(--gold-brass);
  border-radius: var(--r-full);
}
.hero-dot.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 18px rgba(184, 145, 70, 0.55);
  transform: scaleY(1.6);
}
.hero-dot { transition: background 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease; }
.hero-dot.active .dot-progress {
  background: linear-gradient(90deg, var(--gold-brass), var(--gold-soft));
  animation: dotFill 7.2s linear forwards;
}
@keyframes dotFill { from { width: 0%; } to { width: 100%; } }

/* Flechas: invisibles hasta hover sobre el hero */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-full);
  color: #fff; font-size: 1.3rem;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.25s ease;
}
.hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: rgba(184, 145, 70, 0.35); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

/* ---------- 6. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--navy-deep); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-lift); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold-brass));
  color: var(--navy-deep);
}
.btn-gold:hover { box-shadow: 0 8px 28px rgba(184, 145, 70, 0.45); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-outline:hover { border-color: var(--gold-brass); color: var(--gold-soft); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-deep);
  color: var(--navy-deep);
}
.btn-outline-navy:hover { background: var(--navy-deep); color: #fff; }

.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { color: var(--gold-soft); }

/* ---------- 7. SECCIONES ---------- */
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-alt { background: var(--surface-off); }
.section-navy {
  background: linear-gradient(135deg, var(--navy-gradient-a) 0%, var(--navy-gradient-b) 100%);
  color: rgba(255, 255, 255, 0.88);
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-intro { color: rgba(255, 255, 255, 0.75); }
.section-navy .mono-label { color: rgba(255, 255, 255, 0.55); }

/* Halo de luz radial: contenedor con overflow hidden obligatorio */
.section-glow { position: relative; overflow: hidden; }
.section-glow::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  top: -350px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(184, 145, 70, 0.16) 0%, transparent 62%);
  pointer-events: none;
}

/* ---------- 8. TIRA DE ENTIDADES ---------- */
.trust-strip {
  border-top: 1px solid var(--border-formal);
  border-bottom: 1px solid var(--border-formal);
  background: var(--surface-off);
  padding: 34px 0;
}
.trust-strip-inner {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 2.4rem 3.6rem;
}
.trust-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--outline-variant);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.trust-name:hover { color: var(--gray-technical); }

/* ---------- 9. GRILLAS Y TARJETAS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }

.card {
  position: relative;
  background: var(--surface-white);
  border: 1px solid var(--border-formal);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: rgba(184, 145, 70, 0.14);
  color: var(--gold-brass);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--on-surface-var); font-size: 0.96rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 1.2rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold-brass);
  letter-spacing: 0.04em;
}
.card-link:hover { color: var(--navy-deep); }

/* Tarjeta de vidrio con rejilla técnica y glow que sigue al cursor */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 2rem;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.glass-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(184, 145, 70, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }
/* Inclinacion 3D suave siguiendo al cursor (--rx/--ry desde JS) */
.glass-card {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.glass-card:hover { border-color: rgba(184, 145, 70, 0.35); }
.glass-card h3 { color: #fff; margin-bottom: 0.7rem; }
.glass-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; }

/* Variante navy de la tarjeta ejecutiva */
.card.card-navy { background: var(--navy-deep); border-color: rgba(184, 145, 70, 0.3); }
.card.card-navy h3 { color: #fff; }
.card.card-navy p { color: rgba(255, 255, 255, 0.75); }
.card.card-navy strong { color: #fff; }
.card.card-navy .card-link:hover { color: var(--gold-soft); }

/* Utilidades de composición (evitan estilos inline) */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Tarjeta técnica (fondo gris, etiquetas mono) */
.tech-card {
  background: var(--surface-off);
  border: 1px solid var(--border-formal);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}

/* Chips de competencias */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-high);
  color: var(--navy-deep);
  padding: 5px 10px;
  border-radius: var(--r-sm);
}
.section-navy .chip { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }

/* ---------- 10. PANEL HUD DECORATIVO ---------- */
.hud-panel {
  background: var(--navy-deep);
  border: 1px solid rgba(184, 145, 70, 0.3);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lift);
}
.hud-lights { display: flex; gap: 7px; margin-bottom: 1.1rem; }
.hud-light { width: 10px; height: 10px; border-radius: var(--r-full); }
.hud-light.red { background: #E5534B; }
.hud-light.yellow { background: var(--gold-soft); }
.hud-light.green { background: #3FB950; }
.hud-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hud-row:last-child { border-bottom: 0; }
.hud-key { color: rgba(255, 255, 255, 0.45); letter-spacing: 0.06em; }
.hud-val { color: var(--gold-soft); text-align: right; }

/* ---------- 11. TIMELINE ---------- */
.timeline { position: relative; margin-top: var(--stack-lg); }
.timeline::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--outline-variant);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 3.5rem 3rem;
}
.timeline-item:nth-child(odd)  { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::before {
  content: "";
  position: absolute; top: 6px;
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  background: var(--gold-brass);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--gold-brass);
}
.timeline-item:nth-child(odd)::before  { right: -7px; }
.timeline-item:nth-child(even)::before { left: -7px; }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--gold-brass);
  display: block; margin-bottom: 0.4rem;
}
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline-item p { color: var(--on-surface-var); font-size: 0.95rem; }

/* ---------- 12. TABLAS INSTITUCIONALES ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-formal);
  border-radius: var(--r-lg);
  background: var(--surface-white);
  box-shadow: var(--shadow-soft);
}
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table thead th {
  background: var(--navy-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
}
.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-formal);
  font-size: 0.92rem;
  color: var(--on-surface-var);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: var(--surface-off); }
.data-table tbody tr:hover { background: rgba(184, 145, 70, 0.06); }
.data-table .td-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy-deep);
  white-space: nowrap;
  font-weight: 500;
}
.data-table .td-entity { font-weight: 600; color: var(--navy-deep); }

/* ---------- 13. CONTADORES ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold-brass);
  line-height: 1;
}
.stat-num.is-done { animation: statPop 0.6s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes statPop {
  0%   { transform: scale(1);    text-shadow: 0 0 0 rgba(236, 192, 112, 0); }
  40%  { transform: scale(1.09); text-shadow: 0 0 26px rgba(236, 192, 112, 0.75); }
  100% { transform: scale(1);    text-shadow: 0 0 0 rgba(236, 192, 112, 0); }
}
.stat-label { margin-top: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ---------- 14. MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee-item::after { content: "·"; margin-left: 3rem; color: var(--gold-brass); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 15. PASOS NUMERADOS ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: var(--gold-brass);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 0.9rem;
}

/* Marquesina clara para la tira de marcas (fondo claro) */
.marquee-light { border-top: 0; border-bottom: 0; padding: 0; }
.marquee-light .marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--outline-variant);
  transition: color 0.3s ease;
}
.marquee-light .marquee-item:hover { color: var(--gray-technical); }
.marquee-light .marquee-item::after { content: "·"; margin-left: 3rem; color: var(--gold-brass); }
.marquee-light .marquee-track { animation-duration: 55s; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 15b. ACORDEÓN INSTITUCIONAL (reemplazo responsive de tablas) ---------- */
.acc-group {
  border: 1px solid var(--border-formal);
  border-radius: var(--r-lg);
  background: var(--surface-white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.acc-item { border-bottom: 1px solid var(--border-formal); }
.acc-item:last-child { border-bottom: 0; }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr 34px;
  align-items: center;
  gap: 1rem;
  padding: 16px 20px;
  transition: background 0.25s ease;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: rgba(184, 145, 70, 0.06); }
.acc-item[open] summary { background: var(--surface-off); }
.acc-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-brass);
  white-space: nowrap;
}
.acc-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy-deep);
}
.acc-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  color: var(--gold-brass);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.acc-item[open] .acc-icon { transform: rotate(45deg); border-color: var(--gold-brass); }
.acc-body {
  padding: 4px 20px 20px 20px;
  font-size: 0.93rem;
  color: var(--on-surface-var);
}
.acc-body .acc-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-technical);
  margin-bottom: 0.5rem;
}
.acc-body .acc-meta strong { color: var(--navy-deep); font-weight: 500; }
.acc-body p + p { margin-top: 0.5rem; }

/* Encabezado tipo tabla del acordeón */
.acc-head {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr 34px;
  gap: 1rem;
  padding: 12px 20px;
  background: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- 15b. BARRA DE PROGRESO DE LECTURA ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-brass), var(--gold-soft), var(--gold-container));
  box-shadow: 0 0 14px rgba(184, 145, 70, 0.6);
  z-index: 1500;
  pointer-events: none;
}

/* ---------- 16. REVEALS ---------- */
.reveal {
  --rev-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.975);
  filter: blur(10px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 0.84, 0.24, 1),
    transform 0.85s cubic-bezier(0.16, 0.84, 0.24, 1),
    filter 0.85s ease-out;
  transition-delay: var(--rev-delay);
}
.reveal.visible { opacity: 1; transform: none; filter: blur(0); }
/* Variantes direccionales (se aplican con clases en el HTML si se desea) */
.reveal-left  { transform: translate3d(-46px, 0, 0) scale(0.98); }
.reveal-right { transform: translate3d(46px, 0, 0) scale(0.98); }
.reveal-zoom  { transform: scale(0.9); }
.reveal-d1 { --rev-delay: 0.12s; }
.reveal-d2 { --rev-delay: 0.24s; }
.reveal-d3 { --rev-delay: 0.36s; }

/* ---------- 17. GALERÍAS Y LIGHTBOX ---------- */
.gallery-block { margin-bottom: var(--stack-lg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border: 0; padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-high);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.gallery-item::after {
  content: "+";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  background: rgba(11, 11, 13, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }

/* Lightbox: fondo difuminado y opaco, foto en primer plano */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1500;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  max-width: min(1100px, 92vw);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.lightbox.open .lightbox-figure { transform: scale(1) translateY(0); }
.lightbox-figure img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  text-transform: uppercase;
}
.lightbox-btn {
  position: absolute;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-full);
  color: #fff; font-size: 1.3rem;
  transition: background 0.25s ease;
}
.lightbox-btn:hover { background: rgba(184, 145, 70, 0.4); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- 18. AUDIOTECA ---------- */
.audio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.audio-card {
  background: var(--surface-white);
  border: 1px solid var(--border-formal);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.audio-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.audio-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--navy-deep);
  color: var(--gold-soft);
  font-size: 1.05rem;
}
.audio-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin: 0; }
.audio-card .mono-label { display: block; margin-top: 2px; }
.audio-player-slot { min-height: 20px; }
.audio-load-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.6em;
  background: var(--surface-off);
  border: 1px dashed var(--outline-variant);
  border-radius: var(--r-md);
  padding: 12px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--navy-deep);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.audio-load-btn:hover { border-color: var(--gold-brass); background: rgba(184, 145, 70, 0.07); }
.audio-player-slot iframe {
  width: 100%; height: 166px; border: 0;
  border-radius: var(--r-md);
}

/* ---------- 19. FORMULARIO DE CONTACTO ---------- */
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }

.form-card {
  background: var(--surface-white);
  border: 1px solid var(--border-formal);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem; font-weight: 600;
  color: var(--navy-deep);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--on-surface);
  background: var(--surface-white);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r);
  padding: 12px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-brass);
  box-shadow: 0 0 0 3px rgba(184, 145, 70, 0.2);
}
.form-check {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.85rem; color: var(--on-surface-var);
}
.form-check input {
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--navy-deep);
  border-radius: var(--r-sm);
}
/* Honeypot anti-spam: invisible para humanos */
.field-website { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 500;
}
.form-status.ok    { display: block; background: rgba(31, 122, 61, 0.1);  color: var(--ok);    border: 1px solid rgba(31, 122, 61, 0.3); }
.form-status.error { display: block; background: rgba(186, 26, 26, 0.08); color: var(--error); border: 1px solid rgba(186, 26, 26, 0.3); }

.direct-channel {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface-white);
  border: 1px solid var(--border-formal);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.direct-channel:hover { transform: translateX(4px); border-color: var(--gold-brass); }
.direct-channel strong { display: block; color: var(--navy-deep); font-size: 0.98rem; }
.direct-channel .mono-label { font-size: 0.7rem; }
.direct-channel .dc-arrow { color: var(--gold-brass); font-size: 1.1rem; }

/* ---------- 20. BLOQUES ESPECIALES ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  object-fit: cover;
}
.split-media .media-tag {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--navy-deep); color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold-brass);
  box-shadow: var(--shadow-lift);
}
.media-tag .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold-soft); line-height: 1.1; }
.media-tag .small { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.quote-block {
  border-left: 3px solid var(--gold-brass);
  background: var(--surface-off);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1.6rem 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--slate-pro);
}

.cta-band { text-align: center; }
.cta-band .btn { margin: 0 0.4rem; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band .section-intro { margin: 0 auto 2.2rem auto; }

/* ---------- 21. PIE ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: #fff; margin-bottom: 0.9rem;
}
.footer-tagline { font-size: 0.92rem; max-width: 320px; margin-bottom: 1rem; }
.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.footer-title {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-brass);
  margin-bottom: 1.1rem;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  font-size: 0.82rem;
}

/* ---------- 22. BURBUJA WHATSAPP ---------- */
.whatsapp-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950; /* debajo del header (1000) y del panel móvil (1300) */
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  border-radius: var(--r-full);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}
.whatsapp-bubble:hover { transform: scale(1.08); }
.wa-ping {
  position: absolute; inset: 0;
  border-radius: var(--r-full);
  border: 2px solid #25D366;
  animation: waPing 2s ease-out infinite;
}
@keyframes waPing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-tooltip {
  position: absolute; right: 72px;
  background: var(--navy-deep); color: #fff;
  font-size: 0.8rem; font-weight: 500;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--r-md);
  opacity: 0; pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.whatsapp-bubble:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ---------- 23. PÁGINA GRACIAS / HERO INTERNO ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-gradient-a) 0%, var(--navy-gradient-b) 100%);
  color: #fff;
  padding: 190px 0 100px 0;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  top: -450px; right: -300px;
  background: radial-gradient(circle, rgba(184, 145, 70, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero .section-intro { color: rgba(255, 255, 255, 0.75); position: relative; z-index: 1; margin-top: 1.2rem; }
.page-hero .eyebrow { position: relative; z-index: 1; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 84px; }
  .grid-4, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout, .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 66px; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .header-inner { padding: 0 1rem; }

  .grid-2, .grid-3, .grid-4, .steps-grid, .audio-grid, .stats-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }

  /* Botones: permitir salto de línea, nunca desbordar */
  .btn { white-space: normal; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .hero-arrow { display: none; } /* En móvil se navega por swipe */

  /* Menú móvil */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: rgba(11, 11, 13, 0.985);
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; }
  .header-light-page .site-header:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.9); }
  .header-light-page .site-header:not(.scrolled) .nav-links li.nav-cta-item a.nav-cta,
  .nav-links li.nav-cta-item a.nav-cta { color: var(--navy-deep); font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }

  .acc-item summary, .acc-head { grid-template-columns: minmax(78px, 96px) 1fr 28px; gap: 0.6rem; padding: 14px 14px; }
  .acc-body { padding: 4px 14px 16px 14px; }
  .acc-title { font-size: 0.9rem; }

  .timeline::before { left: 8px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%; left: 0; text-align: left;
    padding: 0 0 2.6rem 2.4rem;
  }
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before { left: 1px; right: auto; }

  .split-media .media-tag { left: 12px; bottom: -14px; }

  .whatsapp-bubble {
    width: 54px; height: 54px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .wa-tooltip { display: none; }

  .hero-content { padding-top: 110px; padding-bottom: 110px; }
  .page-hero { padding: 150px 0 70px 0; }
}

/* ---------- 25. MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-slide.active img,
  .hero-slide.leaving img { animation: none; }
  .hero-slide { transition: none; clip-path: none; filter: none; }
  .hero-slide.priming { filter: none; }
  .hero-sweep { display: none; }
  .hero-slides, .hero-content { transform: none; }
  .hero-phrase .word,
  .hero-phrase.is-out .word { opacity: 1; transform: none; filter: none; animation: none; }
  .glass-card { transform: none; }
  .scroll-progress { display: none; }
  .marquee-track { animation: none; }
}
