/* =====================================================
   iFix Medical Solutions — Stylesheet
   Tipografía: IBM Plex Sans (display/títulos) + Manrope (UI/cuerpo)
   Animación: clases base + hooks para GSAP/ScrollTrigger
   Pure CSS — sin frameworks
   ===================================================== */

/* ── 1. Design tokens ─────────────────────────────── */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #3B82F6;
  --accent:        #60A5FA;
  --pale:          #EFF6FF;
  --pale2:         #DBEAFE;
  --white:         #FFFFFF;
  --ink:           #0E1726;   /* casi negro, elegante */
  --ink-2:         #334155;
  --muted:         #64748B;
  --muted-2:       #94A3B8;
  --line:          #E7EBF1;
  --surface:       #F7F9FC;
  --surface-2:     #EEF3FB;
  --green:         #16A34A;

  --radius:        14px;
  --radius-lg:     22px;
  --radius-xl:     34px;
  --radius-2xl:    44px;

  --shadow-sm:     0 2px 10px rgba(15,23,42,.05);
  --shadow:        0 14px 40px -18px rgba(15,23,42,.22);
  --shadow-lg:     0 40px 80px -32px rgba(15,23,42,.34);
  --shadow-blue:   0 18px 40px -16px rgba(37,99,235,.45);

  --ease:          .4s cubic-bezier(.22,1,.36,1);
  --ease-fast:     .25s cubic-bezier(.22,1,.36,1);

  --header-h:      78px;
  --section-pad:   clamp(76px, 10vw, 150px);
  --gutter:        clamp(20px, 5vw, 48px);
}

/* ── 2. Reset & base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -.01em;
  color: var(--ink-2);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
sup { font-size: .55em; vertical-align: super; }

h1,h2,h3,h4,h5 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  font-weight: 600;
}

/* ── 3. Layout helpers ────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display { font-family: 'IBM Plex Sans', system-ui, sans-serif; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--primary);
  margin-bottom: 22px;
}
.eyebrow-line {
  width: 34px; height: 2px;
  background: var(--primary);
  display: inline-block;
}
.eyebrow--light { color: var(--accent); }
.eyebrow--light .eyebrow-line { background: var(--accent); }
.eyebrow--center { justify-content: center; }

.section-title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.04;
}
.section-title em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
}

/* Encabezado de sección: título a la izq + lead a la der (editorial) */
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head-left { max-width: 640px; }
.section-head .section-lead { padding-bottom: 6px; }

.text-center { text-align: center; }
.text-center .eyebrow { justify-content: center; }

/* ── 4. Animación base (revelado) ─────────────────── */
/* Solo se ocultan cuando JS está activo, para no romper sin JS */
.js [data-reveal] { opacity: 0; transform: translateY(38px); }
.js [data-split]  { opacity: 1; }            /* el split controla sus palabras */
.js [data-split] .word { display: inline-block; will-change: transform; }
.js [data-img-reveal] { will-change: transform; }

/* fallback de revelado por si GSAP no carga (lo activa el JS) */
.no-gsap [data-reveal] {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

/* ── 5. Botones ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 17px 36px; font-size: 16px; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -18px rgba(37,99,235,.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-ghost .arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform var(--ease), background var(--ease);
}
.btn-ghost:hover .arrow { background: var(--primary); transform: translateY(3px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: var(--white); transform: translateY(-3px); }

/* ── 6. Scroll progress + WhatsApp ────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9500;
  pointer-events: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9000;
  width: 60px; height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.7);
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-float::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRing 2.4s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }

/* ── Globo de aviso sobre el botón de WhatsApp ─────────────────────────
   El botón se envuelve en .fab-wa (toma el posicionamiento fijo) y el globo
   se muestra solo al cargar (animación) y se cierra con la X (checkbox CSS,
   sin JS → funciona igual en index y cotización). Reaparece en cada recarga. */
.fab-wa { position: fixed; bottom: 28px; right: 28px; z-index: 9000; }
.fab-wa .whatsapp-float { position: relative; bottom: auto; right: auto; z-index: auto; }
.fab-bubble-toggle { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.fab-bubble {
  position: absolute; bottom: calc(100% + 16px); right: 0;
  width: max-content; max-width: min(280px, 42vw);
  color: #fff;
  background: linear-gradient(135deg, rgba(37,211,102,.85), rgba(18,165,74,.85));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.32); border-radius: 16px;
  padding: 13px 16px;
  box-shadow: 0 18px 44px -14px rgba(22,163,74,.6), inset 0 1px 0 rgba(255,255,255,.42);
  font-size: 13.5px; line-height: 1.45; font-weight: 600;
  transform-origin: bottom right;
  animation: fabBubbleIn .55s cubic-bezier(.34,1.4,.5,1) .8s both,
             fabBubbleFloat 3.6s ease-in-out 1.35s infinite;
}
.fab-bubble::after {
  content: ''; position: absolute; bottom: -6px; right: 22px;
  width: 13px; height: 13px; background: rgba(21,170,78,.92);
  border-right: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28);
  transform: rotate(45deg);
}
.fab-bubble-link { display: block; color: #fff; transition: opacity var(--ease); }
.fab-bubble-link:hover { opacity: .82; }
.fab-bubble-x {
  position: absolute; top: -9px; right: -9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #12A54A; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  box-shadow: 0 5px 14px -3px rgba(15,23,42,.45);
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s;
}
.fab-bubble-x:hover { transform: scale(1.12) rotate(90deg); background: #E8FBF0; }
.fab-bubble-toggle:checked ~ .fab-bubble { display: none; }
@keyframes fabBubbleIn {
  from { opacity: 0; transform: translateY(14px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes fabBubbleFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── 7. Header ────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  padding: 16px var(--gutter) 0;
  /* Arriba: velo sutil de arriba-a-abajo para legibilidad del texto blanco (sin pill) */
  background: linear-gradient(180deg, rgba(8,13,25,.45) 0%, rgba(8,13,25,0) 100%);
  transition: padding var(--ease), background var(--ease);
}
.header.scrolled { padding-top: 10px; background: transparent; }

/* Barra flotante tipo "pill" de cristal; aporta su propio fondo y legibilidad */
@keyframes headerIn {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.header-inner {
  height: 64px;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 28px);
  display: flex;
  align-items: center;
  gap: 32px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  animation: headerIn .7s var(--ease) .12s both;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), max-width var(--ease), backdrop-filter var(--ease);
}
/* Al hacer scroll, la barra se contrae en una "pill" de cristal blanco */
.header.scrolled .header-inner {
  max-width: 1160px;
  background: rgba(255,255,255,.82);
  border-color: rgba(15,23,42,.07);
  box-shadow: 0 12px 34px -14px rgba(15,23,42,.28);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.header-logo img {
  height: 32px; width: auto;
  object-fit: contain;
  transition: height var(--ease), filter var(--ease), transform var(--ease);
}
.header.scrolled .header-logo img { height: 30px; }
.header-logo:hover img { transform: scale(1.05); }
/* En el top, sobre el hero oscuro, el logo va en blanco para legibilidad */
.header:not(.scrolled) .header-logo img { filter: brightness(0) invert(1); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  flex-shrink: 0;
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.header-nav a {
  padding: 9px 17px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  animation: navItemIn .5s var(--ease) both;
  transition: color var(--ease), background var(--ease);
}
.header-nav a:nth-child(1) { animation-delay: .30s; }
.header-nav a:nth-child(2) { animation-delay: .37s; }
.header-nav a:nth-child(3) { animation-delay: .44s; }
.header-nav a:nth-child(4) { animation-delay: .51s; }
.header-nav a:nth-child(5) { animation-delay: .58s; }
.header-nav a:hover,
.header-nav a[aria-current="true"] { color: var(--primary); background: rgba(37,99,235,.09); }

/* ── Submenú de navegación (Servicios → I Fix Play) ─────────
   El item envuelto conserva el mismo entrance stagger que tenía como <a>. */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: navItemIn .5s var(--ease) .37s both;
}
.nav-sub-trigger { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
/* Anillo de foco solo con teclado (no al hacer click con el ratón) */
.nav-sub-trigger:focus { outline: none; }
.nav-sub-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 100px; }
.nav-caret {
  font-size: 10px;
  margin-left: 5px;
  opacity: .7;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  margin-top: 12px;
  min-width: 250px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 48px -20px rgba(15,23,42,.42);
  transform-origin: top center;
  z-index: 8500;
  /* Estado cerrado + curva de CIERRE (rápida, se retrae hacia el trigger) */
  transform: translateX(-50%) translateY(-10px) scale(.84);
  opacity: 0; visibility: hidden; pointer-events: none;
  filter: blur(7px);
  transition:
    opacity .16s ease,
    transform .2s cubic-bezier(.4,0,1,1),
    filter .16s ease,
    visibility .2s,
    background-color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}
/* Estado ABIERTO — estilo "isla dinámica": emerge del trigger con resorte
   (overshoot elástico), desenfoque que se disuelve y escala. */
.nav-item.open .nav-dropdown {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1; visibility: visible; pointer-events: auto;
  filter: blur(0);
  transition:
    opacity .28s ease,
    transform .52s cubic-bezier(.34,1.56,.64,1),
    filter .3s ease,
    visibility 0s,
    background-color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}

.nav-drop-link {
  display: flex; align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}
.nav-drop-link:hover { background: var(--pale); }
.nav-drop-link:hover .nav-drop-txt strong { color: var(--primary); }
.nav-drop-txt { display: flex; flex-direction: column; line-height: 1.25; }
.nav-drop-txt strong { font-size: 14.5px; font-weight: 700; color: var(--ink); transition: color var(--ease); }
.nav-drop-txt small { font-size: 12px; color: var(--ink-2); margin-top: 1px; transition: color var(--ease); }

/* El panel sigue los flujos de color del header:
   sobre el hero (top) va en cristal oscuro; en scrolled, blanco. */
.header:not(.scrolled) .nav-dropdown {
  background: rgba(16,25,42,.72);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 26px 54px -22px rgba(0,0,0,.6);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}
.header:not(.scrolled) .nav-drop-txt strong { color: #fff; }
.header:not(.scrolled) .nav-drop-txt small { color: rgba(255,255,255,.6); }
.header:not(.scrolled) .nav-drop-link:hover { background: rgba(255,255,255,.12); }
.header:not(.scrolled) .nav-drop-link:hover .nav-drop-txt strong { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  animation: navItemIn .5s var(--ease) .5s both;
}
.header-nav + .header-actions { margin-left: 0; }

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink-2);
  transition: color var(--ease);
}
.nav-login:hover { color: var(--primary); }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn-header:hover { background: var(--primary); transform: translateY(-2px); }

/* Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 11px;
}
.menu-toggle span {
  display: block; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Estado "top": el header va sobre el hero oscuro → contenido claro y legible.
   Al pasar a .scrolled (y > 40) revierte al estilo claro de fondo blanco. */
.header:not(.scrolled) .header-nav a { color: rgba(255,255,255,.86); }
.header:not(.scrolled) .header-nav a:hover,
.header:not(.scrolled) .header-nav a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.14); }
.header:not(.scrolled) .nav-login { color: rgba(255,255,255,.82); }
.header:not(.scrolled) .nav-login:hover { color: #fff; }
.header:not(.scrolled) .btn-header {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header:not(.scrolled) .btn-header:hover { background: #fff; color: var(--ink); border-color: #fff; }
.header:not(.scrolled) .menu-toggle {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header:not(.scrolled) .menu-toggle span { background: #fff; }

/* ── 8. Mobile nav ────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(14,23,38,.5);
  backdrop-filter: blur(2px);
  z-index: 8100;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed;
  top: 0; right: -340px;
  width: 320px; max-width: 86vw;
  height: 100vh;
  background: var(--white);
  z-index: 8200;
  display: flex; flex-direction: column;
  padding: 26px;
  transition: right .42s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 34px;
}
.mobile-nav-header img { height: 38px; }
.mobile-nav-close {
  width: 40px; height: 40px;
  border: none; background: var(--surface);
  border-radius: 12px;
  font-size: 18px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.mobile-nav-close:hover { background: var(--pale2); }

.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mobile-link {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius);
  font-size: 15.5px; font-weight: 600;
  color: var(--ink-2);
  transition: background var(--ease), color var(--ease);
}
.mobile-link:hover { background: var(--pale); color: var(--primary); }
.mobile-link i { width: 20px; color: var(--primary); }

/* Sub-enlace del menú móvil (I Fix Play, hijo de Servicios) */
.mobile-sublink {
  margin-left: 30px;
  padding-top: 12px; padding-bottom: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
}
/* Conector en "L" que lo enlaza visualmente con Servicios */
.mobile-sublink::before {
  content: '';
  position: absolute;
  left: -12px; top: -4px; bottom: 50%;
  width: 12px;
  border-left: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  border-bottom-left-radius: 8px;
}
.mobile-sublink i { font-size: 13px; }
.mobile-subtag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--pale);
  padding: 3px 8px;
  border-radius: 100px;
}

.mobile-nav-footer {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-footer .btn { justify-content: center; width: 100%; }

/* ── 9. Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 30px);
  padding-bottom: 60px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  /* Foto del hero a sangre completa: WebP con fallback a JPEG */
  background-color: var(--ink);
  background-image: url("../../assets/img/hero.jpeg"); /* fallback: navegadores sin image-set */
  background-image: image-set(url("../../assets/img/hero.webp") type("image/webp"), url("../../assets/img/hero.jpeg") type("image/jpeg"));
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Velo azul-tinta sobre la foto para que el texto blanco sea legible */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Glow azul de marca detrás del título — aporta profundidad y foco */
    radial-gradient(66% 56% at 23% 40%, rgba(37,99,235,.28) 0%, rgba(37,99,235,0) 60%),
    linear-gradient(98deg,
      rgba(9,15,28,.95)  0%,
      rgba(9,15,28,.86) 30%,
      rgba(10,18,36,.58) 52%,
      rgba(11,20,40,.28) 74%,
      rgba(11,20,40,.16) 100%),
    linear-gradient(0deg,
      rgba(9,15,28,.6) 0%,
      rgba(9,15,28,0) 42%),
    /* Viñeta suave en los bordes para dar dimensión */
    radial-gradient(135% 125% at 50% 44%, transparent 52%, rgba(5,9,18,.5) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy { max-width: 636px; }

.hero-title {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 30px rgba(6,12,24,.45);
}
.hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(233,240,252,.85);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 24px;
  text-shadow: 0 1px 18px rgba(6,12,24,.4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Franja de confianza — señales de credibilidad bajo los CTAs */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 30px;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(226,234,248,.82);
}
.hero-trust i { color: var(--accent); font-size: 13.5px; }

.hero-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.22);
}
/* Tick de acento sobre la divisoria — mismo motivo que la línea del eyebrow */
.hero-meta::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 46px; height: 2px;
  background: var(--accent);
}
.hero-meta-item { position: relative; display: flex; flex-direction: column; gap: 2px; }
/* Separador vertical hairline entre estadísticas */
.hero-meta-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2px; bottom: 2px;
  right: calc(-1 * clamp(12px, 2vw, 26px));
  width: 1px;
  background: rgba(255,255,255,.3);
}
.hero-meta-item strong {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.hero-meta-item span {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(214,224,242,.72);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.35;
}

/* Eyebrow y botón fantasma adaptados al fondo oscuro (scoped al hero) */
.hero .eyebrow { color: var(--accent); margin-bottom: 16px; }
.hero .eyebrow-line { background: var(--accent); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.34); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero .btn-ghost .arrow { background: #fff; color: var(--ink); }
.hero .btn-ghost:hover .arrow { background: var(--accent); color: var(--ink); }

/* Badge flotante (ISO) sobre la foto */
.hero-float {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(84px, 12vh, 128px);
  background: rgba(255,255,255,.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}
.hero-float-num {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.hero-float-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.72);
}
.hero-scroll-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1.5px; height: 50px;
  background: linear-gradient(rgba(255,255,255,.85), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 40%;
  background: #fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ── 10. Ticker (banda editorial) ─────────────────── */
.ticker {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid rgba(255,255,255,.06);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.ticker-group {
  display: inline-flex;
  align-items: center;
}
.ticker span {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px);
  padding: 0 30px;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
}
.ticker .dot {
  font-size: 10px;
  color: var(--accent);
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

/* ── 11. Servicios (lista numerada) ───────────────── */
#servicios { padding: var(--section-pad) 0; background: var(--white); }

/* Tres tarjetas en horizontal (una al lado de la otra) */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}
.service-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 28px -22px rgba(9,15,28,.16);
  transition: transform .5s cubic-bezier(.22,1,.36,1),
              box-shadow .5s cubic-bezier(.22,1,.36,1),
              border-color .5s cubic-bezier(.22,1,.36,1);
}
/* Barra superior que se despliega en hover */
.service-row::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  z-index: 2;
}
/* Halo suave desde arriba */
.service-row::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 50% 0%, var(--pale) 0%, transparent 62%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  z-index: 0;
}
.service-row > * { position: relative; z-index: 1; }
.service-row:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 26px 52px -24px rgba(9,15,28,.28);
}
.service-row:hover::before { transform: scaleX(1); }
.service-row:hover::after  { opacity: 1; }

.service-no {
  position: absolute;
  top: clamp(22px, 3vw, 32px);
  right: clamp(24px, 3vw, 34px);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
  color: var(--muted-2);
  opacity: .55;
  transition: color var(--ease), opacity var(--ease);
}
.service-row:hover .service-no { color: var(--primary); opacity: 1; }

.service-ic {
  width: 66px; height: 66px;
  border-radius: 20px;
  background: var(--pale);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  transition: background var(--ease), color var(--ease);
}
.service-row:hover .service-ic { background: var(--primary); color: var(--white); }

/* El cuerpo crece para alinear todos los CTA al fondo de la tarjeta */
.service-body { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }
.service-body h3 {
  font-size: clamp(21px, 1.5vw, 25px);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.service-body p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: auto;   /* empuja el CTA hacia abajo */
}

/* En layout de tarjetas la flecha circular es redundante con el CTA */
.service-link { display: none; }

/* CTA textual diferenciado por servicio */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;   /* que abrace su contenido, no ancho completo */
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 12px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  background: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--primary);
  transition: background var(--ease), color var(--ease), border-color var(--ease), gap var(--ease);
}
.service-cta i { font-size: 12px; transition: transform var(--ease); }
.service-cta:hover { background: var(--primary); color: var(--white); gap: 13px; }
.service-cta:hover i { transform: translateX(4px); }

