/* ═══════════════════════════════════════════════════════════
   PSICÓLOGO NICOLÁS SALAZAR BARBOSA — LANDING PAGE
   Foundation: tokens, typography, buttons, cards, lamp motif
   Paleta: azul profundo & dorado premium — beige/blanco cálido
   dominante, azul profundo como ancla de cierre (footer/CTA final
   y #enfoque), dorado premium como acento.
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Paper — beige/blanco cálido dominante (~65% de la interfaz) */
  --paper:        #faf8f3;
  --paper-alt:    #f4f1ea;
  --paper-card:   #ffffff;
  --border:       #e7e2d8;
  --border-soft:  #efebe1;
  --border-strong: #d9d2c4;

  /* Ink — azul profundo para texto/títulos y el "ancla" de cierre (~20-25%).
     El cuerpo de texto secundario usa gris cálido, no azul, para no competir
     con los títulos. */
  --ink:          #0f1b2d;
  --ink-dim:      #6b6f72;
  --ink-faint:    #8b8e90;
  --anchor:       #0f1b2d;
  --anchor-card:  #243b53;
  --anchor-border: #2c4560;

  /* Gold — acento premium (~5-10%), nunca como bloque grande.
     --gold-deep es más oscuro para servir de texto sobre fondos claros;
     --gold-bright es más claro para leerse sobre el azul profundo. */
  --gold:         #c9a66b;
  --gold-bright:  #dec08a;
  --gold-deep:    #a9824d;
  --gold-mate:    #b99a66;
  --gold-wash:    rgba(201, 166, 107, 0.07);
  --gold-wash-strong: rgba(201, 166, 107, 0.13);

  /* Wash del azul — mismo patrón que gold-wash, para dar presencia de
     contraste al azul sin convertirlo en bloque sólido (tarjetas, iconos). */
  --ink-wash:     rgba(15, 27, 45, 0.06);
  --ink-wash-strong: rgba(15, 27, 45, 0.12);

  /* Vidrio claro — para chips/detalles legibles sobre tarjetas de fondo azul */
  --anchor-wash:  rgba(250, 248, 243, 0.08);
  --anchor-wash-strong: rgba(250, 248, 243, 0.14);

  --wa-green:     #25d366;

  /* "Isla oscura" — #enfoque, #contacto y footer (el ancla azul de cierre) */
  --anchor-text:      #faf8f3;
  --anchor-text-dim:  #a9b7c6;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-base: 0.45s;
  --dur-slow: 0.8s;

  --radius: 3px;

  /* Sistema de elevación — profundidad progresiva, siempre sombra suave y difusa
     (nunca dura), coherente con una superficie de "papel" iluminada desde arriba. */
  --shadow-xs: 0 1px 3px rgba(20, 18, 15, 0.04);
  --shadow-sm: 0 2px 16px rgba(20, 18, 15, 0.05);
  --shadow-md: 0 12px 40px rgba(20, 18, 15, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 18, 15, 0.12);
  --shadow-xl: 0 40px 100px rgba(20, 18, 15, 0.16);
  --shadow-gold: 0 10px 30px rgba(201, 166, 107, 0.20);
  --shadow-gold-lg: 0 18px 48px rgba(201, 166, 107, 0.24);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17.5px; }
body {
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(201, 166, 107, 0.05), transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 15%, rgba(15, 27, 45, 0.025), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
::selection { background: var(--gold); color: var(--ink); }

/* ── ACCESSIBILITY ── */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--gold); color: var(--ink);
  padding: 0.7rem 1.2rem; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500; transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); letter-spacing: -0.015em; line-height: 1.16; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.005em; line-height: 1.25; }
em { font-style: italic; color: var(--ink); font-weight: 700; }
/* Destacado editorial: dentro del contenido de la landing, <em> pasa de ink a
   dorado (mismo peso/cursiva, solo cambia el color). #enfoque y #contacto ya
   tenían su propio ajuste a --gold-bright por tener fondo oscuro (--anchor) —
   esta regla, al tener menor especificidad que esas dos, no las toca. */
#main-content em { color: var(--gold-deep); }

.eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1rem; font-weight: 700;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }

.lede { font-size: 1.1rem; color: var(--ink-dim); max-width: 46ch; line-height: 1.8; letter-spacing: 0.005em; }
.caption { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }


/* ── BUTTONS ── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 2.1rem; font-family: var(--font-body); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; border: none; border-radius: 5px;
  cursor: pointer; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(0) scale(0.97); }

/* El CTA principal del sitio — debe sentirse como el botón más importante */
.btn-gold {
  background: linear-gradient(135deg, var(--anchor-card), var(--anchor) 65%);
  color: var(--gold-bright); box-shadow: var(--shadow-gold);
}
.btn-gold::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-gold:hover::before { transform: translateX(120%); }
.btn-gold:hover { background: linear-gradient(135deg, var(--anchor-card), var(--anchor-card) 65%); transform: translateY(-3px); box-shadow: var(--shadow-gold-lg); }

.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-dim); }
.btn-outline:hover { border-color: var(--gold); color: var(--ink); font-weight: 700; background: var(--gold-wash); transform: translateY(-2px); }

.btn-wa { background: var(--wa-green); color: #04150a; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.22); }
.btn-wa:hover { background: #2fe377; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.3); }
.btn-wa svg { transition: transform var(--dur-fast) var(--ease); }
.btn-wa:hover svg { transform: rotate(-8deg) scale(1.1); }

.btn-text { background: none; color: var(--ink); font-weight: 700; letter-spacing: 0.1em; text-transform: none; font-size: 0.85rem; padding: 0; gap: 0.4rem; }
.btn-text:hover { color: var(--gold-deep); gap: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .btn-gold::before { display: none; } }

/* ── CARDS ── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--paper-card), var(--paper) 130%);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-accent { border-left: 3px solid var(--gold); }

/* ── LAMP MOTIF ── */
.lamp {
  width: 20px; height: 20px; flex-shrink: 0;
  opacity: 0.65; transition: opacity var(--dur-base) var(--ease), filter var(--dur-base) var(--ease);
}
.lamp path, .lamp circle { stroke: var(--gold-deep); }
.lamp .bulb { fill: var(--gold-deep); }
.card:hover .lamp, .lamp.lit { opacity: 1; filter: drop-shadow(0 0 4px rgba(201, 166, 107, 0.35)); }
.card:hover .lamp .bulb, .lamp.lit .bulb { fill: var(--gold); }
.card:hover .lamp path, .lamp.lit path { stroke: var(--gold); }

/* ── TILT 3D (cursor, solo desktop) ──
   El JS solo escribe transform inline mientras el puntero está encima;
   esta transición gobierna el regreso suave a la posición neutra al salir. */
[data-tilt] { transition: transform 0.35s var(--ease-out); }

/* Íconos con leve vida propia al hover, además del cambio de color/opacidad ya existente */
.lamp { transition: opacity var(--dur-base) var(--ease), filter var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.problem-card:hover .lamp { transform: rotate(-8deg); }
.contact-icon svg { transition: transform var(--dur-base) var(--ease); }
.contact-card:hover .contact-icon svg { transform: rotate(-8deg) scale(1.06); }

.problem-card .lamp {
  width: 24px; height: 24px; padding: 0.5rem; box-sizing: content-box;
  background: var(--anchor-wash); border-radius: 50%; opacity: 0.9;
  transition: opacity var(--dur-base) var(--ease), filter var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.problem-card .lamp path, .problem-card .lamp circle { stroke: var(--gold-bright); }
.problem-card .lamp .bulb { fill: var(--gold-bright); }
.problem-card:hover .lamp { background: var(--anchor-wash-strong); }

.lamp-divider { display: flex; align-items: center; gap: 1rem; margin: 3rem 0; }
.lamp-divider::before, .lamp-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── IMAGE TREATMENT ── */
.img-frame { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.img-frame:hover img { transform: scale(1.04); }
.img-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(14,13,11,0.28) 100%);
  pointer-events: none;
}

/* ── UTILITY ── */
.section { padding: 6.5rem 5%; }
.section-inner { max-width: 1180px; margin: 0 auto; }
@media (max-width: 768px) { .section { padding: 4.5rem 5%; } }

/* ── MOTION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Variantes — cada sección entra distinto, nunca se repite el mismo efecto seguido */
.reveal-scale { transform: scale(0.94); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-blur  { filter: blur(6px); }
.reveal-blur.visible { filter: blur(0); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease); }

/* Cascada — los hijos de un grupo revelado entran en secuencia, no de golpe */
.problems-grid .problem-card:nth-child(1) { transition-delay: 0s; }
.problems-grid .problem-card:nth-child(2) { transition-delay: 0.08s; }
.problems-grid .problem-card:nth-child(3) { transition-delay: 0.16s; }
.problems-grid .problem-card:nth-child(4) { transition-delay: 0.24s; }
.authority-stats.reveal-scale .authority-stat:nth-child(1) { transition-delay: 0s; }
.authority-stats.reveal-scale .authority-stat:nth-child(2) { transition-delay: 0.1s; }
.authority-stats.reveal-scale .authority-stat:nth-child(3) { transition-delay: 0.2s; }
.about-collage.reveal-scale .img-frame:nth-child(1) { transition-delay: 0s; }
.about-collage.reveal-scale .img-frame:nth-child(2) { transition-delay: 0.1s; }
.about-collage.reveal-scale .img-frame:nth-child(3) { transition-delay: 0.2s; }
.gallery-videos.reveal-scale .video-frame:nth-child(1) { transition-delay: 0s; }
.gallery-videos.reveal-scale .video-frame:nth-child(2) { transition-delay: 0.1s; }
.gallery-videos.reveal-scale .video-frame:nth-child(3) { transition-delay: 0.2s; }
.contact-grid.reveal-right .card:nth-child(1) { transition-delay: 0s; }
.contact-grid.reveal-right .card:nth-child(2) { transition-delay: 0.08s; }
.contact-grid.reveal-right .card:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-left, .reveal-right, .reveal-blur { opacity: 1; transform: none; filter: none; transition: none; }
  .img-frame:hover img { transform: none; }
  .authority-stat .num::after { transition: none; width: 30px; }
}
/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,27,45,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(15,27,45,0.96);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--anchor-border);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1rem; font-weight: 400;
  color: var(--anchor-text); letter-spacing: 0.04em; white-space: nowrap;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo .lamp { opacity: 0.85; width: 17px; height: 17px; animation: nav-lamp-idle 4.5s ease-in-out infinite; }
.nav-logo .lamp path, .nav-logo .lamp circle { stroke: var(--gold-bright); }
.nav-logo .lamp .bulb { fill: var(--gold-bright); }
@keyframes nav-lamp-idle {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(201, 166, 107, 0.35)); }
  50% { filter: drop-shadow(0 0 7px rgba(201, 166, 107, 0.55)); }
}
@media (prefers-reduced-motion: reduce) { .nav-logo .lamp { animation: none; } }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--anchor-text-dim); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s;
  padding: 0.25rem 0; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--gold); transition: right var(--dur-base) var(--ease);
}
.nav-links a:hover { color: var(--anchor-text); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after { right: 0; background: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold) !important; color: var(--gold-bright) !important;
  padding: 0.5rem 1.3rem !important; border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none; -webkit-tap-highlight-color: transparent;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--gold-bright); transition: all 0.3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(15,27,45,0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  flex-direction: column; gap: 0; z-index: 999;
  padding: 1rem 0; overflow-y: auto;
  transform: translateY(-10px); opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a {
  padding: 1.1rem 6%; font-size: 0.95rem; color: var(--anchor-text-dim);
  border-bottom: 1px solid var(--anchor-border);
}

@media (max-width: 1400px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 95vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
  padding: 130px 5% 5rem;
  overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -20%; left: 8%; width: 60%; height: 80%;
  background: radial-gradient(circle, var(--gold-wash-strong) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}
#hero::after {
  content: ''; position: absolute; top: -10%; right: -5%; width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(15, 27, 45, 0.035) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-left { position: relative; z-index: 1; max-width: 800px; }
.hero-title { margin-bottom: 1.7rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--ink-dim); max-width: 52ch; line-height: 1.85; margin-bottom: 2.2rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.badge {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border: 1px solid var(--border-strong);
  border-radius: 20px; color: var(--ink-dim);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.badge:hover { border-color: var(--gold); color: var(--ink); font-weight: 700; background: var(--gold-wash); }

.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.hero-trust {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 2.1rem;
  font-size: 0.92rem; color: var(--ink-faint);
}
.hero-trust-stars { color: var(--gold-deep); letter-spacing: 0.05em; font-size: 0.85rem; }

.hero-portrait { position: relative; z-index: 1; }
.hero-portrait::before {
  content: ''; position: absolute; inset: -6%;
  background: radial-gradient(circle, var(--gold-wash-strong) 0%, transparent 72%);
  filter: blur(30px); z-index: -1;
  animation: hero-glow-drift 9s ease-in-out infinite;
}
.hero-portrait::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  z-index: -1;
}
/* Wrapper dedicado al parallax (JS) — separado del .img-frame para no chocar
   con el tilt 3D (ambos escriben transform inline en elementos distintos). */
.hero-portrait-parallax { position: relative; }
.hero-portrait-parallax::before {
  content: '';
  position: absolute; top: -1rem; right: -1rem; width: 70px; height: 70px;
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
  z-index: -1; pointer-events: none;
}
.hero-portrait .img-frame {
  aspect-ratio: 4/5; box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-soft); border-radius: 6px;
}
.hero-portrait .img-frame img { object-position: 50% 20%; }
@keyframes hero-glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .hero-portrait::before { animation: none; } }
@media (max-width: 980px) { .hero-portrait-parallax::before { display: none; } }