/* ── 12. Nuestro Trabajo ──────────────────────────── */
#trabajo { padding: var(--section-pad) 0; background: var(--surface); }

/* Destacados grandes */
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(16px, 2vw, 26px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.feature-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
}
.feature-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.feature-card--tall { min-height: 100%; }
.feature-media {
  width: 100%; height: 100%;
  overflow: hidden;
}
.feature-card--tall .feature-media { min-height: clamp(420px, 52vw, 640px); }
.feature-col .feature-media { min-height: clamp(200px, 24vw, 305px); }
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.feature-media--contain img { object-fit: contain; }
.feature-card:hover .feature-media img { transform: scale(1.04); }
.feature-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(to top, rgba(14,23,38,.88) 0%, rgba(14,23,38,.35) 55%, transparent 100%);
  z-index: 2;
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 23, 38, .6);
  border: 1px solid rgba(96, 165, 250, .5);
  box-shadow: 0 2px 10px rgba(14, 23, 38, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.feature-card figcaption h3 {
  color: var(--white);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
}

.gallery-note {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 26px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;   /* contexto para el posicionamiento absoluto de FLIP al filtrar */
}

.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.photo-card:hover img { transform: scale(1.08); }
.photo-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,23,38,.82) 0%, rgba(14,23,38,.05) 62%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-overlay-cat {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 4px;
}
.photo-overlay-title {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px; font-weight: 500; color: var(--white);
}
.photo-overlay-icon {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.16);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px;
  backdrop-filter: blur(4px);
  transform: scale(.7);
  transition: transform var(--ease);
}
.photo-card:hover .photo-overlay-icon { transform: scale(1); }

/* Filtros de la galería */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.gallery-filter:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.gallery-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.gallery-filter:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.gf-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 100px;
  background: var(--pale);
  color: var(--primary);
  transition: background var(--ease), color var(--ease);
}
.gallery-filter.is-active .gf-count { background: rgba(255,255,255,.22); color: var(--white); }

/* Tarjeta oculta por filtro o colapso */
.photo-card.is-hidden { display: none; }

/* Botón ver galería completa / ver menos */
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.gallery-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border-radius: 100px;
  background: transparent;
  border: 1.5px solid var(--line);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.gallery-more:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.gallery-more:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.gallery-more-ic {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform var(--ease);
}
.gallery-more.is-expanded .gallery-more-ic { transform: rotate(180deg); }

/* ── 13. Lightbox ─────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0;
  z-index: 9900;
  background: rgba(8,12,22,.9);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#lightbox.open { opacity: 1; pointer-events: auto; }

.lb-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 940px; width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 330px;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  position: relative;
  transform: scale(.96);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
#lightbox.open .lb-card { transform: scale(1); }

.lb-img-wrap { overflow: hidden; background: var(--ink); max-height: 90vh; }
.lb-img-wrap img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; }

.lb-info { display: flex; flex-direction: column; padding: 36px 30px; overflow-y: auto; }
.lb-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); background: var(--pale);
  padding: 5px 14px; border-radius: 100px;
  width: fit-content; margin-bottom: 18px;
}
.lb-title {
  font-size: 26px; font-weight: 600; margin-bottom: 12px;
}
.lb-desc { font-size: 15.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.lb-counter { font-size: 13px; color: var(--muted-2); margin: 20px 0; font-weight: 600; }
.lb-nav { display: flex; gap: 10px; margin-top: auto; }
.lb-btn {
  flex: 1; padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: transparent; cursor: pointer;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px;
  transition: all var(--ease);
}

.lb-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  cursor: pointer; color: var(--ink); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), transform var(--ease);
  z-index: 10;
}
.lb-close:hover { background: var(--white); transform: rotate(90deg); }

/* ── 13b. Modal · Política de Privacidad ──────────── */
.privacy-modal {
  position: fixed; inset: 0;
  z-index: 9950;
  background: rgba(8,12,22,.9);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.privacy-modal.open { opacity: 1; pointer-events: auto; }

.privacy-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 680px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  transform: scale(.96) translateY(8px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.privacy-modal.open .privacy-card { transform: scale(1) translateY(0); }

.privacy-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.92);
  border: none; border-radius: 50%;
  cursor: pointer; color: var(--ink); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), transform var(--ease);
  z-index: 2;
}
.privacy-close:hover { background: var(--pale); transform: rotate(90deg); }

.privacy-head {
  padding: 40px 40px 24px;
  background: linear-gradient(135deg, var(--pale), var(--white));
  border-bottom: 1px solid var(--line);
}
.privacy-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); background: var(--white);
  padding: 6px 14px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.privacy-title { font-size: clamp(24px, 4vw, 32px); font-weight: 600; }

.privacy-body { padding: 28px 40px 40px; overflow-y: auto; }
.privacy-body p { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 16px; }
.privacy-body p:last-child { margin-bottom: 0; }

.privacy-list { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.privacy-list li {
  position: relative; padding-left: 30px;
  font-size: 15.5px; color: var(--ink-2); line-height: 1.6;
}
.privacy-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 2px;
  color: var(--primary); font-size: 12px;
}

.privacy-mail {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pale); color: var(--primary);
  font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: var(--radius);
  margin: 4px 0 20px;
  transition: background var(--ease), transform var(--ease);
  word-break: break-word;
}
.privacy-mail:hover { background: var(--pale2); transform: translateY(-2px); }

@media (max-width: 560px) {
  .privacy-modal { padding: 14px; }
  .privacy-head { padding: 32px 24px 20px; }
  .privacy-body { padding: 22px 24px 32px; }
}

/* ── 14. Nosotros ─────────────────────────────────── */
#acerca { padding: var(--section-pad) 0; background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.about-visual { position: relative; }
.about-accent {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  top: -8%; left: -10%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--primary) 75%);
  border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
  opacity: .12;
  z-index: 0;
}
.about-media {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.about-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.about-media:hover img { transform: scale(1.05); }
/* Marco interior + degradado de profundidad */
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  background: linear-gradient(to top, rgba(14, 23, 38, .42) 0%, rgba(14, 23, 38, .08) 30%, transparent 60%);
}
.about-badge {
  position: absolute;
  z-index: 2;
  right: -18px; bottom: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-blue);
}
.about-badge-num {
  display: block;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 40px; font-weight: 600; line-height: 1;
}
.about-badge-label {
  font-size: 11.5px; font-weight: 600; opacity: .9; line-height: 1.4;
  display: block; margin-top: 4px;
}

.about-right { display: flex; flex-direction: column; align-items: flex-start; }
.about-right .section-title { margin-bottom: 26px; }
.about-quote {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-style: normal;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  padding-left: 22px;
  border-left: 3px solid var(--primary);
  margin-bottom: 30px;
}
.about-checklist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.about-check-item {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 16px; color: var(--ink-2);
}
.about-check-item i { color: var(--primary); margin-top: 4px; flex-shrink: 0; font-size: 17px; }

/* ── 15. Stats ────────────────────────────────────── */
.stats-section {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  padding: clamp(44px, 5vw, 68px) 0;
}
/* Métricas en una sola línea sobre el fondo azul (sin contenedor interno) */
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 32px);
  text-align: center;
}
.stat-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.stat-value {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(40px, 4.8vw, 62px);
  font-weight: 700;
  line-height: 1;
  /* número cristalino / liquid glass: relleno translúcido con sheen + brillo */
  background: linear-gradient(160deg,
    #ffffff 0%,
    rgba(255,255,255,.96) 30%,
    rgba(214,232,255,.78) 62%,
    rgba(255,255,255,.94) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 3px 10px rgba(4,16,45,.32))
    drop-shadow(0 0 12px rgba(255,255,255,.22));
}
.stat-label {
  font-size: clamp(12.5px, 1vw, 14.5px);
  color: rgba(255,255,255,.82);
  font-weight: 600;
  letter-spacing: .01em;
}
.stat-divider {
  flex: 0 0 1px;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35), transparent);
}

/* ── 16. ¿Por qué elegirnos? ──────────────────────── */
.why-section { background: var(--ink); padding: var(--section-pad) 0; }
.why-section .section-title { color: var(--white); }
.section-head--dark .section-lead { color: rgba(255,255,255,.6); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.why-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(96,165,250,.45);
  transform: translateY(-6px);
}
.why-icon {
  width: 56px; height: 56px;
  background: rgba(37,99,235,.28);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--accent);
}
.why-card h3 { font-size: 20px; font-weight: 600; color: var(--white); }
.why-card p { font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.65; }

/* Banda de emergencia 24/7 */
.emergency-band {
  margin-top: clamp(26px, 3.5vw, 44px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  flex-wrap: wrap;
  padding: clamp(26px, 3.5vw, 40px) clamp(26px, 4vw, 50px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 240px at 88% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(120deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
.emergency-pulse {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
  position: relative;
}
.emergency-pulse::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  animation: emergencyPulse 2.2s ease-out infinite;
}
@keyframes emergencyPulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.emergency-copy { flex: 1 1 300px; }
.emergency-copy h3 { color: #fff; font-size: clamp(19px, 2.2vw, 26px); margin-bottom: 7px; }
.emergency-copy p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.55; }
.emergency-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-emergency {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700;
  background: #fff; color: var(--primary-dark);
  border: 1.5px solid #fff;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn-emergency:hover { transform: translateY(-3px); }
.btn-emergency--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-emergency--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ── 17. Misión y Visión ──────────────────────────── */
.mision-section {
  position: relative;
  background: var(--surface);
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.mision-section::before {
  content: '';
  position: absolute;
  top: -12%; right: -8%;
  width: clamp(320px, 38vw, 540px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mision-section .container { position: relative; z-index: 1; }
.mision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 36px); }

/* Easing lento y fluido propio de esta sección */
.mision-card {
  --flow: .85s cubic-bezier(.16, 1, .3, 1);
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(38px, 4.6vw, 62px);
  overflow: hidden;
  transition: transform var(--flow), box-shadow var(--flow);
}
/* Regla de acento vertical que crece suavemente */
.mision-card::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 0 4px 4px 0;
  transition: height var(--flow);
}
.mision-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.mision-card:hover::before { height: 62%; }

/* Numeral editorial "hollow" (contorno) */
.mision-num {
  position: absolute;
  top: clamp(22px, 3vw, 38px); right: clamp(26px, 3.4vw, 46px);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(76px, 9vw, 124px); font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pale2);
  z-index: 0;
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--flow), color var(--flow), transform var(--flow);
}
.mision-card:hover .mision-num {
  -webkit-text-stroke-color: transparent;
  color: var(--pale);
  transform: translateY(-5px);
}

.mision-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 26px;
}
/* Icono de línea dentro de un anillo fino que se rellena con suavidad */
.mision-ring {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border: 1.5px solid var(--pale2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 21px;
  transition: border-color var(--flow), background var(--flow), transform var(--flow);
}
.mision-card:hover .mision-ring {
  border-color: var(--primary);
  background: var(--pale);
  transform: scale(1.04);
}
.mision-kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted-2);
  transition: color var(--flow);
}
.mision-card:hover .mision-kicker { color: var(--primary); }

.mision-card h3 { position: relative; z-index: 1; font-size: 28px; font-weight: 600; margin-bottom: 14px; }
.mision-card p { position: relative; z-index: 1; font-size: 16px; color: var(--muted); line-height: 1.78; }

/* Controles del carrusel (puntos + flechas): sólo en móvil (ver media query) */
.mision-nav { display: none; }

/* ── 18. Alianzas ─────────────────────────────────── */
.allies-section {
  background: radial-gradient(120% 82% at 50% 20%, #15233f 0%, var(--ink) 62%);
  padding: var(--section-pad) 0;
}
.allies-section .section-title { color: var(--white); }
.allies-section .section-lead  { color: rgba(255, 255, 255, .62); }
.allies-section .eyebrow       { color: var(--accent); }
.allies-section .eyebrow-line  { background: var(--accent); }
.allies-groups { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 52px); }
.allies-group-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 20px;
}
.allies-group-label i { color: var(--primary); }
.allies-group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.allies-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.ally-card {
  position: relative;
  /* estado normal "suave con profundidad": degradado sutil + brillo interior */
  background: linear-gradient(180deg, var(--white), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 34px;
  display: flex; align-items: center; justify-content: center;
  min-width: 172px; min-height: 112px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
/* lavado de marca muy sutil que aparece al pasar el cursor */
.ally-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(37, 99, 235, .07), transparent 62%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.ally-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
  border-color: var(--pale2);
}
.ally-card:hover::after { opacity: 1; }
.ally-card img {
  position: relative; z-index: 1;
  max-height: 62px; max-width: 158px; width: auto;
  object-fit: contain;
  /* color completo, siempre visible */
  transition: transform var(--ease);
}
.ally-card:hover img { transform: scale(1.06); }

/* ── 19. Presencia — globo terráqueo + testimonios en vivo ── */
.presencia-section {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: clamp(56px, 7vw, 96px) 0 clamp(60px, 8vw, 104px);
}

/* Encabezado: FUERA del mapa, centrado y arriba */
.presencia-head { text-align: center; max-width: 720px; margin: 0 auto clamp(18px, 3vw, 34px); }
.presencia-head .eyebrow { justify-content: center; }
.presencia-head .section-title { margin-bottom: 16px; }
.presencia-head .section-lead { margin: 0 auto; max-width: 580px; }

/* Banda del globo: contiene el mapa de fondo y la tarjeta superpuesta */
.globe-stage {
  position: relative;
  width: 100%;
  min-height: clamp(540px, 66vh, 720px);
  overflow: hidden;                     /* recorta la esfera => look de globo */
}

/* Globo de fondo (generado con d3-geo), llena la banda */
.globe-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;                 /* deja pasar el cursor, salvo en los estados */
  -webkit-mask-image: radial-gradient(78% 82% at 50% 42%, #000 56%, transparent 100%);
          mask-image: radial-gradient(78% 82% at 50% 42%, #000 56%, transparent 100%);
}
.globe-svg   { width: 100%; height: 100%; display: block; }
.globe-sphere{ fill: var(--surface); }
.globe-grat  { fill: none; stroke: var(--pale2); stroke-width: .7; opacity: .5; }
.globe-land  { fill: var(--surface-2); stroke: var(--line); stroke-width: .5; opacity: .9; }

/* Estados de México sobre el globo */
.globe-bg .mx-state {
  fill: var(--pale2);
  stroke: var(--white);
  stroke-width: .5;
  pointer-events: auto;
  cursor: pointer;
  transition: fill var(--ease), filter var(--ease);
}
.globe-bg .mx-state.has-presence { fill: var(--accent); }
.globe-bg .mx-state.is-hq        { fill: var(--primary); stroke: var(--primary-dark); stroke-width: .9; }
.globe-bg .mx-state.is-active {
  fill: var(--primary-light);
  stroke: var(--white);
  filter: drop-shadow(0 0 16px rgba(37, 99, 235, .85));
  animation: stateGlow 2.6s ease-in-out infinite;
}
@keyframes stateGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(37, 99, 235, .5)); }
  50%      { filter: drop-shadow(0 0 22px rgba(37, 99, 235, .95)); }
}
.globe-fallback { background: radial-gradient(120% 92% at 50% 30%, var(--surface) 38%, transparent 100%); }