/* ── ENTRADA CINEMÁTICA DEL HERO (una sola vez, al cargar) ── */
.hero-left > *, .hero-portrait {
  opacity: 0; transform: translateY(22px);
  animation: hero-in 0.9s var(--ease-out) forwards;
}
.hero-left .eyebrow      { animation-delay: 0.05s; }
.hero-left .hero-title   { animation-delay: 0.16s; }
.hero-left .hero-subtitle{ animation-delay: 0.30s; }
.hero-left .hero-badges  { animation-delay: 0.42s; }
.hero-left .hero-actions { animation-delay: 0.52s; }
.hero-left .hero-trust   { animation-delay: 0.62s; }
.hero-portrait            { animation-delay: 0.30s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Línea dorada del eyebrow del hero: se dibuja de 0 a su ancho final,
   apenas después de que el eyebrow empieza a aparecer con hero-in. */
.hero-left .eyebrow::before {
  width: 0;
  animation: eyebrow-line-draw 0.6s var(--ease-out) forwards;
  animation-delay: 0.3s;
}
@keyframes eyebrow-line-draw { to { width: 26px; } }

@media (prefers-reduced-motion: reduce) {
  .hero-left > *, .hero-portrait { opacity: 1; transform: none; animation: none; }
  .hero-left .eyebrow::before { animation: none; width: 26px; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  color: var(--gold-deep); opacity: 0.65;
  animation: scroll-cue-bounce 2.2s ease-in-out infinite;
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.scroll-cue:hover { color: var(--gold); opacity: 1; }
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

@media (max-width: 980px) {
  #hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; min-height: auto; gap: 1.8rem; }
  .hero-portrait { order: -1; max-width: 280px; margin: 0 auto; }
  .hero-portrait .img-frame { aspect-ratio: 1/1; }
  .hero-portrait::after { inset: 8px -8px -8px 8px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
/* ═══════════════════════════════════════════════════════════
   SCROLL SYSTEM — snap sections + progress bar + active nav
   ═══════════════════════════════════════════════════════════ */

/* Snap container. "proximity" (not "mandatory") so long sections
   (testimonials, FAQ) don't fight the user trying to read mid-section. */
html {
  scroll-snap-type: y proximity;
}
.snap-section {
  scroll-snap-align: start;
  scroll-margin-top: 0;
}
@media (max-width: 700px) {
  /* Snap fights mobile momentum-scroll and virtual keyboards too often — disable there */
  html { scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}

/* Progress bar — thin gold line under the nav, fills with scroll position */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 1001;
  transition: width 0.1s linear;
}
/* ═══════════════════════════════════════════════════════════
   SECTION HEADER (shared)
   ═══════════════════════════════════════════════════════════ */
.section-head { max-width: 620px; margin-bottom: 3.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lede { margin: 0 auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ═══════════════════════════════════════════════════════════
   PROBLEMAS QUE RESUELVO  (#servicios)
   ═══════════════════════════════════════════════════════════ */
#servicios { background: var(--paper); }
.problems-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.problem-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--anchor-card), var(--anchor) 130%);
  border-color: var(--anchor-border);
}
.problem-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold-lg); }
.problem-card .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }

/* Numeral editorial — watermark muy sutil, detrás del contenido (z-index negativo) */
.problem-num {
  position: absolute; top: 0.3rem; right: 1.1rem; z-index: -1;
  font-family: var(--font-display); font-size: 4.6rem; line-height: 1;
  color: rgba(201, 166, 107, 0.18); pointer-events: none; user-select: none;
}
@media (max-width: 480px) { .problem-num { font-size: 3.4rem; } }
.problem-card .lamp { width: 24px; height: 24px; }
.problem-card h3 { font-weight: 400; margin-bottom: 0.7rem; color: var(--anchor-text); }
.problem-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.problem-tag {
  font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-bright); background: var(--anchor-wash); padding: 0.28rem 0.65rem; border-radius: 20px;
  border: 1px solid var(--anchor-wash-strong);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.problem-card:hover .problem-tag { background: var(--anchor-wash-strong); border-color: var(--gold); }
.problem-card p { color: var(--anchor-text-dim); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.1rem; }
.problem-mode { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--anchor-text-dim); }

/* Servicios personalizados (empresas/equipos/grupos) — misma tarjeta, a lo ancho del grid */
.problems-grid .services-custom { grid-column: 1 / -1; }
.problems-grid .services-custom .btn-wa { margin-top: 0.3rem; }
.problems-grid .problem-card:nth-child(5) { transition-delay: 0.3s; }

@media (max-width: 780px) {
  .problems-grid { grid-template-columns: 1fr; }
}

/* ── CTA intermedio (post-Problemas) ── */
.mid-cta {
  background: var(--paper-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 2.8rem 5%;
}
.mid-cta-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
  text-align: center;
}
.mid-cta-inner p {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--ink); margin: 0; flex: 1; min-width: 260px;
}
.mid-cta .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .mid-cta-inner { flex-direction: column; text-align: center; }
  .mid-cta .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   POR QUÉ ELEGIRME  (#enfoque)
   ═══════════════════════════════════════════════════════════ */
#enfoque {
  position: relative;
  background: var(--anchor);
  border-top: 1px solid var(--anchor-border); border-bottom: 1px solid var(--anchor-border);
}
#enfoque::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
#enfoque .eyebrow { color: var(--gold-bright); }
#enfoque .eyebrow::before { background: var(--gold); }
#enfoque h2 { color: var(--anchor-text); }
#enfoque h2 em { color: var(--gold-bright); }