/* ═══ Etiquetas de estado sobre el mapa de México ═══
   Misma secuencia "señal" que las anotaciones del globo de América
   (.ally-anno) pero en clave clara y UNA a la vez: la etiqueta de cada
   estado se despliega cuando el carrusel (o el hover) lo ilumina en azul
   fuerte (clase .is-on desde javascript.js) y se funde al apagarse.
   Secuencia de encendido: punto pop → conector crece → pulso viajero →
   wipe + ascenso suave de la tarjeta. */
.mx-markers { pointer-events: none; }
.mx-marker { opacity: 0; transition: opacity .28s ease; }
.mx-marker.is-on { opacity: 1; }
.mx-dot {
  fill: var(--primary); stroke: var(--white); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  transform: scale(.2);                  /* pop elástico al encender */
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}
.mx-marker.is-on .mx-dot { transform: scale(1); }
.mx-halo {
  fill: var(--primary-light); opacity: .34;
  transform-box: fill-box; transform-origin: center;
  animation: mxPulse 2.9s ease-out infinite;
  animation-play-state: paused;          /* solo pulsa mientras está encendido */
}
.mx-marker.is-on .mx-halo { animation-play-state: running; }
@keyframes mxPulse { 0% { transform: scale(.35); opacity: .5; } 100% { transform: scale(2.5); opacity: 0; } }

/* La banda entera se habilita al terminar el giro de entrada (.is-shown);
   evita que la primera etiqueta aparezca con el mapa aún girando. */
.mx-annos {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.mx-annos.is-shown { opacity: 1; }

.mx-anno {
  position: absolute;
  display: flex;
  align-items: center;
  transform: translateY(-50%);           /* lado derecho: borde izq. anclado al punto */
}
.mx-anno[data-side="left"] {             /* lado izquierdo: borde der. anclado al punto */
  flex-direction: row-reverse;
  transform: translate(-100%, -50%);
}

/* Conector azul: crece desde el marcador al encender, se repliega al apagar */
.mx-anno-line {
  position: relative;
  flex: 0 0 auto;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .3s ease;            /* salida rápida */
}
.mx-anno[data-side="right"] .mx-anno-line { margin-left: 7px; }
.mx-anno[data-side="left"]  .mx-anno-line { margin-right: 7px; background: linear-gradient(270deg, var(--primary), var(--accent)); }
.mx-anno.is-on .mx-anno-line { width: 46px; transition: width .45s cubic-bezier(.22, 1, .36, 1) .14s; }
/* Pulso de "señal" que viaja del marcador hacia la etiqueta al encenderse */
.mx-anno-line::after {
  content: '';
  position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px; margin-top: -3.5px; margin-left: -3.5px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px 2px rgba(37, 99, 235, .8);
  opacity: 0;
}
.mx-anno[data-side="left"] .mx-anno-line::after { left: auto; right: 0; margin-left: 0; margin-right: -3.5px; }
.mx-anno.is-on[data-side="right"] .mx-anno-line::after { animation: mxSignalR .55s ease-out .4s forwards; }
.mx-anno.is-on[data-side="left"]  .mx-anno-line::after { animation: mxSignalL .55s ease-out .4s forwards; }

/* Etiqueta blanca (glass): wipe + leve ascenso al encender, fundido al apagar */
.mx-anno-card {
  position: relative;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(10px) saturate(1.35);
          backdrop-filter: blur(10px) saturate(1.35);
  border: 1px solid var(--pale2);
  border-left: 2px solid var(--primary);
  border-radius: 11px;
  padding: 8px 13px;
  white-space: nowrap;
  box-shadow: 0 16px 34px -18px rgba(37, 99, 235, .7);
  clip-path: inset(0 100% 0 0 round 11px);
  opacity: 0;
  transform: translateY(7px) scale(.97);
  transition: clip-path .3s ease, opacity .25s ease, transform .3s ease;   /* salida */
}
.mx-anno[data-side="left"] .mx-anno-card {
  border-left: 1px solid var(--pale2);
  border-right: 2px solid var(--primary);
  clip-path: inset(0 0 0 100% round 11px);
}
.mx-anno.is-on .mx-anno-card {
  clip-path: inset(0 0 0 0 round 11px);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: clip-path .55s cubic-bezier(.22, 1, .36, 1) .5s,
              opacity .35s ease .5s,
              transform .55s cubic-bezier(.22, 1, .36, 1) .5s;
}
.mx-anno-card strong {
  display: block;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 13.5px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  color: var(--ink);
}
.mx-anno-card span {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary);
  margin-top: 3px;
}

@keyframes mxSignalR {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(42px); }
}
@keyframes mxSignalL {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-42px); }
}
/* Respeta reduce-motion: sin animación, estado final directo */
@media (prefers-reduced-motion: reduce) {
  .mx-marker, .mx-dot, .mx-anno, .mx-anno-line, .mx-anno-card { transition: none !important; }
  .mx-anno-line::after { animation: none !important; }
  .mx-halo { animation: none !important; }
}
/* Mapa estrecho: sin etiquetas ni marcadores para no saturar (igual que .ally-annos) */
@media (max-width: 900px) {
  .mx-annos, .mx-markers { display: none; }
}

/* ═══ Globo de América (sección Alianzas) ═══ */
/* Globo centrado y un poco más grande (ya sin la columna de aliados) */
.ally-stage {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  min-height: clamp(620px, 82vh, 860px);
}
#allyGlobeBg.globe-fallback { background: none; }
#allyGlobeBg { -webkit-mask-image: none; mask-image: none; }   /* planeta completo, sin recorte */
/* Líneas y vértices más marcados sobre el navy */
.amk-sphere { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .32); stroke-width: 1.1; }
.amk-grat   { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: .75; }
.amk-land   { fill: rgba(255, 255, 255, .085); stroke: rgba(255, 255, 255, .24); stroke-width: .8; }
.amk-country {
  fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .34); stroke-width: .8;
}
.amk-country.is-ally {                       /* México / EE.UU. — siempre resaltados con glow */
  fill: rgba(96, 165, 250, .42); stroke: #d6e7ff; stroke-width: 1.2;
  animation: amkGlow 3s ease-in-out infinite;
}
@keyframes amkGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(96, 165, 250, .5)); }
  50%      { filter: drop-shadow(0 0 20px rgba(96, 165, 250, .95)); }
}
.amk-country.is-presence {                   /* Cobertura LATAM (Perú, Colombia, Chile, Ecuador, Costa Rica) — azul suave y estable */
  fill: rgba(96, 165, 250, .24); stroke: #bcd7ff; stroke-width: 1;
  filter: drop-shadow(0 0 7px rgba(96, 165, 250, .45));
}

/* Marcadores de región pulsantes */
.amk-marker { pointer-events: none; }
.amk-dot  { fill: #fff; stroke: var(--primary-dark); stroke-width: 1.5; }
.amk-halo { fill: var(--accent); opacity: .42; transform-box: fill-box; transform-origin: center; animation: amkPulse 2.8s ease-out infinite; }
@keyframes amkPulse { 0% { transform: scale(.4); opacity: .65; } 100% { transform: scale(2.6); opacity: 0; } }

/* ═══ Anotaciones del globo: conector + card negra con despliegue tipo "señal" ═══ */
.ally-annos { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ally-anno {
  position: absolute;
  display: flex;
  align-items: center;
  transform: translateY(-50%);           /* lado derecho: borde izq. anclado al punto */
  opacity: 0;
  --d: 0s;                               /* retardo escalonado por tarjeta */
  transition: opacity .35s ease;
}
.ally-anno[data-side="left"] {            /* lado izquierdo: borde der. anclado al punto */
  flex-direction: row-reverse;
  transform: translate(-100%, -50%);
}
.ally-anno:nth-child(2) { --d: .24s; }
.ally-anno:nth-child(3) { --d: .48s; }

/* Conector negro: arranca en el contorno del marcador (no lo atraviesa) */
.ally-anno-line {
  position: relative;
  flex: 0 0 auto;
  width: 0; height: 2px;
  background: #0b0b0f;
  border-radius: 2px;
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.ally-anno[data-side="right"] .ally-anno-line { margin-left: 7px; }
.ally-anno[data-side="left"]  .ally-anno-line { margin-right: 7px; }
/* Pulso de "señal" que viaja del marcador hacia la card al desplegarse */
.ally-anno-line::after {
  content: '';
  position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px; margin-top: -3.5px; margin-left: -3.5px;
  border-radius: 50%;
  background: #eaf2ff;
  box-shadow: 0 0 10px 2px rgba(96, 165, 250, .9);
  opacity: 0;
}
.ally-anno[data-side="left"] .ally-anno-line::after { left: auto; right: 0; margin-left: 0; margin-right: -3.5px; }

/* Card negra (glass sutil) que se revela con un "wipe" desde el conector */
.ally-anno-card {
  position: relative;
  pointer-events: auto;
  background: rgba(10, 10, 14, .9);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 2px solid var(--accent);
  border-radius: 11px;
  padding: 9px 14px;
  white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85);
  clip-path: inset(0 100% 0 0 round 11px);
  opacity: 0;
  transition: clip-path .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease,
              transform .35s ease, box-shadow .35s ease;
}
.ally-anno[data-side="left"] .ally-anno-card {
  border-left: 1px solid rgba(255, 255, 255, .1);
  border-right: 2px solid var(--accent);
  clip-path: inset(0 0 0 100% round 11px);
}
.ally-anno-card strong {
  display: block;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  color: #fff;
}
.ally-anno-card span {
  display: block;
  font-size: 11.5px; font-weight: 500;
  color: rgba(255, 255, 255, .62);
  margin-top: 1px;
}
@media (hover: hover) {
  .ally-anno-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(96, 165, 250, .45);
  }
}

/* ── Despliegue "señal": línea → pulso viajero → wipe de la card (escalonado) ── */
.ally-annos.is-shown .ally-anno { opacity: 1; transition-delay: var(--d); }
.ally-annos.is-shown .ally-anno-line { width: 50px; transition-delay: calc(var(--d) + .05s); }
.ally-annos.is-shown .ally-anno[data-side="right"] .ally-anno-line::after {
  animation: allySignalR .6s ease-out calc(var(--d) + .45s) forwards;
}
.ally-annos.is-shown .ally-anno[data-side="left"] .ally-anno-line::after {
  animation: allySignalL .6s ease-out calc(var(--d) + .45s) forwards;
}
.ally-annos.is-shown .ally-anno-card {
  clip-path: inset(0 0 0 0 round 11px);
  opacity: 1;
  transition-delay: calc(var(--d) + .74s), calc(var(--d) + .74s), 0s, 0s;
}
@keyframes allySignalR {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(46px); }
}
@keyframes allySignalL {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-46px); }
}
/* Respeta reduce-motion: sin animación, estado final directo */
@media (prefers-reduced-motion: reduce) {
  .ally-anno, .ally-anno-line, .ally-anno-card { transition: none !important; }
  .ally-anno-line::after { animation: none !important; }
}