.why-intro { display: grid; grid-template-columns: 1fr; margin-bottom: 3.2rem; text-align: center; justify-items: center; }
.why-intro .approach-copy { max-width: 660px; }
.why-intro .approach-copy .eyebrow { justify-content: center; }
.why-intro .approach-copy .eyebrow::before { display: none; }
.why-intro .approach-copy p { color: var(--anchor-text-dim); font-size: 1.08rem; line-height: 1.9; margin-bottom: 1.1rem; margin-left: auto; margin-right: auto; }

/* ── Franja de autoridad — hechos reales, sin cajas, tratamiento editorial ── */
.authority-stats {
  display: flex; align-items: stretch; justify-content: center;
  max-width: 780px; margin: 0 auto; gap: 0;
}
.authority-stat {
  flex: 1; padding: 0 2rem; text-align: center;
  border-left: 1px solid var(--anchor-border);
}
.authority-stat:first-child { border-left: none; }
.authority-stat .num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-bright); line-height: 1; margin-bottom: 0.5rem;
}
.authority-stat .num-word { font-size: clamp(1.3rem, 2.1vw, 1.6rem); font-style: italic; }
.authority-stat .label { font-size: 0.88rem; color: var(--anchor-text-dim); line-height: 1.5; }

/* Acento dorado que se dibuja bajo cada cifra al revelarse (sincronizado con .reveal-scale existente) */
.authority-stat .num::after {
  content: ''; display: block; width: 0; height: 1px; background: var(--gold);
  margin: 0.55rem auto 0; transition: width 0.6s var(--ease-out) 0.25s;
}
.authority-stats.visible .authority-stat .num::after { width: 30px; }

@media (max-width: 700px) {
  .authority-stats { flex-direction: column; gap: 1.6rem; }
  .authority-stat { border-left: none; border-top: 1px solid var(--anchor-border); padding: 1.4rem 0 0; }
  .authority-stat:first-child { border-top: none; padding-top: 0; }
}
/* ═══════════════════════════════════════════════════════════
   SOBRE MÍ  (#sobre-mi)
   ═══════════════════════════════════════════════════════════ */
#sobre-mi { background: var(--paper); }

.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center;
}

.about-collage {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 0.9rem; height: 560px;
}
.about-collage .img-frame:first-child { grid-row: 1 / 3; }
.about-collage::before {
  content: '';
  position: absolute; top: -1.2rem; right: -1.2rem; width: 90px; height: 90px;
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
  z-index: -1;
}

.about-text .eyebrow { margin-bottom: 1.2rem; }
.about-text > p { color: var(--ink-dim); font-size: 1.04rem; line-height: 1.85; margin-bottom: 1.6rem; max-width: 54ch; }
.about-text > p strong { color: var(--ink); font-weight: 500; }

.about-question {
  padding-left: 1.1rem; border-left: 2px solid var(--border-strong);
  margin-bottom: 1.7rem; transition: border-color var(--dur-base) var(--ease);
}
.about-question:hover { border-left-color: var(--gold); }
.about-question h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; }
.about-question p { color: var(--ink-dim); font-size: 1rem; line-height: 1.8; max-width: 56ch; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-collage { height: 420px; }
}
@media (max-width: 520px) {
  .about-collage { height: 340px; gap: 0.6rem; }
  .about-collage::before { display: none; }
}
/* ═══════════════════════════════════════════════════════════
   TESTIMONIOS  (#testimonios)
   ═══════════════════════════════════════════════════════════ */