/* Una sola columna: globo terráqueo centrado (las fichas de aliados se retiraron) */
.ally-layout {
  display: block;
  margin-top: clamp(20px, 3vw, 40px);
}
/* Aliados agrupados por región (México / EE.UU. / Latinoamérica) */
.ally-groups { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.ally-group-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.ally-group-label::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.ally-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 15px);
}
/* Ficha del logo: fondo blanco (color original), tamaño fijo → el logo nunca se desborda */
.ally-chip {
  display: block;
  height: clamp(72px, 6.4vw, 94px);
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .7);
  transition: transform var(--ease), box-shadow var(--ease);
}
.ally-chip:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -18px rgba(0, 0, 0, .8); }
.ally-chip img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) {
  .ally-layout { grid-template-columns: 1fr; gap: clamp(22px, 4vw, 36px); }
  .ally-stage { min-height: clamp(380px, 50vh, 520px); }
  .ally-annos { display: none; }        /* globo pequeño en móvil → sin cards para no saturar */
}

/* Tarjeta de testimonios "en vivo": tamaño FIJO + absoluta (no reflowea el layout) */
.testi-card {
  position: absolute;
  /* alineada al borde izquierdo del contenido (.container: max 1240px + gutter) */
  left: calc(max(0px, (100vw - 1240px) / 2) + var(--gutter));
  bottom: clamp(18px, 4%, 40px);        /* más abajo: descubre el mapa */
  z-index: 3;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  height: clamp(250px, 31vh, 272px);    /* FIJO: evita el "baile" al cambiar el texto */
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 2vw, 26px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.testi-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.testi-state {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary-dark);
  background: var(--pale); border: 1px solid var(--pale2);
  padding: 5px 12px; border-radius: 999px;
  transition: color var(--ease), background var(--ease);
}

.testi-quote {
  flex: 1; min-height: 0;
  margin: 0;
  overflow: hidden;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.45; font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
.testi-quote::before { content: '\201C'; color: var(--primary); font-weight: 600; }
.testi-quote::after  { content: '\201D'; color: var(--primary); font-weight: 600; }
.testi-quote.is-typing::after { content: ''; }   /* la comilla de cierre aparece al terminar de "escribir" */
.testi-caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  vertical-align: -0.18em;
  margin-left: 3px;
  background: var(--primary);
  opacity: 0;                                      /* solo visible mientras escribe */
}
.testi-caret.is-typing { opacity: 1; animation: caretBlink 1.05s steps(1) infinite; }
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.testi-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.testi-kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 3px;
}
.testi-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.testi-meta strong { font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testi-meta span { font-size: 12.5px; color: var(--muted); }
.testi-dots { display: flex; gap: 6px; flex-shrink: 0; }
.testi-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--pale2); transition: width var(--ease), background var(--ease); }
.testi-dot.is-on { width: 20px; background: var(--primary); }

/* Detalle: oficinas + estados (sincronizados con el globo) */
.presencia-detail {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.office-cards { display: flex; flex-direction: column; gap: 16px; }
.office-card {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  cursor: default;
  transition: transform var(--ease), box-shadow var(--ease);
}
.office-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.office-icon {
  width: 48px; height: 48px;
  background: var(--pale); color: var(--primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
/* Sede secundaria: mismo azul claro que los estados con presencia (sin el azul fuerte) */
.office-card--presence { background: rgba(239, 246, 255, .9); border-color: var(--pale2); }
.office-card--presence .office-icon { background: #fff; color: var(--accent); }
.office-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.office-card p { font-size: 14px; color: var(--muted); line-height: 1.6; font-family: 'Manrope', sans-serif; }

.presence-states { width: 100%; }
.presence-states h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.presence-states h4 i { color: var(--primary); }
.states-count {
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--pale); border: 1px solid var(--pale2);
  padding: 2px 9px; border-radius: 100px; margin-left: auto;
}
.states-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.state-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  border-radius: 11px;
  font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); text-align: left; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.state-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; transition: transform var(--ease), box-shadow var(--ease); }
.state-chip:hover, .state-chip.is-active {
  background: var(--pale); border-color: var(--pale2); color: var(--primary-dark); transform: translateX(3px);
}
.state-chip.is-active { box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .55); }
.state-chip:hover .chip-dot, .state-chip.is-active .chip-dot { transform: scale(1.55); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }

/* CTA de cobertura */
.coverage-cta {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  text-align: center;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 46px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.coverage-cta p {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.55;
}
.coverage-cta p i { color: var(--primary); margin-right: 6px; }

/* Tooltip del globo */
.map-tooltip {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--ink); color: #fff;
  padding: 6px 13px; border-radius: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
  z-index: 20; box-shadow: var(--shadow);
}
.map-tooltip.show { opacity: 1; }
.map-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}

/* ── 20. Clientes / banda tipo ticker ─────────────── */
#clientes {
  background: var(--white);
  padding: clamp(64px, 8vw, 100px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}
#clientes .text-center { margin-bottom: 0; }
#clientes .section-title { font-size: clamp(26px, 3.4vw, 40px); }
.section-lead--center { margin: 14px auto 0; max-width: 580px; text-align: center; }

/* banda oscura full-bleed: misma esencia editorial que el ticker del hero.
   Fondo NEGRO PURO a propósito: al invertir el logo su fondo blanco se vuelve
   negro puro y se funde con la banda (knockout limpio sin mix-blend-mode, que
   se rompería por el transform del carrusel). */
.clients-ticker {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  background: #000;
  border-block: 1px solid rgba(255, 255, 255, .07);
  /* Scroll horizontal programático (lo mueve el JS con scrollLeft). En móvil
     'overflow:hidden' hacía que iOS Safari / Chrome ignoraran scrollLeft (lo
     clampan a 0) y la banda quedaba estática; 'overflow-x:auto' lo hace
     scrolleable de verdad en todos los navegadores. La barra se oculta para
     que se vea idéntico. */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  padding: clamp(30px, 3.6vw, 48px) 0;
}
.clients-ticker::-webkit-scrollbar { display: none; }  /* WebKit */
.clients-track {
  display: flex;
  width: max-content;
  /* Sin will-change: en móviles de alto dpr forzaba UNA capa GPU de
     (ancho de pista × dpr) que superaba el límite de textura (~16384px);
     el compositor la teselaba y los logos salían cortados / "desaparecían".
     La animación de transform ya se compone sola sin necesidad del hint. */
  animation: clientsScroll 150s linear infinite;
}
/* El desplazamiento real lo controla JS (scrollLeft, ver javascript.js): evita
   el blanqueo de logos por el límite de textura GPU y el desfase del hover que
   provoca una animación de transform compositada. Flujo continuo: NO se pausa al
   pasar el cursor. Esta animación CSS queda solo como fallback para páginas que
   reutilizan el ticker sin ese JS (ej. cotización). */
@keyframes clientsScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.clients-group { display: inline-flex; align-items: center; }

/* separador asterisco de acento, igual que el ticker */
.clients-ticker .brand-dot {
  flex-shrink: 0;
  font-size: 9px;
  color: var(--accent);
  opacity: .8;
}

/* logo monocromo blanco: grayscale neutraliza el color, invert vuelve las
   marcas claras y el fondo blanco -> negro (invisible en la banda), brightness
   las empuja a blanco. */
.client-logo {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 clamp(24px, 2.6vw, 44px);
  padding: 12px 18px;
  border-radius: 14px;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.client-logo img {
  height: clamp(52px, 5.6vw, 82px);
  width: auto; max-width: 260px;
  object-fit: contain;
  /* valores afinados con render de los 26 logos: las marcas quedan blancas y
     el alto contraste aplasta los paneles casi-blancos para que no dejen recuadro */
  filter: grayscale(1) invert(1) brightness(1.65) contrast(1.45);
  opacity: .88;
  transition: filter var(--ease), opacity var(--ease);
}
/* hover: loseta blanca + logo a su color real */
.client-logo:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55);
}
.client-logo:hover img {
  filter: none;
  opacity: 1;
}

/* Móvil: logos más compactos. Doble objetivo:
   1) La banda se ve más densa (más logos a la vez, menos huecos).
   2) La pista total se acorta (~7400px → ~4500px), de modo que la capa
      animada (ancho × dpr) queda por debajo del límite de textura GPU
      incluso a dpr 3 → los logos dejan de cortarse / desaparecer. */
@media (max-width: 700px) {
  .clients-ticker { padding: 24px 0; }
  .client-logo { margin: 0 12px; padding: 6px 8px; }
  .client-logo img { height: 42px; max-width: 140px; }
  .clients-ticker .brand-dot { font-size: 8px; }
  .clients-track { animation-duration: 48s; }
}

/* ── 20b. Lema — "Los mejores solo trabajan con los mejores" ──
   Banda navy full-bleed entre el ticker de clientes y el CTA.
   Todo con prefijo .motto- y SIN data-reveal para no interferir con GSAP.
   Apertura tipo "pulso de ultrasonido" (una sola vez, clase .is-open desde
   initMotto()): un destello nace en el corazón de la frase (50% 42%),
   dos ondas suaves viajan hacia afuera y el BLOOM (máscara radial sobre
   .motto-decor, que carga el fondo navy) revela la banda tras ellas;
   las palabras cristalizan del centro hacia los bordes (blur → nítido,
   retardo por distancia radial) y el kicker se decodifica → esquineras
   de visor fijan "los mejores." → subrayado desde el centro.
   Automáticas: eco de onda periódico, resplandores que derivan, retícula
   que fluye, gradiente vivo y destello en el subrayado.
   Hover (desktop): foco que sigue al cursor + esquineras tenues + glow. */
.motto-section { background: var(--white); padding: 0 0 var(--section-pad); }
.motto-band {
  --mx: 50%;                             /* foco del cursor (lo mueve initMotto) */
  --my: 50%;
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 9vw, 130px) 0;
  text-align: center;
  isolation: isolate;                    /* z-index locales, sin fugas */
  /* El fondo navy vive en .motto-decor (la capa enmascarada del bloom);
     la banda en sí es transparente para que el pulso y las ondas —hijos
     directos, sin máscara— sean visibles desde el primer frame. */
}
/* Filos superior/inferior: aparecen cuando el bloom ya cubrió la banda */
.motto-band::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(96, 165, 250, .55) 28%, rgba(96, 165, 250, .55) 72%, transparent) top    / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(96, 165, 250, .30) 28%, rgba(96, 165, 250, .30) 72%, transparent) bottom / 100% 1px no-repeat;
  opacity: 0;
  transition: opacity .8s ease .9s;
}
.motto-band.is-open::before { opacity: 1; }

/* ── Pulso de ultrasonido: origen de la apertura ──
   Un destello nace en el corazón de la frase (50% 42%), dos ondas suaves
   viajan hacia afuera y el bloom (máscara de .motto-decor) revela la banda
   tras ellas. La onda "idle" repite un eco muy tenue cada ~9 s.
   Pulso y ondas son hijos directos de la banda (SIN máscara) para ser
   visibles desde el primer frame, cuando la banda aún no existe. */
.motto-pulse {
  position: absolute; left: 50%; top: 42%; z-index: 5;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, rgba(147, 197, 253, .9) 38%, rgba(37, 99, 235, .28) 68%, transparent 74%);
  opacity: 0; transform: scale(0);
  pointer-events: none;
}
.motto-band.is-open .motto-pulse { animation: mottoPulse 1.25s cubic-bezier(.3, .7, .25, 1) forwards; }
@keyframes mottoPulse {
  0%   { opacity: 0; transform: scale(0); }
  10%  { opacity: 1; transform: scale(1); }
  45%  { opacity: .42; }
  100% { opacity: 0; transform: scale(19); }
}
/* Ondas: anillos de gradiente (el grosor escala con la onda → ola de luz
   ancha y suave, no un aro fino) */
.motto-ring {
  position: absolute; left: 50%; top: 42%; z-index: 5;
  width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 56%, rgba(147, 197, 253, .5) 64%, rgba(96, 165, 250, .25) 69%, transparent 75%);
  opacity: 0; transform: scale(0);
  pointer-events: none;
}
.motto-band.is-open .motto-ring--a { animation: mottoRing 1.4s cubic-bezier(.25, .65, .3, 1) .08s forwards; }
.motto-band.is-open .motto-ring--b { animation: mottoRing 1.5s cubic-bezier(.25, .65, .3, 1) .3s forwards; }
@keyframes mottoRing {
  0%   { opacity: 0; transform: scale(0); }
  8%   { opacity: .9; }
  100% { opacity: 0; transform: scale(16); }
}
/* Eco periódico en reposo, muy tenue */
.motto-band.is-open .motto-ring--idle { animation: mottoRingIdle 9s cubic-bezier(.25, .65, .3, 1) 4.5s infinite; }
@keyframes mottoRingIdle {
  0%   { opacity: 0;   transform: scale(0); }
  2%   { opacity: .28; }
  17%  { opacity: 0;   transform: scale(15); }
  100% { opacity: 0;   transform: scale(15); }
}

/* ── Capa de fondo + decorativas: es la que se revela con el BLOOM ──
   Lleva el navy y todas las capas sutiles; la máscara radial crece desde
   el mismo origen del pulso (50% 42%) hasta cubrir la banda entera.
   mask-size es animable → el bloom es una transición CSS pura; si algún
   navegador no la soporta, el cambio es instantáneo (sin romper nada). */
.motto-decor {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% 118%, rgba(37, 99, 235, .30), transparent 64%),
    radial-gradient(760px 380px at 16% -30%, rgba(59, 130, 246, .22), transparent 60%),
    linear-gradient(150deg, #0B1322 0%, var(--ink) 55%, #101E3A 100%);
  -webkit-mask-image: radial-gradient(circle, #000 56%, transparent 74%);
          mask-image: radial-gradient(circle, #000 56%, transparent 74%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 50% 42%; mask-position: 50% 42%;
  -webkit-mask-size: 0% 0%; mask-size: 0% 0%;
  transition: -webkit-mask-size 1.55s cubic-bezier(.33, .6, .22, 1) .12s;
  transition: mask-size 1.55s cubic-bezier(.33, .6, .22, 1) .12s,
              -webkit-mask-size 1.55s cubic-bezier(.33, .6, .22, 1) .12s;
}
.motto-band.is-open .motto-decor { -webkit-mask-size: 420% 420%; mask-size: 420% 420%; }
.motto-grid {                            /* retícula técnica que fluye en diagonal */
  position: absolute; inset: -60px;
  background:
    repeating-linear-gradient(90deg, rgba(96, 165, 250, .05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg,  rgba(96, 165, 250, .05) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(78% 90% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(78% 90% at 50% 50%, #000 30%, transparent 100%);
  animation: mottoGrid 34s linear infinite;
}
@keyframes mottoGrid { to { transform: translate(56px, 56px); } }
.motto-blob {                            /* resplandores azules que derivan */
  position: absolute;
  width: clamp(300px, 40vw, 560px); height: clamp(300px, 40vw, 560px);
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.motto-blob--a {
  left: -8%; top: -42%;
  background: radial-gradient(circle, rgba(37, 99, 235, .38), transparent 66%);
  animation: mottoDriftA 17s ease-in-out infinite alternate;
}
.motto-blob--b {
  right: -10%; bottom: -48%;
  background: radial-gradient(circle, rgba(96, 165, 250, .32), transparent 66%);
  animation: mottoDriftB 21s ease-in-out infinite alternate;
}
@keyframes mottoDriftA { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 36px) scale(1.14); } }
@keyframes mottoDriftB { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-64px, -30px) scale(.94); } }
.motto-spot {                            /* foco que sigue al cursor (hover) */
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(96, 165, 250, .17), transparent 70%);
  opacity: 0;
  transition: opacity .5s ease;
}
@media (hover: hover) { .motto-band:hover .motto-spot { opacity: 1; } }

/* ── Contenido ── */
.motto-inner {
  position: relative; z-index: 2;
  transform: scale(1.045);               /* leve asentamiento de profundidad: */
  transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) .1s;   /* la onda lo "empuja" a sitio */
}
.motto-band.is-open .motto-inner { transform: scale(1); }
.motto-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent);
  padding: 8px 20px;
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: 100px;
  background: rgba(37, 99, 235, .10);
  margin-bottom: clamp(20px, 3vw, 30px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease .72s, transform .6s cubic-bezier(.22, 1, .36, 1) .72s,
              box-shadow var(--ease), border-color var(--ease);
}
.motto-band.is-open .motto-kicker { opacity: 1; transform: translateY(0); }
@media (hover: hover) {
  .motto-band:hover .motto-kicker { border-color: rgba(96, 165, 250, .7); box-shadow: 0 0 24px -6px rgba(96, 165, 250, .55); }
}

.motto-title {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(30px, 5.2vw, 62px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.12;
  color: var(--white);
  max-width: 900px;
  margin-inline: auto;
  position: relative;
}
/* Cristalización por palabra: la onda las "enfoca" a su paso, del CENTRO
   hacia afuera — desenfocadas y levemente desplazadas → nítidas en su
   sitio. Los retardos siguen la distancia radial al origen del pulso.
   (Sin máscaras: los descendentes de "mejores"/"trabajan" nunca se recortan.) */
.motto-w { display: inline-block; }
.motto-w > span {
  display: inline-block;
  position: relative;                    /* ancla de las esquinas de "los mejores." */
  opacity: 0;
  transform: translateY(.30em) scale(.985);
  filter: blur(7px);
  transition: opacity .55s ease,
              transform .7s cubic-bezier(.22, 1, .36, 1),
              filter .6s ease;
}
.motto-band.is-open .motto-w > span { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.motto-band.is-open .motto-w:nth-child(1) > span { transition-delay: .84s; }   /* Los       (borde izq.)  */
.motto-band.is-open .motto-w:nth-child(2) > span { transition-delay: .68s; }   /* mejores                 */
.motto-band.is-open .motto-w:nth-child(3) > span { transition-delay: .52s; }   /* solo      (centro L1)   */
.motto-band.is-open .motto-w:nth-child(4) > span { transition-delay: .56s; }   /* trabajan  (centro L1)   */
.motto-band.is-open .motto-w:nth-child(5) > span { transition-delay: .70s; }   /* con                     */
.motto-band.is-open .motto-w:nth-child(6) > span { transition-delay: .60s; }   /* los mejores. (centro L2) */

/* "los mejores." — gradiente azul vivo + "target lock" + subrayado */
.motto-w--hi > span {
  background: linear-gradient(92deg, var(--accent), #93C5FD 35%, var(--primary-light) 70%, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: mottoHue 7s ease-in-out infinite alternate;   /* gradiente vivo */
}
@keyframes mottoHue { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* Esquineras tipo visor (4 "L" dibujadas con gradientes): al terminar el
   escaneo se ciñen sobre "los mejores." como un enfoque de objetivo y se
   disuelven; en hover reaparecen tenues. */
.motto-w--hi > span::before {
  --bk: .24em;                           /* largo de cada esquinera */
  --bw: 2px;                             /* grosor */
  content: '';
  position: absolute; inset: -.16em -.12em -.04em;
  background:
    linear-gradient(var(--accent), var(--accent)) left  0 top    0 / var(--bk) var(--bw),
    linear-gradient(var(--accent), var(--accent)) left  0 top    0 / var(--bw) var(--bk),
    linear-gradient(var(--accent), var(--accent)) right 0 top    0 / var(--bk) var(--bw),
    linear-gradient(var(--accent), var(--accent)) right 0 top    0 / var(--bw) var(--bk),
    linear-gradient(var(--accent), var(--accent)) left  0 bottom 0 / var(--bk) var(--bw),
    linear-gradient(var(--accent), var(--accent)) left  0 bottom 0 / var(--bw) var(--bk),
    linear-gradient(var(--accent), var(--accent)) right 0 bottom 0 / var(--bk) var(--bw),
    linear-gradient(var(--accent), var(--accent)) right 0 bottom 0 / var(--bw) var(--bk);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, .75));
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.motto-band.is-open .motto-w--hi > span::before {
  animation: mottoLock 1.35s cubic-bezier(.22, 1, .36, 1) 1.35s;
}
@keyframes mottoLock {
  0%   { opacity: 0; transform: scale(1.35); }
  30%  { opacity: 1; transform: scale(1); }
  62%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
@media (hover: hover) {
  .motto-band:hover .motto-w--hi > span::before { opacity: .5; }
}

.motto-w--hi > span::after {             /* subrayado: se dibuja desde el centro al
                                            fijarse el objetivo; luego un destello
                                            lo recorre cada ~6.5 s */
  content: '';
  position: absolute; left: .02em; right: .12em; bottom: .02em;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--primary) 0 34%, var(--accent) 44%, #EAF2FF 50%, var(--accent) 56%, var(--primary) 66% 100%);
  background-size: 300% 100%;
  background-position: 130% 0;
  box-shadow: 0 0 16px rgba(96, 165, 250, .8);
  transform: scaleX(0); transform-origin: center center;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1) 1.7s, box-shadow var(--ease);
}
.motto-band.is-open .motto-w--hi > span::after {
  transform: scaleX(1);
  animation: mottoGlint 6.5s ease-in-out 2.7s infinite;   /* destello viajero */
}
@keyframes mottoGlint {
  0%   { background-position: 130% 0; }
  22%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}
@media (hover: hover) {
  .motto-band:hover .motto-w--hi > span::after { box-shadow: 0 0 28px rgba(96, 165, 250, 1); transition-delay: 0s; }
}

.motto-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted-2);
  max-width: 520px;
  margin: clamp(18px, 2.6vw, 26px) auto 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease .95s, transform .7s cubic-bezier(.22, 1, .36, 1) .95s;
}
.motto-band.is-open .motto-sub { opacity: 1; transform: translateY(0); }

/* Responsiva: banda más compacta, mismas animaciones */
@media (max-width: 640px) {
  .motto-band { padding: 56px 0; }
  .motto-title { line-height: 1.18; }
  .motto-blob { filter: blur(52px); }
  .motto-sub { max-width: 320px; }
}
/* Reduce-motion: estado final directo, sin animaciones */
@media (prefers-reduced-motion: reduce) {
  .motto-decor { -webkit-mask-image: none !important; mask-image: none !important; transition: none; }
  .motto-band::before { opacity: 1; transition: none; }
  .motto-inner { transform: none !important; transition: none; }
  .motto-kicker, .motto-w > span, .motto-sub { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .motto-w--hi > span::after { transform: scaleX(1); transition: none; animation: none !important; }
  .motto-w--hi > span::before { animation: none !important; opacity: 0 !important; }
  .motto-pulse, .motto-ring { animation: none !important; opacity: 0 !important; }
  .motto-grid, .motto-blob, .motto-w--hi > span { animation: none !important; }
}

/* ── 21. CTA ──────────────────────────────────────── */
.cta-section { background: var(--white); padding: 0 0 var(--section-pad); }
.cta-box {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(125deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-2xl);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.06); border-radius: 50%;
  top: -160px; right: -110px;
}
.cta-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: rgba(255,255,255,.85);
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  margin-bottom: 22px;
  position: relative;
}
.cta-box h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  max-width: 760px; margin-inline: auto;
}
.cta-box p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  position: relative;
  max-width: 560px; margin-inline: auto;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; position: relative; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 34px;
  background: #25D366; color: var(--white);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700;
  transition: all var(--ease);
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.6);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-3px); }