#testimonios { background: var(--paper); overflow: hidden; }

.testi-track-wrap {
  position: relative;
  margin: 0 -5%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testi-track {
  display: flex; gap: 1.1rem; width: max-content;
  animation: testi-scroll 90s linear infinite;
  padding: 0.4rem 5%;
}
.testi-track-wrap:hover .testi-track { animation-play-state: paused; }
@keyframes testi-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
  .testi-track-wrap { overflow-x: auto; scroll-snap-type: x proximity; }
  .testi-card { scroll-snap-align: start; }
}

/* Táctil (celular/tablet): no hay :hover real para pausar el auto-scroll,
   así que en vez de forzar el marquee, se entrega control total al dedo
   (swipe manual con snap), igual que se hace para reduced-motion.
   IMPORTANTE: el contenedor que realmente puede tener overflow/scroll es
   .testi-track-wrap, no .testi-track — este último mide "width: max-content"
   (se ajusta exacto a su contenido), así que jamás desborda de sí mismo. */
@media (hover: none), (pointer: coarse) {
  .testi-track-wrap {
    overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .testi-track-wrap::-webkit-scrollbar { display: none; }
  .testi-track { animation: none; }
  .testi-card { scroll-snap-align: start; }
}

/* El segundo set (17-32) es una copia exacta del primero, solo para que el
   marquee de escritorio pueda hacer loop infinito sin salto visible.
   display:contents lo hace invisible al layout flex (los 16 hijos siguen
   siendo ítems directos del track); en táctil se oculta por completo para
   que el swipe manual no repita los mismos 16 testimonios dos veces. */
.testi-duplicate { display: contents; }
@media (hover: none), (pointer: coarse) {
  .testi-duplicate { display: none; }
}

/* Controles táctiles — reemplazan al :hover que no existe en móvil */
.testi-nav { display: none; }
@media (hover: none), (pointer: coarse) {
  .testi-nav {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    margin-top: 1.4rem;
  }
  .testi-nav-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-card); border: 1px solid var(--border-strong);
    color: var(--ink-dim); cursor: pointer;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .testi-nav-btn:active { transform: scale(0.92); background: var(--gold-wash); border-color: var(--gold); color: var(--gold-deep); }
  .testi-counter { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-faint); min-width: 3.6em; text-align: center; }
}

.testi-card {
  position: relative;
  flex: 0 0 310px;
  background: linear-gradient(180deg, var(--anchor-card), var(--anchor) 140%);
  border: 1px solid var(--anchor-border);
  border-top: 2px solid var(--gold);
  border-radius: 8px; padding: 1.7rem 1.6rem 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold-lg); border-color: var(--gold); }