/* ── 22. Footer ───────────────────────────────────── */
footer { background: var(--ink); padding: clamp(64px, 8vw, 88px) 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.4fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img { height: 46px; margin-bottom: 20px; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 300px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: 16px;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 22px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 14.5px; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 9px;
  transition: color var(--ease), gap var(--ease);
}
.footer-links a i { font-size: 9px; color: var(--accent); }
.footer-links a:hover { color: var(--white); gap: 13px; }
.footer-contact-items { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; width: 16px; }
.footer-contact-item a { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.5; transition: color var(--ease); }
.footer-contact-item a:hover { color: var(--white); }
.footer-offices { display: flex; flex-direction: column; gap: 16px; }
.footer-office h5 { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 5px; }
.footer-office p { font-size: 12.5px; color: rgba(255,255,255,.42); line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.38); }
.footer-bottom a { color: var(--accent); font-weight: 600; }
.privacy-link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0;
  transition: color var(--ease);
}
.privacy-link i { font-size: 12px; }
.privacy-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ── 23. Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .section-head .section-lead { max-width: 600px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { gap: clamp(12px, 2vw, 22px); }
  .lb-card { grid-template-columns: 1fr; }
  .lb-img-wrap { max-height: 46vh; }
}

/* El header pasa a hamburguesa antes de que el nav completo + acciones dejen de
   caber en una línea (~1100px). Así se evita que el número de teléfono se parta
   en varias líneas o desborde la pill en anchos intermedios (tablet / laptop). */
@media (max-width: 1120px) {
  .header-nav { display: none; }
  .nav-login { display: none; }
  .btn-header span { display: none; }
  .btn-header { padding: 11px; }
  .menu-toggle { display: flex; }
  /* Sin nav visible, las acciones recuperan el margen y vuelven a la esquina derecha */
  .header-nav + .header-actions { margin-left: auto; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); padding-bottom: 76px; background-position: center; }
  /* En móvil el texto ocupa todo el ancho: velo vertical uniforme */
  .hero::after {
    background: linear-gradient(180deg,
      rgba(9,15,28,.82) 0%,
      rgba(9,15,28,.6) 44%,
      rgba(9,15,28,.82) 100%);
  }
  .hero-float { display: none; }
  .hero-scroll { display: none; }
  .hero-meta-item:not(:last-child)::after { display: none; }

  .about-inner { grid-template-columns: 1fr; gap: 56px; }
  .about-badge { right: 16px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--tall .feature-media { min-height: clamp(340px, 60vw, 460px); }
  .feature-col { grid-template-rows: auto auto; }
  .feature-col .feature-media { min-height: clamp(220px, 50vw, 320px); }

  /* Misión/Visión: carrusel horizontal (swipe manual + auto) en móvil */
  .mision-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox: sin barra */
    -ms-overflow-style: none;       /* Edge/IE: sin barra */
  }
  .mision-grid::-webkit-scrollbar { display: none; }  /* WebKit: sin barra */
  .mision-card {
    flex: 0 0 100%;                 /* una sola card, al ancho del sitio */
    scroll-snap-align: start;
  }
  /* Controles (puntos + flechas) arriba a la derecha del carrusel */
  .mision-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 16px;
  }
  .mision-dots { display: flex; align-items: center; gap: 8px; }
  .mision-dot {
    width: 8px; height: 8px;
    padding: 0; border: 0;
    border-radius: 50%;
    background: var(--pale2);
    cursor: pointer;
    transition: width var(--ease), background var(--ease), border-radius var(--ease);
  }
  .mision-dot.is-active {
    width: 22px;
    border-radius: 5px;
    background: var(--primary);
  }
  /* Flechas de desplazamiento junto al indicador */
  .mision-arrows { display: flex; align-items: center; gap: 8px; }
  .mision-arrow {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--pale2);
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease-fast);
  }
  .mision-arrow:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
  .mision-arrow:active { transform: scale(.94); }
  .presencia-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .services-list { grid-template-columns: 1fr; }
}

/* Presencia (móvil): mapa con más protagonismo y tarjeta de testimonios compacta */
@media (max-width: 640px) {
  .globe-bg {
    -webkit-mask-image: radial-gradient(98% 72% at 50% 40%, #000 60%, transparent 100%);
            mask-image: radial-gradient(98% 72% at 50% 40%, #000 60%, transparent 100%);
  }
  .testi-card {
    width: min(400px, calc(100vw - 2 * var(--gutter)));
    height: clamp(180px, 27vh, 204px);   /* FIJO pero más bajo: descubre el mapa */
    bottom: 16px;
    padding: 15px 17px;
    background: rgba(255, 255, 255, .82);
  }
  .testi-quote { font-size: 15px; line-height: 1.4; }
  .testi-top { margin-bottom: 10px; }
  .testi-bottom { margin-top: 10px; padding-top: 10px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { flex-wrap: wrap; gap: 28px 12px; }
  .stats-grid .stat-item { flex: 1 1 40%; }
  .stats-grid .stat-divider { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-meta { gap: 22px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-whatsapp,
  .cta-actions .btn { justify-content: center; }
  .emergency-band { text-align: center; justify-content: center; }
  .emergency-actions { width: 100%; flex-direction: column; }
  .btn-emergency { justify-content: center; }
  .allies-grid { justify-content: center; }
  .states-grid { grid-template-columns: 1fr; }
  .fab-wa { bottom: 20px; right: 20px; }
  .whatsapp-float { width: 54px; height: 54px; font-size: 25px; }
  .fab-bubble { max-width: min(220px, 42vw); font-size: 13px; padding: 12px 14px; }
}

/* ── 23b. Mobile UX — carruseles táctiles y pulido ── */
.only-mobile { display: none; }

@media (max-width: 700px) {
  .only-mobile  { display: inline; }
  .only-desktop { display: none; }

  /* Galería completa → carrusel deslizable con peek */
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--pale2) transparent;
  }
  .gallery-grid > .photo-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
  }

  /* Filtros → tira deslizable; sin botón "ver más" (no hay colapso en móvil) */
  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filter { flex: 0 0 auto; }
  .gallery-more-wrap { display: none; }

  /* Destacados → carrusel deslizable */
  .feature-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--pale2) transparent;
  }
  .feature-col { display: contents; }
  .feature-grid > .feature-card,
  .feature-col  > .feature-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .feature-card--tall .feature-media,
  .feature-col .feature-media { min-height: 300px; }

  .gallery-grid::-webkit-scrollbar,
  .feature-grid::-webkit-scrollbar { height: 4px; }
  .gallery-grid::-webkit-scrollbar-thumb,
  .feature-grid::-webkit-scrollbar-thumb { background: var(--pale2); border-radius: 4px; }

  /* Sin hover en táctil → overlay siempre visible */
  .photo-card .photo-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(14,23,38,.8) 0%, rgba(14,23,38,0) 58%);
  }
  .photo-overlay-icon { transform: scale(1); opacity: .9; }
  .gallery-note .only-mobile { color: var(--primary); font-weight: 700; }
}

@media (max-width: 560px) {
  :root { --section-pad: 66px; }
  .hero-title { font-size: clamp(33px, 8.4vw, 46px); }

  /* Estados como pills que fluyen */
  .states-grid { display: flex; flex-wrap: wrap; gap: 8px; }
  .state-chip { flex: 0 0 auto; font-size: 13px; padding: 9px 12px; }

  .lb-btn { font-size: 13px; padding: 12px; }
}

/* ── Skip-link de accesibilidad (oculto hasta recibir foco por teclado) ── */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform var(--ease-fast);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* La sección activa en la nav (scroll-spy) usa el mismo "pill" que el hover (ver sección 7) */

/* ── 24. Reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .clients-track, .ticker-track { animation: none !important; }
  .fab-bubble { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   25. Página de Cotización — cotizacion.html
   ───────────────────────────────────────────────────────────────────
   Reutiliza el sistema del index (tokens, .header, .mobile-nav, footer,
   .btn, .container, .eyebrow, .whatsapp-float, .scroll-progress,
   .clients-ticker). Estructura de conversión:
     · .q-hero        → hero a 2 columnas: copy + stats (izq) · formulario (der)
     · .q-form-card   → tarjeta del formulario elevada sobre el hero oscuro
     · .q-how         → banda "¿Cómo funciona?" (3 pasos + contacto + promesa)
     · .q-clients     → prueba social (tira de logos, reusa .clients-ticker)
   Prefijos: .q-  (bloque)   ·   .q-…  dentro del formulario
   ═══════════════════════════════════════════════════════════════════ */

/* Fondo de página claro para que las tarjetas "floten" bien */
body.q-page { background: var(--surface); }

/* ── 25.1 · Hero a dos columnas ───────────────────────────────────── */
.q-hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: radial-gradient(120% 150% at 82% -10%, #1B2A45 0%, var(--ink) 58%);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 76px)) 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
}
/* Halo azul decorativo detrás del contenido */
.q-hero::before {
  content: '';
  position: absolute; z-index: 0;
  top: -28%; right: -6%;
  width: clamp(320px, 42vw, 600px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37, 99, 235, .30), transparent 68%);
  pointer-events: none;
}
.q-hero .container { position: relative; z-index: 1; }

.q-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* copy | formulario */
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* Columna de copy */
.q-hero-copy { max-width: 560px; padding-top: clamp(6px, 1.6vw, 26px); }
.q-hero .eyebrow { color: var(--accent); margin-bottom: 18px; }
.q-hero .eyebrow-line { background: var(--accent); }
.q-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600; line-height: 1.05;
  margin-bottom: 18px;
}
.q-hero h1 em { font-style: normal; color: var(--accent); }
.q-hero-lead {
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: rgba(233, 240, 252, .78);
  line-height: 1.7; max-width: 520px;
  margin-bottom: 28px;
}