.testi-card::before {
  content: '"'; position: absolute; top: 0.6rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1; font-weight: 600;
  color: rgba(222, 192, 138, 0.16); pointer-events: none;
}
.testi-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  border: 1.5px solid var(--gold);
}
.testi-avatar svg { width: 100%; height: 100%; }
.testi-author { font-size: 0.94rem; color: var(--anchor-text); font-weight: 500; }
.testi-meta { font-size: 0.82rem; color: var(--gold-bright); letter-spacing: 0.06em; }
.testi-text { position: relative; font-size: 0.96rem; color: var(--anchor-text-dim); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   FAQ  (#faq)
   ═══════════════════════════════════════════════════════════ */
#faq { background: var(--paper-alt); border-top: 1px solid var(--border-soft); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 1.5rem 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); font-weight: 400;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq-item summary .icon::before, .faq-item summary .icon::after {
  content: ''; position: absolute; background: var(--gold-deep); transition: transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.faq-item summary .icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-item summary .icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.faq-item[open] summary .icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary { color: var(--ink); font-weight: 700; }
.faq-item p {
  display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.8; max-width: 62ch;
  overflow: hidden; max-height: 0; opacity: 0; margin-top: 0;
  transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease), margin-top 0.45s var(--ease);
}
.faq-item[open] p { max-height: 400px; opacity: 1; margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .faq-item p { transition: none; } }

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
   ═══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa-green); color: #04150a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(20,18,15,0.25);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(20,18,15,0.32); }
.wa-float:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa-green); opacity: 0.55;
  animation: wa-pulse 2.6s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media (max-width: 700px) {
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* ═══════════════════════════════════════════════════════════
   SISTEMA DE ACCESOS FLOTANTES — Artículos / Agendar / Portal
   Mismo componente (.site-float) para los tres: forma, tamaño,
   sombra, borde y hover idénticos — cada clase adicional solo
   define su posición vertical en la pila, apilados encima de
   WhatsApp. El dorado se usa como acento (borde + icono), nunca
   como fondo sólido, y solo aquí — no reemplaza el verde de
   WhatsApp, que conserva su propia identidad/urgencia.
   Tooltip accesible: reutiliza el mismo aria-label vía
   content:attr(), visible en hover y en focus por teclado.
   ═══════════════════════════════════════════════════════════ */
.site-float {
  position: fixed; right: 22px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--anchor-card); color: var(--gold-bright);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(20,18,15,0.22);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-float:hover { transform: scale(1.08); background: var(--anchor); box-shadow: 0 8px 28px rgba(20,18,15,0.3); }
.site-float:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.site-float::after {
  content: attr(aria-label); position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--anchor); color: var(--anchor-text);
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.03em; white-space: nowrap;
  padding: 0.5rem 0.9rem; border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.site-float:hover::after, .site-float:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }

.portal-float { bottom: 90px; }
.agendar-float { bottom: 154px; }
.articles-float { bottom: 218px; }

@media (max-width: 700px) {
  .site-float { right: 16px; width: 46px; height: 46px; }
  .site-float svg { width: 19px; height: 19px; }
  .site-float::after { display: none; }
  .portal-float { bottom: 76px; }
  .agendar-float { bottom: 132px; }
  .articles-float { bottom: 188px; }
}
@media (max-width: 380px) {
  .site-float { width: 42px; height: 42px; }
  .wa-float { width: 46px; height: 46px; }
  .portal-float { bottom: 68px; }
  .agendar-float { bottom: 116px; }
  .articles-float { bottom: 164px; }
}
@supports (padding: max(0px)) {
  .wa-float, .site-float { bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); }
  .portal-float { bottom: max(90px, calc(env(safe-area-inset-bottom) + 80px)); }
  .agendar-float { bottom: max(154px, calc(env(safe-area-inset-bottom) + 144px)); }
  .articles-float { bottom: max(218px, calc(env(safe-area-inset-bottom) + 208px)); }
  @media (max-width: 700px) {
    .wa-float, .site-float { bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px)); }
    .portal-float { bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px)); }
    .agendar-float { bottom: max(132px, calc(env(safe-area-inset-bottom) + 126px)); }
    .articles-float { bottom: max(188px, calc(env(safe-area-inset-bottom) + 182px)); }
  }
}
/* ═══════════════════════════════════════════════════════════
   GALERÍA  (#galeria)
   ═══════════════════════════════════════════════════════════ */
#galeria { background: var(--anchor); }
#galeria .eyebrow { color: var(--gold-bright); }
#galeria .eyebrow::before { background: var(--gold); }
#galeria h2 { color: var(--anchor-text); }
#galeria h2 em { color: var(--gold-bright); }
#galeria .lede { color: var(--anchor-text-dim); }

.gallery-videos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.2rem;
}
.video-frame {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  background: var(--anchor-card); cursor: pointer;
  border: 1px solid var(--anchor-border);
  box-shadow: var(--shadow-md);
}
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame .poster { position: absolute; inset: 0; transition: opacity var(--dur-base) var(--ease); }
.video-frame.playing img.poster { opacity: 0; pointer-events: none; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(14,13,11,0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), opacity var(--dur-base) var(--ease);
}
.video-frame:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: rgba(14,13,11,0.75); }
.video-frame.playing .play-btn { opacity: 0; pointer-events: none; }
.play-btn svg { margin-left: 3px; }

@media (max-width: 780px) {
  .gallery-videos { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
}
@media (max-width: 480px) {
  .gallery-videos { gap: 0.4rem; }
  .play-btn { width: 42px; height: 42px; }
  .play-btn svg { width: 15px; height: 15px; }
}

/* ═══════════════════════════════════════════════════════════
   VIDEO LIGHTBOX — modo cine para los videos de la galería
   ═══════════════════════════════════════════════════════════ */
html.vl-lock, body.vl-lock { overflow: hidden; }

.video-lightbox {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}
.video-lightbox.open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-base) var(--ease), visibility 0s linear 0s;
}
.vl-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 27, 45, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vl-stage {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.96); transition: transform var(--dur-base) var(--ease);
}
.video-lightbox.open .vl-stage { transform: scale(1); }
.vl-video-wrap { line-height: 0; }
.vl-video-wrap video {
  display: block;
  max-width: 92vw; max-height: 92vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-xl);
  background: #000;
}
.vl-controls {
  position: absolute; z-index: 2;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: flex; gap: 0.6rem;
}
.vl-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(36, 59, 83, 0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-md);
}
.vl-btn:hover { transform: scale(1.08); background: var(--anchor); }

@media (max-width: 640px) {
  .video-lightbox { padding: 0; }
  .vl-video-wrap video { max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .vl-controls { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); gap: 0.5rem; }
  .vl-btn { width: 48px; height: 48px; }
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL  (#contacto) — ancla negra de cierre
   ═══════════════════════════════════════════════════════════ */
#contacto {
  background: var(--anchor);
  position: relative;
}
#contacto::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: cta-line-breathe 5s ease-in-out infinite;
}
@keyframes cta-line-breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #contacto::before { animation: none; opacity: 1; } }
#contacto .eyebrow { color: var(--gold-bright); }
#contacto .eyebrow::before { background: var(--gold); }
#contacto h2 { color: var(--anchor-text); }
#contacto h2 em { color: var(--gold-bright); }
#contacto .lamp path, #contacto .lamp circle, footer .lamp path, footer .lamp circle { stroke: var(--gold-bright); }
#contacto .lamp .bulb, footer .lamp .bulb { fill: var(--gold-bright); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  padding: 2.2rem 1.5rem;
  background: var(--anchor-card); border: 1px solid var(--anchor-border);
  border-radius: var(--radius);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); background: rgba(201,166,107,0.1);
}
.contact-card .kicker { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.3rem; }
.contact-card .headline { font-family: var(--font-display); font-size: 1.1rem; color: var(--anchor-text); margin-bottom: 0.3rem; }
.contact-card .subtext { font-size: 0.86rem; color: var(--anchor-text-dim); }
.contact-card.cta-primary { border-color: var(--gold); background: var(--anchor-card); }
.contact-card .btn { margin-top: 0.6rem; width: 100%; }
.contact-card .wa-link { margin-top: 0.5rem; font-size: 0.84rem; color: var(--anchor-text-dim); display: inline-flex; align-items: center; gap: 0.4rem; }
.contact-card .wa-link:hover { color: var(--wa-green); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   FOOTER — mismo ancla negra, continuidad con el CTA final
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--anchor); padding: 3rem 5% 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center;
  border-top: 1px solid var(--anchor-border);
}
.footer-logo { font-family: var(--font-display); font-size: 1.05rem; color: var(--anchor-text); display: flex; align-items: center; gap: 0.6rem; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--anchor-text-dim); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy { font-size: 0.76rem; color: var(--anchor-text-dim); }