/* Stats en línea sobre el hero */
.q-hero-stats {
  display: flex; align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 20px 0; margin-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.q-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.q-stat strong {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: #fff; line-height: 1;
}
.q-stat span {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: rgba(214, 224, 242, .66); line-height: 1.35;
}
.q-stat-div { flex: 0 0 1px; width: 1px; align-self: stretch; background: rgba(255, 255, 255, .14); }

/* Señales de confianza */
.q-trust { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.q-trust span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 8px 15px; border-radius: 100px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.q-trust i { color: var(--accent); font-size: 12.5px; }

/* Nota de refuerzo (rellena y equilibra la columna de copy en escritorio) */
.q-hero-note {
  display: flex; align-items: flex-start; gap: 13px;
  margin-top: 26px; max-width: 470px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.q-hero-note i { color: var(--accent); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.q-hero-note p { font-size: 13.5px; color: rgba(233, 240, 252, .72); line-height: 1.55; }
.q-hero-note strong { color: #fff; font-weight: 700; }

/* ── 25.2 · Tarjeta del formulario (elevada sobre el hero) ─────────── */
.q-form-card {
  min-width: 0;   /* permite encoger dentro del grid */
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 2.8vw, 42px) clamp(22px, 2.6vw, 40px);
  box-shadow: var(--shadow-lg);
}
.q-form-head { margin-bottom: 24px; }
.q-form-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin-bottom: 7px; }
.q-form-head p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Secciones numeradas del formulario */
.q-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-legend {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 28px 0 18px;
}
.q-fieldset:first-of-type .q-legend { margin-top: 0; }
.q-legend-num {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 700; font-size: 12.5px;
}
.q-legend-text {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); white-space: nowrap;
}
.q-legend::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Campos */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.q-grid .q-field { margin-bottom: 0; }
.q-field--full { grid-column: 1 / -1; }
.q-field > label { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.q-req { color: var(--primary); }

.q-input, .q-select, .q-textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: 'Manrope', sans-serif; font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
}
.q-input::placeholder, .q-textarea::placeholder { color: var(--muted-2); }
.q-input:hover, .q-select:hover, .q-textarea:hover { border-color: var(--muted-2); }
.q-input:focus, .q-select:focus, .q-textarea:focus {
  outline: none; border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.q-textarea { min-height: 118px; resize: vertical; line-height: 1.6; }

/* Select con flecha propia (chevron SVG en color --muted) */
.q-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 15px;
}
.q-select:required:invalid { color: var(--muted-2); }
.q-select option { color: var(--ink); }

/* Consentimiento (Aviso de Privacidad) */
.q-consent {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 6px 0 2px; padding: 15px 17px;
  background: var(--pale); border: 1px solid var(--pale2); border-radius: var(--radius);
}
.q-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--muted-2); border-radius: 6px;
  background: var(--white); cursor: pointer;
  display: grid; place-content: center;
  transition: background var(--ease-fast), border-color var(--ease-fast);
}
.q-consent input[type="checkbox"]::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 11px; color: #fff; transform: scale(0); transition: transform var(--ease-fast);
}
.q-consent input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.q-consent input[type="checkbox"]:checked::before { transform: scale(1); }
.q-consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.q-consent label { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; cursor: pointer; }
.q-consent a { color: var(--primary); font-weight: 700; border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.q-consent a:hover { border-color: var(--primary); }

/* Acciones + notas */
.q-actions { margin-top: 22px; }
.q-submit { width: 100%; justify-content: center; padding: 16px 30px; font-size: 16px; }
.q-submit[disabled] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: var(--shadow-blue); }
.q-note { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 12.5px; color: var(--muted); }
.q-note i { color: var(--green); }

/* Mensaje de respuesta del envío (AJAX) */
.q-response { margin-top: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.q-response:empty { display: none; }
.q-response.is-success { color: var(--green); }
.q-response.is-error { color: #DC2626; }

/* Campo trampa anti-spam (honeypot) */
.q-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ── 25.3 · Banda "¿Cómo funciona?" (proceso + contacto + promesa) ── */
.q-how { background: var(--surface); padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }
.q-how-head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 4vw, 50px); }
.q-how-head .eyebrow { justify-content: center; }
.q-how-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; margin-bottom: 12px; }
.q-how-head p { font-size: clamp(15px, 1.4vw, 17px); color: var(--muted); }

.q-steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.q-step {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 2.8vw, 34px) clamp(24px, 2.6vw, 30px);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.q-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--pale2); }
/* Número fantasma grande de fondo */
.q-step::after {
  content: attr(data-step);
  position: absolute; top: -18px; right: 6px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 116px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--pale2);
  z-index: 0; pointer-events: none;
  transition: -webkit-text-stroke-color var(--ease), color var(--ease);
}
.q-step:hover::after { -webkit-text-stroke-color: transparent; color: var(--pale); }
.q-step-num {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 18px;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.q-step:hover .q-step-num { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.q-step-body { position: relative; z-index: 1; }
.q-step-body h4 { font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.q-step-body p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Pie: contacto directo + promesa de respuesta */
.q-how-foot {
  margin-top: clamp(20px, 2.5vw, 30px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 28px;
  padding: clamp(20px, 2.4vw, 28px) clamp(24px, 3vw, 38px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.q-how-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.q-contact-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.q-contact-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background var(--ease), color var(--ease);
}
.q-contact-item:hover .q-contact-ic { background: var(--primary); color: #fff; }
.q-contact-tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.q-contact-tx small {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); margin-bottom: 2px;
}
.q-contact-tx strong {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink);
  word-break: break-word; transition: color var(--ease);
}
.q-contact-item:hover .q-contact-tx strong { color: var(--primary); }
.q-promise {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--primary-dark);
  background: var(--pale); border: 1px solid var(--pale2);
  padding: 12px 18px; border-radius: 100px;
}
.q-promise i { color: var(--primary); font-size: 15px; }

/* ── 25.3b · "3 pasos" arriba del hero + carrusel móvil ───────────── */
/* En cotización la PRIMERA banda es clara, así que el header va en su estilo
   sólido (texto/logo oscuros) desde arriba, no en blanco (que era para el
   hero oscuro). Scoped a body.q-page → no afecta al index. */
body.q-page .header .header-inner {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(15, 23, 42, .07);
  box-shadow: 0 12px 34px -14px rgba(15, 23, 42, .28);
}
body.q-page .header:not(.scrolled) .header-logo img { filter: none; }
body.q-page .header:not(.scrolled) .header-nav a { color: var(--ink); }
body.q-page .header:not(.scrolled) .header-nav a:hover,
body.q-page .header:not(.scrolled) .header-nav a[aria-current="true"] { color: var(--primary); background: rgba(37, 99, 235, .09); }
body.q-page .header:not(.scrolled) .nav-login { color: var(--ink-2); }
body.q-page .header:not(.scrolled) .btn-header { background: var(--ink); color: #fff; border-color: transparent; }
body.q-page .header:not(.scrolled) .menu-toggle span { background: var(--ink); }

/* La banda de pasos es ahora la primera sección: aire para el header fijo */
.q-how--steps   { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 44px)); }
.q-how--contact { padding-top: clamp(30px, 4vw, 52px); }

.q-steps { position: relative; }
/* Navegación del carrusel: flechas ‹ › + puntos (solo visibles en móvil) */
.q-steps-nav {
  display: none;                       /* se muestra en ≤680px (ver media query) */
  align-items: center; justify-content: center; gap: clamp(12px, 3vw, 18px);
  margin-top: clamp(18px, 3vw, 26px);
}
.q-steps-arrow {
  -webkit-appearance: none; appearance: none;
  flex-shrink: 0;
  width: 42px; height: 42px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.q-steps-arrow:hover { background: var(--primary); color: #fff; border-color: transparent; }
.q-steps-arrow:active { transform: scale(.92); }
.q-steps-dots { display: flex; justify-content: center; gap: 10px; }
.q-steps-dot {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 9px; padding: 0; margin: 0; border: 0;
  border-radius: 50%; background: var(--pale2); cursor: pointer;
  transition: background var(--ease), width var(--ease), border-radius var(--ease);
}
.q-steps-dot:hover { background: var(--muted-2); }
.q-steps-dot.is-active { background: var(--primary); width: 24px; border-radius: 100px; }

/* Carrusel en móvil: la fila de 3 pasos se vuelve deslizable con scroll-snap */
@media (max-width: 680px) {
  .q-how--steps .q-steps-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
    gap: 14px;
    padding-inline: 2px;
  }
  .q-how--steps .q-steps-row::-webkit-scrollbar { display: none; }  /* WebKit */
  .q-how--steps .q-step { flex: 0 0 100%; scroll-snap-align: center; }
  .q-steps-nav { display: flex; }
}

/* ── 25.4 · Prueba social (clientes) ──────────────────────────────── */
.q-clients { background: var(--surface); padding: clamp(24px, 3vw, 40px) 0 0; }
.q-clients-head { text-align: center; max-width: 620px; margin: 0 auto clamp(24px, 3vw, 36px); }
.q-clients-head .eyebrow { justify-content: center; }
.q-clients-head p { font-size: clamp(15px, 1.4vw, 17px); color: var(--muted); }
/* El .clients-ticker (banda negra animada) se reutiliza tal cual del index */

/* ── 25.5 · Entrada suave (no depende de JS/GSAP) ─────────────────── */
@keyframes qFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.q-hero-copy, .q-form-card { animation: qFadeUp .7s var(--ease) both; }
.q-form-card { animation-delay: .12s; }

/* ── 25.6 · Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .q-hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .q-hero-copy { max-width: 620px; padding-top: 0; }
  .q-form-card { max-width: 620px; }
}
@media (max-width: 680px) {
  .q-steps-row { grid-template-columns: 1fr; }
  /* Contacto directo: en móvil, lista vertical ordenada (icono + texto a la
     izquierda) con separadores, en vez del wrap escalonado 1+2 desalineado. */
  .q-how-foot { flex-direction: column; align-items: stretch; padding-inline: clamp(16px, 5vw, 26px); }
  .q-how-contact { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .q-contact-item { justify-content: flex-start; gap: 14px; padding: 14px 2px; }
  .q-contact-item + .q-contact-item { border-top: 1px solid var(--line); }
  .q-promise { justify-content: center; }
}
@media (max-width: 560px) {
  .q-grid { grid-template-columns: 1fr; gap: 0; }
  .q-grid .q-field { margin-bottom: 16px; }
  .q-hero-stats { flex-wrap: wrap; gap: 16px 20px; }
  .q-stat-div { display: none; }
  .q-stat { flex: 1 0 26%; }
}

/* ═══════════════════════════════════════════════════════════════════
   26. Salida hacia I Fix Play — portal ▶ desde la esquina inferior
   derecha del home. Solo clip-path (3 vértices) + opacity → nítido,
   sin rasters. El fondo final empalma con el loader de juegos.html.
   ═══════════════════════════════════════════════════════════════════ */
.play-exit-block {
  position: fixed;
  inset: 0;
  z-index: 100000;      /* por encima de todo el sitio (máx. previo: 9950) */
}
.play-exit-dark,
.play-exit-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  will-change: clip-path;
}
.play-exit-dark {
  background: #0B0B0E;
  z-index: 100001;
  transition: clip-path 1.25s cubic-bezier(.87, 0, .13, 1),
              -webkit-clip-path 1.25s cubic-bezier(.87, 0, .13, 1);
}
.play-exit-veil {
  background: #2563EB;
  z-index: 100002;
  transition: clip-path 1.25s cubic-bezier(.87, 0, .13, 1),
              -webkit-clip-path 1.25s cubic-bezier(.87, 0, .13, 1),
              opacity .65s ease .3s;
}

/* Llegada desde I Fix Play: el home espera cubierto (cover del primer
   frame vía html.play-arrive) y el portal se cierra hacia la esquina */
html.play-arrive::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #0B0B0E;
  z-index: 100001;
}
.play-exit-veil.closing {
  transition: clip-path 1.25s cubic-bezier(.87, 0, .13, 1),
              -webkit-clip-path 1.25s cubic-bezier(.87, 0, .13, 1),
              opacity .6s ease .55s;    /* el azul reaparece al final del cierre */
}
