/* ==========================================================================
   VROTE — base.css · Sistema de identidad v5 (compartido por las páginas de
   Fase 2: /alba, /servicios/*, /industrias/*). Fuente de verdad de la home:
   redesign-v2/index.html + guia-identidad-visual-v5.md + DIRECCION.md.
   Base clara + acento serif acotado + momento oscuro + botones Apple-style +
   red de nodos como grafismo. Un solo acento (electric). Anti-slop v5.
   ========================================================================== */

/* Transición entre páginas (cross-document View Transitions). Progressive
   enhancement: navegadores sin soporte simplemente cortan como antes. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:root {
  /* Base clara */
  --canvas:     #F8F9FB;
  --surface:    #FFFFFF;
  --ink:        #0A0D1A;
  --ink-muted:  #4B5163;
  --hairline:   #E6E8EF;

  /* Acento racionado */
  --electric:     #2D46F7;
  --electric-600: #2238D1;

  /* Momento oscuro */
  --navy:     #0A0D1A;
  --navy-900: #0F1225;
  --navy-800: #171C36;

  /* ── Escenas del CANAL DEL CLIENTE (WhatsApp) — vista clara, honesta ──
     La marca vive en el marco; el verde es el de WhatsApp real. Ver guía v5 §13. */
  --scene-shell:  #FFFFFF;
  --scene-chat:   #F4F5F8;
  --scene-sub:    #FBFBFD;
  --scene-line:   #E6E8EF;
  --scene-ink:    #0A0D1A;
  --scene-ink-2:  #6B7285;
  --wa-in:        #FFFFFF;
  --wa-out:       #D9FDD3;
  --wa-out-ink:   #0A2E1D;
  --wa-tick:      #34B7F1;

  /* Radio único */
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  /* z-index scale */
  --z-nav: 90;
  --z-menu: 95;
  --z-grain: 100;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tokens de animación de escena (ver guía v5 §13) */
  --t-fast:      200ms;
  --t-medium:    460ms;
  --t-slow:      760ms;
  --ease-scene:  cubic-bezier(0.16, 1, 0.3, 1);
  --loop-respiro: 800ms;
  --loop-panel:  4600ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: 0.028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  margin: 0; color: var(--ink); text-wrap: balance;
}

/* Acento editorial: serif itálica, una palabra, tinta, aspiracional/nombre-Alba */
.accent {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.1; padding-bottom: 0.06em; display: inline-block;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 940px; }
.section { padding: 92px 0; }
@media (max-width: 640px) { .section { padding: 68px 0; } }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--electric); outline-offset: 3px; border-radius: var(--r-sm);
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--r-sm); font-weight: 600; font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; }

.label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted);
}
.label .dot-live { width: 7px; height: 7px; border-radius: 999px; background: #22c55e; display: inline-block; }

/* Encabezado de sección */
.sec-head { max-width: 58ch; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 18px; }
.sec-head p { color: var(--ink-muted); font-size: 1.08rem; line-height: 1.6; max-width: 48ch; }
.sec-head.center { max-width: 64ch; margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.sec-head .label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }

/* ── Botones (Apple-style) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 980px; border: none; cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.18s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--electric); color: #fff; }
.btn-primary:hover { background: var(--electric-600); }

/* Hero de industria y de servicio: SOLO el CTA del hero baja de intensidad
   (ghost/outline). Es un botón secundario/de scroll; el CTA real de conversión
   (nav y #contacto) conserva el azul sólido .btn-primary global — no se toca.
   Este override está scoped a cada hero y sólo alcanza ese único botón del hero. */
.ind-hero .btn-primary,
.svc-hero .btn-primary, .crm-hero .btn-primary, .auto-hero .btn-primary,
.web-hero .btn-primary, .cons-hero .btn-primary {
  background: #fff; color: var(--ink);
  border: 1px solid rgba(10,13,26,0.16);
  box-shadow: 0 1px 2px rgba(10,13,26,0.05);
  gap: 9px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.18s var(--ease);
}
.ind-hero .btn-primary::after,
.svc-hero .btn-primary::after, .crm-hero .btn-primary::after, .auto-hero .btn-primary::after,
.web-hero .btn-primary::after, .cons-hero .btn-primary::after {
  content: "→"; font-weight: 500; font-size: 1.05em; line-height: 1;
  transition: transform 0.25s var(--ease);
}
.ind-hero .btn-primary:hover,
.svc-hero .btn-primary:hover, .crm-hero .btn-primary:hover, .auto-hero .btn-primary:hover,
.web-hero .btn-primary:hover, .cons-hero .btn-primary:hover {
  background: #fff; border-color: rgba(10,13,26,0.30);
  box-shadow: 0 6px 18px rgba(10,13,26,0.09);
}
.ind-hero .btn-primary:hover::after,
.svc-hero .btn-primary:hover::after, .crm-hero .btn-primary:hover::after, .auto-hero .btn-primary:hover::after,
.web-hero .btn-primary:hover::after, .cons-hero .btn-primary:hover::after { transform: translateX(3px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  color: var(--electric); transition: color 0.2s var(--ease);
}
.btn-text .chev { display: inline-flex; transition: transform 0.25s var(--ease); }
.btn-text svg { width: 16px; height: 16px; }
.btn-text:hover { color: var(--electric-600); }
.btn-text:hover .chev { transform: translateX(3px); }

/* ── NAV ── */
.nav { position: fixed; top: 18px; left: 0; right: 0; z-index: var(--z-nav); display: flex; justify-content: center; transition: transform 0.5s var(--ease); }
.nav.nav-hidden { transform: translateY(-140%); }
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 9px 9px 9px 20px;
  background: rgba(248,249,251,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--hairline); border-radius: 980px;
  box-shadow: 0 4px 20px rgba(10,13,26,0.05);
}
.brand { display: flex; align-items: center; color: var(--ink); }
.brand .logo { height: 27px; width: auto; display: block; }
.brand .logo-word { height: 17px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-muted); transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav .btn { font-size: 14px; padding: 8px 18px; }
.nav-toggle { display: none; }

/* ── Mega-menú de nav (Servicios / Industrias) estilo Bewe ──
   Panel blanco grande con dos zonas: card destacada (izq, gradiente navy o
   foto duotono) + lista con tiles de ícono redondeados (der). Superficie
   blanca, hairline, radio del sistema, sombra suave — el lujo viene del
   espacio y de la card destacada, no de efectos. Abre por hover (punteros
   finos), por foco/tap (.open vía JS) y por teclado. El puente invisible
   (padding-top del .nav-dd) mantiene el hover continuo trigger → panel. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--ink-muted); background: none; border: none; padding: 0; cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav-trigger .chev-d { width: 11px; height: 11px; flex-shrink: 0; transition: transform 0.28s var(--ease); }
.nav-trigger:hover, .nav-trigger.on, .nav-item.open .nav-trigger { color: var(--ink); }
.nav-item.open .nav-trigger .chev-d { transform: rotate(180deg); }

.nav-dd {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 16px;                 /* puente invisible trigger → panel */
  visibility: hidden; pointer-events: none;
  transition: visibility 0.26s var(--ease);
}
.nav-dd-panel {
  background: #fff; border: 1px solid var(--hairline); border-radius: 22px;
  box-shadow: 0 4px 20px rgba(10,13,26,0.05), 0 26px 60px -16px rgba(10,13,26,0.18);
  padding: 12px;
  opacity: 0; transform: translateY(-8px) scale(0.99); transform-origin: top center;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.nav-item.open > .nav-dd { visibility: visible; pointer-events: auto; }
.nav-item.open > .nav-dd .nav-dd-panel { opacity: 1; transform: translateY(0) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-item[data-dd]:hover > .nav-dd { visibility: visible; pointer-events: auto; }
  .nav-item[data-dd]:hover > .nav-dd .nav-dd-panel { opacity: 1; transform: translateY(0) scale(1); }
  .nav-item[data-dd]:hover .nav-trigger { color: var(--ink); }
  .nav-item[data-dd]:hover .nav-trigger .chev-d { transform: rotate(180deg); }
}

/* Layout de dos zonas — ancho contenido, seguro dentro del viewport a 1280/1024/900 */
.mega-panel { display: grid; grid-template-columns: 218px 300px; gap: 12px; align-items: stretch; }

/* Card destacada (izq): gradiente navy o foto duotono, texto al fondo */
.mega-feat {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: 16px; padding: 18px; min-height: 214px;
  text-decoration: none;
}
.mega-feat--svc { background: radial-gradient(130% 105% at 100% 0%, #171e3e, #0A0D1A 62%); }
.mega-feat--svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(56% 44% at 15% 4%, rgba(45,70,247,0.5), transparent 60%),
    radial-gradient(62% 54% at 98% 106%, rgba(107,49,249,0.42), transparent 62%);
}
.mf-nodes { position: absolute; right: -10px; top: -6px; width: 148px; opacity: 0.5; z-index: -1; pointer-events: none; }
.mf-nodes svg { width: 100%; height: auto; display: block; }

/* Variante foto (industrias): duotono de marca sobre la foto del rubro */
.mega-feat--ind { background: #0A0D1A; }
.mf-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.mf-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); opacity: 0.6; }
.mega-feat--ind::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(150deg, rgba(45,70,247,0.6), rgba(107,49,249,0.5)),
    linear-gradient(to top, rgba(10,13,26,0.95) 4%, rgba(10,13,26,0.2) 66%);
}

.mf-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
}
.mf-body { margin-top: auto; display: flex; flex-direction: column; }
.mf-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; letter-spacing: -0.03em; color: #fff; line-height: 1.08; }
.mf-desc { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.7); margin-top: 8px; }
.mf-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: #fff; }
.mf-more svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.mega-feat:hover .mf-more svg { transform: translateX(3px); }
.mega-feat:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.mega-feat.on { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }

/* Lista (der): tiles de ícono redondeados + título + línea de copy */
.mega-list { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.mega-item {
  display: flex; align-items: center; gap: 13px; padding: 10px 12px;
  border-radius: 13px; transition: background 0.18s var(--ease);
}
.mega-item:hover { background: rgba(10,13,26,0.045); }
.mega-item:focus-visible { outline: 2px solid var(--electric); outline-offset: -2px; }
.mi-ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--canvas); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; color: var(--electric);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mi-ic svg { width: 20px; height: 20px; }
.mega-item:hover .mi-ic { background: #fff; border-color: rgba(45,70,247,0.28); }
.mi-tx { display: flex; flex-direction: column; min-width: 0; }
.mi-t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.mi-d { font-size: 12.5px; font-weight: 400; color: var(--ink-muted); line-height: 1.3; margin-top: 1px; }
.mega-item.on { background: rgba(45,70,247,0.06); }
.mega-item.on .mi-t { color: var(--electric); }
.mega-item.on .mi-ic { background: #fff; border-color: rgba(45,70,247,0.3); }

@media (max-width: 880px) {
  .nav-links, .nav-inner > .btn-primary { display: none; }
  .nav-inner { gap: 12px; padding: 9px 12px 9px 18px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px; border: none;
    background: var(--ink); color: #fff; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
}

/* Menú móvil — agrupado por SERVICIOS / INDUSTRIAS + enlaces sueltos */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(248,249,251,0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 86px 30px 40px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.menu.open { opacity: 1; visibility: visible; }
.menu-nav { display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 440px; margin: 0 auto; }
.menu-group { display: flex; flex-direction: column; }
.menu-h { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.menu-group a { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.24rem; letter-spacing: -0.02em; color: var(--ink); padding: 6px 0; }
.menu-group a.on { color: var(--electric); }
.menu-links { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.menu-links a { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); padding: 6px 0; }
.menu-links a.on { color: var(--electric); }
.menu .btn-primary { align-self: flex-start; margin-top: 22px; font-size: 16px; padding: 13px 26px; color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: normal; }
.menu-close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.menu-close svg { width: 20px; height: 20px; }
/* Stagger de entrada del menú móvil — evita que todos los links aparezcan
   juntos al abrir. Escalonado por posición dentro de cada bloque. */
.menu-group > *, .menu-links > *, .menu-nav > .btn-primary {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.menu.open .menu-group > *, .menu.open .menu-links > *, .menu.open .menu-nav > .btn-primary {
  opacity: 1; transform: none;
}
.menu.open .menu-group:nth-of-type(1) > *:nth-child(1) { transition-delay: 0ms; }
.menu.open .menu-group:nth-of-type(1) > *:nth-child(2) { transition-delay: 25ms; }
.menu.open .menu-group:nth-of-type(1) > *:nth-child(3) { transition-delay: 50ms; }
.menu.open .menu-group:nth-of-type(1) > *:nth-child(4) { transition-delay: 75ms; }
.menu.open .menu-group:nth-of-type(1) > *:nth-child(5) { transition-delay: 100ms; }
.menu.open .menu-group:nth-of-type(1) > *:nth-child(6) { transition-delay: 125ms; }
.menu.open .menu-group:nth-of-type(2) > *:nth-child(1) { transition-delay: 150ms; }
.menu.open .menu-group:nth-of-type(2) > *:nth-child(2) { transition-delay: 175ms; }
.menu.open .menu-group:nth-of-type(2) > *:nth-child(3) { transition-delay: 200ms; }
.menu.open .menu-group:nth-of-type(2) > *:nth-child(4) { transition-delay: 225ms; }
.menu.open .menu-group:nth-of-type(2) > *:nth-child(5) { transition-delay: 250ms; }
.menu.open .menu-group:nth-of-type(2) > *:nth-child(6) { transition-delay: 275ms; }
.menu.open .menu-links > *:nth-child(1) { transition-delay: 300ms; }
.menu.open .menu-nav > .btn-primary { transition-delay: 325ms; }


/* ── HERO genérico (base clara + lavado ambiental) ── */
.hero { position: relative; padding: 148px 0 80px; }
.hero-amb {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(78% 56% at 50% 2%, rgba(45,70,247,0.075), rgba(45,70,247,0) 60%),
    radial-gradient(44% 40% at 84% 16%, rgba(107,49,249,0.05), rgba(107,49,249,0) 62%),
    radial-gradient(46% 42% at 12% 22%, rgba(45,70,247,0.045), rgba(45,70,247,0) 62%);
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }

.avatar {
  width: 38px; height: 38px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, #2D46F7, #6B31F9);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 16px;
}

.microcopy { font-size: 13px; color: var(--ink-muted); }

/* Strip de canales */
.channels { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.channel { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.channel svg { width: 16px; height: 16px; color: var(--ink-muted); }

/* ── Cards genéricas ── */
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 32px;
  box-shadow: 0 1px 3px rgba(10,13,26,0.03);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10,13,26,0.06); border-color: #d5d9e6; } }
.card-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; color: var(--electric); margin-bottom: 22px; }
.card-ic svg { width: 22px; height: 22px; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Lista con check */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.checklist li .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: rgba(45,70,247,0.1); color: var(--electric); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.checklist li .ck svg { width: 13px; height: 13px; }
.checklist li span.t { color: var(--ink-muted); }
.checklist li b { font-weight: 600; }

/* ── Proceso (pasos) ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 26px; }
.step .sn { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: var(--electric); width: 34px; height: 34px; border-radius: 999px; background: rgba(45,70,247,0.09); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 14px; line-height: 1.55; }

/* ── Red de nodos: ciclo mes a mes ── */
.cycle { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 34px; box-shadow: 0 2px 8px rgba(10,13,26,0.03); }
.cycle-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 26px; }
.circuit { position: relative; }
.circuit::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, #2D46F7, #6B31F9); opacity: 0.24; border-radius: 2px; }
.cnode-row { display: flex; gap: 18px; align-items: flex-start; padding: 14px 0; position: relative; }
.crail { width: 40px; flex-shrink: 0; display: flex; justify-content: center; position: relative; z-index: 1; }
.cnode { border-radius: 999px; box-shadow: 0 0 0 5px var(--surface); }
.cnode.n1 { width: 16px; height: 16px; background: #2D46F7; margin-top: 4px; }
.cnode.n2 { width: 13px; height: 13px; background: #4257F5; margin-top: 5px; }
.cnode.n3 { width: 15px; height: 15px; background: #5A45F6; margin-top: 4px; }
.cnode.n4 { width: 20px; height: 20px; background: linear-gradient(135deg, #2D46F7, #6B31F9); margin-top: 2px; }
.cycle .ctxt strong { display: block; font-weight: 600; font-size: 15px; }
.cycle .ctxt span { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 26px; width: 14px; height: 14px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5163' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 44px 24px 0; color: var(--ink-muted); font-size: 15.5px; line-height: 1.62; }

/* ── Momento oscuro / cierre ── */
.close { margin: 0 auto; max-width: 1180px; background: var(--navy); border-radius: 28px; padding: 84px 32px; text-align: center; position: relative; overflow: hidden; }
.close::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 180px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #2D46F7, #6B31F9); }
.close h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 0 auto 34px; max-width: 20ch; }
/* Palabra de acento sobre navy: hereda la sans del h2 y recibe subrayado en gradiente
   real (el serif-italica tinta del .accent global es invisible sobre fondo oscuro). */
.close h2 .accent { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; line-height: inherit; padding-bottom: 0; color: #fff; position: relative; white-space: nowrap; }
.close h2 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.13em; border-radius: 4px; background: linear-gradient(90deg, #2D46F7, #6B31F9); opacity: 0.95; }
.close .btn-wrap { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .close { padding: 60px 22px; } }

/* Panel oscuro reutilizable */
.dark-panel { background: var(--navy); border: 1px solid var(--navy-800); border-radius: var(--r-lg); padding: 34px; color: #fff; }
.dark-panel h3 { color: #fff; }
.dark-panel p { color: #A7AEC0; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--hairline); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-muted); font-size: 14px; line-height: 1.55; max-width: 30ch; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.footer-contact a { color: var(--ink-muted); font-size: 14px; transition: color 0.2s var(--ease); }
.footer-contact a:hover { color: var(--ink); }
.footer-contact span { color: var(--ink-muted); font-size: 14px; }
.footer-col h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--ink-muted); font-size: 14px; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.footer-bottom p { color: var(--ink-muted); font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--hairline); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.footer-social a:hover { color: var(--ink); border-color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

/* ── Reveal (progressive enhancement) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Reveal · variantes por tipo de contenido ─────────────────────────────
   Cada tipo de bloque entra distinto. Todas ENRIQUECEN un default ya visible
   (progressive enhancement): sin .js nada se oculta, el observer solo añade
   .in. Los headers de sección conservan el .reveal base (fade-up simple).
   Contrapartida en el bloque prefers-reduced-motion de más abajo. */

/* Grids de cards → cascada por índice. El contenedor lleva .rev-stagger y sus
   hijos conservan su propia .reveal; el escalonado lo dan los transition-delay
   (el número entra primero, luego los demás uno tras otro). */
.js .rev-stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
.js .rev-stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
.js .rev-stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
.js .rev-stagger > .reveal:nth-child(5) { transition-delay: 280ms; }
.js .rev-stagger > .reveal:nth-child(6) { transition-delay: 350ms; }
.js .rev-stagger > .reveal:nth-child(n+7) { transition-delay: 420ms; }

/* Bloques de cita / declaración → suben con un leve scale en vez de translate
   (nada aparece "de la nada": parte de 0.965, no de 0). */
.js .reveal.rev-scale { transform: scale(0.965); }
.js .reveal.rev-scale.in { transform: none; }

/* Bento de estadísticas (páginas de industria) → el número "hero" hace scale-in
   y lidera; los mini-items del lateral entran en cascada un beat después.
   SIN count-up: el número es texto estático, solo escala su contenedor.
   El .stat-bento (que ya es .reveal) actúa solo de disparador: no se desvanece
   él mismo, anima a sus hijos. */
.js .stat-bento.reveal { opacity: 1; transform: none; transition: none; }
.js .stat-bento .sb-hero { opacity: 0; transform: scale(0.94); transform-origin: left center; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .stat-bento .sb-side .sb-mini { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .stat-bento.in .sb-hero { opacity: 1; transform: none; }
.js .stat-bento.in .sb-side .sb-mini { opacity: 1; transform: none; }
.js .stat-bento.in .sb-side .sb-mini:nth-child(1) { transition-delay: 130ms; }
.js .stat-bento.in .sb-side .sb-mini:nth-child(2) { transition-delay: 210ms; }
.js .stat-bento.in .sb-side .sb-mini:nth-child(3) { transition-delay: 290ms; }

/* ==========================================================================
   SISTEMA DE ESCENAS ANIMADAS (paneles / mini-escenas)
   Estado sin JS / reduced-motion / low-end = estado FINAL visible.
   ========================================================================== */
.scene [data-anim] { transition:
  opacity var(--t-medium) var(--ease-scene),
  transform var(--t-medium) var(--ease-scene); }
.scene.playing [data-anim] { opacity: 0; }
.scene.playing [data-anim].sl-up { transform: translateY(10px); }
.scene.playing [data-anim].sl-left { transform: translateX(-10px); }
.scene.playing [data-anim].sl-right { transform: translateX(10px); }
.scene.playing [data-anim].sc { transform: scale(0.94); }
.scene.playing [data-anim].in { opacity: 1; transform: none; }
.scene.playing [data-anim].in.a-off { opacity: 0; }

@keyframes scene-ping { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }
.live-ping { animation: scene-ping 2.4s var(--ease-scene) infinite; }
@keyframes typing-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.ascene {
  container-type: inline-size; width: 100%; aspect-ratio: 7 / 5;
  background: var(--scene-shell); border: 1px solid var(--scene-line); border-radius: var(--r-md);
  overflow: hidden; position: relative; padding: 4cqw;
  font-size: clamp(9px, 4.4cqw, 13px);
}

/* Chat WhatsApp real (vista del cliente) */
.ascene[data-scene="chat"], .ascene.chat-bg { background: var(--scene-chat); }
.as-chat { display: flex; flex-direction: column; gap: 2cqw; justify-content: flex-end; height: 100%; }
.as-msg { max-width: 88%; font-size: 4cqw; line-height: 1.35; padding: 2.2cqw 2.8cqw 1.4cqw; border-radius: 3cqw; box-shadow: 0 1px 1px rgba(10,13,26,0.06); }
.as-msg.inb { align-self: flex-start; background: var(--wa-in); border: 1px solid var(--scene-line); color: var(--scene-ink); border-bottom-left-radius: 1cqw; }
.as-msg.out { align-self: flex-end; background: var(--wa-out); color: var(--wa-out-ink); border-bottom-right-radius: 1cqw; }
.as-msg .amt { float: right; margin: .8cqw 0 -.4cqw 1.8cqw; font-size: 2.7cqw; color: var(--scene-ink-2); display: inline-flex; align-items: center; gap: .5cqw; }
.as-msg.out .amt { color: #365945; }
.as-msg .amt .tick { color: var(--wa-tick); display: inline-flex; }
.as-msg .amt .tick svg { width: 3cqw; height: 3cqw; min-width: 8px; min-height: 8px; }
.as-typing { align-self: flex-start; display: inline-flex; gap: 1.4cqw; padding: 3cqw 3.4cqw; background: var(--wa-in); border: 1px solid var(--scene-line); border-radius: 3cqw; border-bottom-left-radius: 1cqw; box-shadow: 0 1px 1px rgba(10,13,26,0.06); opacity: 0; transition: opacity var(--t-fast) var(--ease-scene); }
.as-typing i { width: 2.2cqw; height: 2.2cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #9AA3BC; }
.playing .as-typing.in { opacity: 1; }
.playing .as-typing.in.a-off { opacity: 0; }
.playing .as-typing.in i { animation: typing-bounce 1.1s var(--ease-scene) infinite; }
.playing .as-typing.in i:nth-child(2) { animation-delay: .15s; }
.playing .as-typing.in i:nth-child(3) { animation-delay: .3s; }

/* Ficha CRM que se completa */
.as-lead { display: flex; flex-direction: column; height: 100%; }
.al-head { display: flex; align-items: center; gap: 2.4cqw; padding-bottom: 2.4cqw; margin-bottom: 2.6cqw; border-bottom: 1px solid var(--scene-line); }
.al-head .al-av { width: 9cqw; height: 9cqw; min-width: 26px; min-height: 26px; border-radius: 50%; background: linear-gradient(135deg,#2D46F7,#6B31F9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 4cqw; flex-shrink: 0; }
.al-head .al-nm { min-width: 0; display: flex; flex-direction: column; gap: .4cqw; }
.al-head .al-nm .n { color: var(--scene-ink); font-weight: 600; font-size: 4cqw; display: flex; align-items: center; gap: 1.4cqw; }
.al-head .al-nm .n .vip { font-size: 2.6cqw; font-weight: 700; color: #B45309; background: #FEF3C7; border: 1px solid #FDE28A; padding: .2cqw 1.4cqw; border-radius: 999px; }
.al-head .al-nm .ph { color: var(--scene-ink-2); font-size: 3cqw; font-variant-numeric: tabular-nums; }
.as-lf { display: grid; grid-template-columns: 26cqw 1fr; align-items: center; gap: 2.4cqw; padding: 1.4cqw 0; }
.as-lf .lfk { color: var(--scene-ink-2); font-size: 3.4cqw; }
.as-lf .lfv { color: var(--scene-ink); font-size: 3.6cqw; font-weight: 600; text-align: right; }
.as-tag { align-self: stretch; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 1.4cqw; font-size: 3.4cqw; font-weight: 700; color: #15803D; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); padding: 2cqw 3cqw; border-radius: 2.4cqw; }
.as-tag .cd { width: 4.6cqw; height: 4.6cqw; min-width: 12px; min-height: 12px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.as-tag .cd svg { width: 2.8cqw; height: 2.8cqw; min-width: 7px; min-height: 7px; }

/* Agenda del día */
.as-cal { height: 100%; display: flex; flex-direction: column; }
.as-cal .calh { color: var(--scene-ink); font-size: 3.6cqw; font-weight: 600; margin-bottom: 2.2cqw; padding-bottom: 1.8cqw; border-bottom: 1px solid var(--scene-line); }
.as-cal .callist { flex: 1; display: flex; flex-direction: column; gap: 1.6cqw; justify-content: center; }
.acs { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2.4cqw; padding: 1.8cqw 2cqw; border-radius: 2cqw; }
.acs .act { color: var(--scene-ink-2); font-size: 3.2cqw; font-weight: 600; font-variant-numeric: tabular-nums; }
.acs .acn { color: var(--scene-ink); font-size: 3.4cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acs.busy { background: #fff; box-shadow: inset 0 0 0 1px var(--scene-line); opacity: .68; }
.acs.busy .act { color: #232833; }
.acs.free { border: 1px dashed #CBD1E0; }
.acs.free .acn { color: #5C6270; font-weight: 500; }
.acs.target { position: relative; box-shadow: inset 0 0 0 1.6px rgba(45,70,247,0.55); background: rgba(45,70,247,0.05); }
.acs.target .act, .acs.target .acn { color: var(--electric); }
.acs.target .ack { position: absolute; top: -1.6cqw; right: -1.2cqw; width: 5.4cqw; height: 5.4cqw; min-width: 15px; min-height: 15px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; border: 1.6cqw solid var(--scene-shell); }
.acs.target .ack svg { width: 2.8cqw; height: 2.8cqw; min-width: 8px; min-height: 8px; }

/* Recordatorio / seguimiento */
.as-follow { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2.6cqw; }
.af-head { display: flex; align-items: center; gap: 2cqw; }
.af-bell { width: 8cqw; height: 8cqw; min-width: 22px; min-height: 22px; border-radius: 50%; background: rgba(45,70,247,0.1); color: var(--electric); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.af-bell svg { width: 4cqw; height: 4cqw; min-width: 11px; min-height: 11px; }
.af-head .af-t { color: var(--scene-ink); font-size: 3.4cqw; font-weight: 600; }
.af-head .af-t span { display: block; color: var(--scene-ink-2); font-size: 2.9cqw; font-weight: 500; margin-top: .3cqw; }
.as-remind { background: #fff; border: 1px solid var(--scene-line); border-radius: 2.6cqw; padding: 2.6cqw; display: flex; align-items: center; gap: 2.4cqw; box-shadow: 0 1.6cqw 4cqw rgba(10,13,26,0.06); }
.as-remind .rav { width: 7cqw; height: 7cqw; min-width: 20px; min-height: 20px; border-radius: 50%; background: #E7EAF2; color: #59617A; display: flex; align-items: center; justify-content: center; font-size: 3cqw; font-weight: 700; flex-shrink: 0; }
.as-remind .rtx { flex: 1; min-width: 0; }
.as-remind .rtx .rr1 { font-size: 3.3cqw; font-weight: 600; color: var(--scene-ink); }
.as-remind .rtx .rr2 { font-size: 2.9cqw; color: var(--scene-ink-2); display: flex; align-items: center; gap: 1cqw; margin-top: .3cqw; }
.as-remind .sent { color: #15803D; font-weight: 700; display: inline-flex; align-items: center; gap: .8cqw; }
.as-remind .sent .tick { color: var(--wa-tick); display: inline-flex; }
.as-remind .sent .tick svg { width: 3.2cqw; height: 3.2cqw; min-width: 8px; min-height: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* Variantes de reveal: estado final visible, sin transform ni delay. */
  .js .reveal.rev-scale, .js .reveal.rev-scale.in { transform: none; }
  .js .stat-bento.reveal, .js .stat-bento .sb-hero,
  .js .stat-bento .sb-side .sb-mini { opacity: 1; transform: none; transition: none; }
  .btn, .nav, .card, .btn-text .chev, .faq summary::after, .rot-word,
  .nav-dd, .nav-dd-panel, .nav-trigger .chev-d,
  .mf-more svg, .mi-ic { transition: none; }
  .scene [data-anim] { transition: none; }
  .live-ping, .playing .as-typing.in i { animation: none; }
  .menu-group > *, .menu-links > *, .menu-nav > .btn-primary {
    opacity: 1; transform: none; transition: none; transition-delay: 0ms;
  }
}

/* ==========================================================================
   SKINS DE CANAL FIELES  (guía v5 §13)
   Cada canal simulado replica su UI real, igual que el Chatwoot del hero de la
   home. Tres skins reutilizables: WhatsApp · Instagram DM · widget web (este
   último documentado; el canal web en vivo se muestra con el widget real).
   Todos escalan por cqw (el contenedor .ascene / .phone-screen aporta
   container-type). Se reutilizan las burbujas .as-chat / .as-msg / .as-typing
   y los timelines existentes: solo cambia el "chrome" del canal.
   ========================================================================== */
:root {
  /* WhatsApp real */
  --wa-wall:     #EFE7DE;              /* wallpaper beige clásico */
  --wa-teal:     #075E54;             /* header */
  --wa-teal-2:   #128C7E;
  --wa-send:     #00A884;             /* botón de micrófono */
  --wa-datechip: #E2EAE7;             /* chip "HOY" */
  --wa-out:      #D9FDD3;             /* burbuja saliente (Alba) */
  --wa-out-ink:  #0A2E1D;
  --wa-tick:     #53BDEB;             /* doble check leído */
  /* wallpaper de doodles (garabatos genéricos, low-alpha; NO el asset de Meta) */
  --wa-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='%23B8AB97' stroke-opacity='0.22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='12' width='26' height='18' rx='5'/%3E%3Cpath d='M14 30l0 6 6-6'/%3E%3Cpath d='M92 16c-2.5-5-11-3.5-11 2.5 0 4.5 11 11 11 11s11-6.5 11-11c0-6-8.5-7.5-11-2.5z'/%3E%3Ccircle cx='112' cy='58' r='9'/%3E%3Ccircle cx='109' cy='56' r='0.6'/%3E%3Ccircle cx='115' cy='56' r='0.6'/%3E%3Cpath d='M108 61a5 5 0 0 0 8 0'/%3E%3Cpath d='M34 60l3 6 7 1-5 5 1 7-6-3.5-6 3.5 1-7-5-5 7-1z'/%3E%3Cpath d='M58 92h15v9a5 5 0 0 1-5 5h-5a5 5 0 0 1-5-5z'/%3E%3Cpath d='M73 95h4a3 3 0 0 1 0 6h-4'/%3E%3Cpath d='M62 86v-4M67 86v-4'/%3E%3Crect x='10' y='96' width='24' height='17' rx='4'/%3E%3Ccircle cx='22' cy='105' r='4.5'/%3E%3Cpath d='M15 96l2-3h10l2 3'/%3E%3Cpath d='M104 112v-16l9-2v16'/%3E%3Ccircle cx='101' cy='112' r='3'/%3E%3Ccircle cx='113' cy='110' r='3'/%3E%3C/g%3E%3C/svg%3E");
  /* Instagram DM real */
  --ig-blue: #1D6FC2;                 /* ajustado para 4.5:1 mínimo con texto blanco encima */
  --ig-in:   #EFEFEF;
  --ig-line: #EFEFEF;
  --ig-mute: #666666;                 /* ajustado para 4.5:1 mínimo (contraste WCAG AA) */
}

/* Cuando la escena aloja un skin de canal, el marco llena de borde a borde. */
.ascene.skin { padding: 0; background: none; }

/* ── WhatsApp (marco de conversación real) ── */
.wa-win { display: flex; flex-direction: column; height: 100%; width: 100%; background: var(--wa-wall); overflow: hidden; }
.wa-status { display: flex; align-items: center; justify-content: space-between; background: var(--wa-teal); color: #fff; padding: 1.6cqw 3cqw .4cqw; font-size: 2.9cqw; font-weight: 600; }
.wa-status .wa-sig { display: inline-flex; align-items: center; gap: 1cqw; }
.wa-status .wa-sig svg { width: 3.2cqw; height: 3.2cqw; }
.wa-top { display: flex; align-items: center; gap: 2cqw; background: var(--wa-teal); color: #fff; padding: 2cqw 3cqw; }
.wa-top .wa-bk { display: inline-flex; flex-shrink: 0; }
.wa-top .wa-bk svg { width: 3.4cqw; height: 3.4cqw; }
.wa-top .wa-av { width: 7cqw; height: 7cqw; min-width: 18px; min-height: 18px; border-radius: 50%; background: linear-gradient(135deg,#2D46F7,#6B31F9); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 3cqw; flex-shrink: 0; }
.wa-top .wa-id { flex: 1; min-width: 0; line-height: 1.2; display: flex; flex-direction: column; }
.wa-top .wa-nm { font-weight: 600; font-size: 3.4cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-top .wa-sub { font-size: 2.6cqw; color: rgba(255,255,255,0.82); }
.wa-top .wa-acts { display: flex; align-items: center; gap: 2.6cqw; color: #fff; }
.wa-top .wa-acts svg { width: 3.6cqw; height: 3.6cqw; }
.wa-wall { flex: 1; position: relative; min-height: 0; background-color: var(--wa-wall); background-image: var(--wa-doodle); background-size: 46px 46px; padding: 3cqw 3cqw 2cqw; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.wa-date { align-self: center; background: var(--wa-datechip); color: #355249; font-size: 2.5cqw; font-weight: 600; padding: .8cqw 2.4cqw; border-radius: 2cqw; margin-bottom: 2cqw; box-shadow: 0 1px 1px rgba(10,13,26,0.05); }
.wa-inbar { display: flex; align-items: center; gap: 2cqw; padding: 2cqw 2.6cqw; }
.wa-inbar .wa-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2cqw; background: #fff; border-radius: 999px; padding: 2cqw 3cqw; color: #5F6368; font-size: 3cqw; box-shadow: 0 1px 1px rgba(10,13,26,0.05); }
.wa-inbar .wa-field svg { width: 3.4cqw; height: 3.4cqw; flex-shrink: 0; color: #8A9299; }
.wa-inbar .wa-field .wa-ph { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-inbar .wa-field .wa-ico-r { display: inline-flex; gap: 2cqw; }
.wa-inbar .wa-mic { width: 8.6cqw; height: 8.6cqw; min-width: 24px; min-height: 24px; border-radius: 50%; background: var(--wa-send); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-inbar .wa-mic svg { width: 3.8cqw; height: 3.8cqw; }
/* La escena WhatsApp reusa .as-chat/.as-msg/.as-typing (verde real + tick azul). */
.wa-wall .as-chat { height: auto; }
/* Variante compacta (paneles pequeños): sin barra de entrada ni status bar. */
.wa-win.wa-compact .wa-status, .wa-win.wa-compact .wa-inbar, .wa-win.wa-compact .wa-date { display: none; }
.wa-win.wa-compact .wa-top { padding: 2.2cqw 3cqw; }

/* ── Instagram DM (marco real) ── */
.ig-win { display: flex; flex-direction: column; height: 100%; width: 100%; background: #fff; overflow: hidden; }
.ig-top { display: flex; align-items: center; gap: 2cqw; padding: 2.2cqw 3cqw; border-bottom: 1px solid var(--ig-line); }
.ig-top .ig-bk { display: inline-flex; color: #111; flex-shrink: 0; }
.ig-top .ig-bk svg { width: 3.6cqw; height: 3.6cqw; }
.ig-top .ig-av { width: 7cqw; height: 7cqw; min-width: 18px; min-height: 18px; border-radius: 50%; background: linear-gradient(135deg,#2D46F7,#6B31F9); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 3cqw; flex-shrink: 0; }
.ig-top .ig-id { flex: 1; min-width: 0; line-height: 1.2; display: flex; flex-direction: column; }
.ig-top .ig-nm + .ig-sub { margin-top: 0.4cqw; }
.ig-top .ig-nm { font-weight: 600; font-size: 3.4cqw; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-top .ig-sub { font-size: 2.6cqw; color: var(--ig-mute); }
.ig-top .ig-acts { display: flex; align-items: center; gap: 2.6cqw; color: #111; }
.ig-top .ig-acts svg { width: 3.8cqw; height: 3.8cqw; }
.ig-body { flex: 1; min-height: 0; background: #fff; padding: 3cqw; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ig-body .as-chat { height: auto; gap: 1.6cqw; }
.ig-win .as-msg { border-radius: 5cqw; box-shadow: none; padding: 2.4cqw 3cqw; }
.ig-win .as-msg.inb { background: var(--ig-in); border: none; color: #111; border-bottom-left-radius: 1.4cqw; }
.ig-win .as-msg.out { background: var(--ig-blue); color: #fff; border-bottom-right-radius: 1.4cqw; }
.ig-win .as-msg .amt { display: none; }
.ig-win .as-typing { background: var(--ig-in); border: none; box-shadow: none; border-radius: 5cqw; }
.ig-inbar { display: flex; align-items: center; gap: 2cqw; padding: 2.2cqw 3cqw; border-top: 1px solid var(--ig-line); }
.ig-inbar .ig-cam { width: 8cqw; height: 8cqw; min-width: 22px; min-height: 22px; border-radius: 50%; background: var(--ig-blue); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ig-inbar .ig-cam svg { width: 4cqw; height: 4cqw; }
.ig-inbar .ig-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2cqw; border: 1px solid #DBDBDB; border-radius: 999px; padding: 2cqw 3cqw; color: var(--ig-mute); font-size: 3cqw; }
.ig-inbar .ig-field .ig-ph { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-inbar .ig-field .ig-ico-r { display: inline-flex; gap: 2cqw; color: #262626; }
.ig-inbar .ig-field svg { width: 3.4cqw; height: 3.4cqw; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   SECCIONES DE INDUSTRIA (Fase 2) — compartidas por las 4 páginas de rubro.
   Banda de capacidad honesta + comparación por rubro + cita de marca de Alba.
   Adaptación (no copia) de la página de industria de Bewe a la identidad v5.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Banda de números honestos (solo capacidad factual, sin claims de resultado) ── */
.ind-stats { background: linear-gradient(180deg, #F1F3FF 0%, #FAF9FF 100%); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.ind-stats .wrap { padding-top: 74px; padding-bottom: 74px; }
.ind-stats .stat-head { max-width: 48ch; margin-bottom: 46px; }
.ind-stats .stat-head .label { margin-bottom: 16px; }
.ind-stats .stat-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); margin: 0; }
/* Cifra protagonista "0" + secundarias en fichas — un solo dato manda (jerarquía). */
.ind-stats .stat-bento { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 18px; }
.ind-stats .sb-hero { background: var(--surface); border: 1px solid rgba(45,70,247,0.24); border-radius: var(--r-lg); padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 16px 46px rgba(45,70,247,0.10); }
.ind-stats .sb-hero .n { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(5rem, 12vw, 9rem); line-height: 1; letter-spacing: -0.03em; color: var(--electric); }
.ind-stats .sb-hero .hc { margin-top: 16px; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.5; color: var(--ink); max-width: 28ch; font-weight: 500; }
.ind-stats .sb-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
.ind-stats .sb-mini { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px 24px; display: flex; align-items: center; gap: 20px; }
.ind-stats .sb-mini .n { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -0.02em; color: var(--electric); min-width: 92px; flex-shrink: 0; }
.ind-stats .sb-mini .c { font-size: 14px; line-height: 1.45; color: var(--ink-muted); max-width: 26ch; }
.ind-stats .sb-chan .cics { display: flex; gap: 8px; min-width: 92px; flex-shrink: 0; }
.ind-stats .sb-chan .cico { width: 22px; height: 22px; color: var(--electric); flex-shrink: 0; }
.ind-stats .sb-chan .cico svg { width: 100%; height: 100%; display: block; }
@media (max-width: 820px) { .ind-stats .stat-bento { grid-template-columns: 1fr; } .ind-stats .sb-hero { padding: 34px 30px; } }
@media (max-width: 480px) { .ind-stats .sb-mini { flex-direction: column; align-items: flex-start; gap: 8px; } .ind-stats .sb-mini .n, .ind-stats .sb-chan .cics { min-width: 0; } }

/* ── Comparación por rubro (Sin Alba / Con Alba) — formato escénico, no matriz ── */
.ind-vs .vs-head { max-width: 54ch; }
.ind-vs .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.ind-vs .vcol { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 34px 30px; background: var(--surface); }
.ind-vs .vcol.on { border-color: rgba(45,70,247,0.28); box-shadow: 0 14px 44px rgba(45,70,247,0.09); }
.ind-vs .vcol .vhead { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.ind-vs .vcol .vhead h3 { font-size: 1.12rem; margin: 0; }
.ind-vs .vcol.off .vhead h3 { color: var(--ink-muted); }
.ind-vs .vtag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.ind-vs .vcol.off .vtag { background: var(--canvas); color: var(--ink-muted); border: 1px solid var(--hairline); }
.ind-vs .vcol.on .vtag { background: rgba(45,70,247,0.1); color: var(--electric); }
.ind-vs .vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.ind-vs .vlist li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.ind-vs .vlist li .vic { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.ind-vs .vlist li .vic svg { width: 20px; height: 20px; }
.ind-vs .vcol.off .vlist li { color: var(--ink-muted); }
.ind-vs .vcol.off .vic { color: #9AA0B2; }
.ind-vs .vcol.on .vlist li { color: var(--ink); }
.ind-vs .vcol.on .vic { color: var(--electric); }
@media (max-width: 760px) { .ind-vs .vs { grid-template-columns: 1fr; } }

/* ── Promesa de marca de Alba (momento navy) — declarativa, sin gramática de testimonio ── */
.ind-quote .aq2 { position: relative; overflow: hidden; background: var(--navy); border-radius: 28px; padding: clamp(60px, 8vw, 104px) clamp(28px, 6vw, 80px); text-align: center; }
.ind-quote .aq2::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 3px; border-radius: 0 0 999px 999px; background: linear-gradient(90deg, #2D46F7, #6B31F9); }
.ind-quote .aq2::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(58% 90% at 50% -8%, rgba(107,49,249,0.30), transparent 60%), radial-gradient(70% 70% at 50% 130%, rgba(45,70,247,0.20), transparent 62%); }
.ind-quote .aq2 > * { position: relative; z-index: 1; }
.ind-quote .aq2-line { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.14; letter-spacing: -0.015em; margin: 0 auto; max-width: 18ch; }
.ind-quote .aq2-sub { color: #B4BBD0; font-size: clamp(1.04rem, 1.5vw, 1.24rem); line-height: 1.6; margin: 26px auto 0; max-width: 46ch; }
.ind-quote .aq2-sub b { color: #fff; font-weight: 600; }
.ind-quote .aq2-foot { margin-top: 42px; display: inline-flex; align-items: center; gap: 12px; }
.ind-quote .aq2-dot { width: 9px; height: 9px; border-radius: 999px; background: linear-gradient(135deg, #2D46F7, #6B31F9); box-shadow: 0 0 0 4px rgba(107,49,249,0.18); flex-shrink: 0; }
.ind-quote .aq2 .btn-text { color: #fff; font-weight: 600; }
.ind-quote .aq2 .btn-text:hover { color: #C3C9DD; }

/* ── Hero de industria: título estilo Bewe ──
   Estructura: 1-2 líneas estáticas en sans + el término del rubro en su PROPIA
   línea, en Newsreader itálica electric al tamaño del h1. Al tener línea propia
   nunca hay reflow ni hueco: el término entrante hace crossfade SUPERPUESTO al
   saliente (.rot-next absolute), y el punto viaja dentro del término. */
.h1-static { display: block; }
.rotator {
  display: block; position: relative; margin-top: 0.02em;
  min-height: 1.26em;                 /* reserva 1 línea (1.16 + holgura descendentes) */
}
.rot-word {
  font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500;
  letter-spacing: -0.01em; color: var(--electric); display: inline-block;
  /* AMBOS términos (reposo y entrante) anclados igual en absolute top:0 —
     si el de reposo queda en flujo, su línea base difiere unos px del overlay
     y el relevo del crossfade "encaja" con un salto vertical visible. */
  position: absolute; left: 0; top: 0;
  line-height: 1.16; padding-bottom: 0.1em;    /* holgura de descendentes (g, p, y, q) */
  white-space: nowrap;                          /* el término vive SIEMPRE en 1 línea:
                                                   nunca envuelve → nunca reflow. El clamp
                                                   del h1 garantiza que el más largo cabe
                                                   hasta en 320px. */
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
.rot-next { opacity: 0; transform: translateY(0.26em); }
.rot-next.rot-in { opacity: 1; transform: translateY(0); }
.rot-word.rot-out { opacity: 0; transform: translateY(-0.32em); }

/* ── Hero de industria: foto del rubro (duotono suave, fundida en el ambiente) ──
   Card protagonista con aire alrededor. Un halo tintado (::before) sangra fuera
   del card y se funde con el lavado ambiental de la página, como en Bewe. */
/* El halo de la foto sangra fuera del card; contenemos su desborde horizontal
   al ancho del viewport para que no genere scroll lateral en móvil. */
.ind-hero { overflow: hidden; }

/* ── Plantilla de industria: layout del hero (familia compartida) ──
   Las 5 páginas de industria (belleza, restaurantes, inmobiliarias, comercio,
   salud-bienestar) comparten este hero: grid de 2 columnas (término rotatorio +
   escena/foto), tipografía del h1, sub y escena de chat. El contenido es propio
   de cada página; el layout vive aquí para editarse en un solo sitio.
   Único inline que queda por página: lo genuinamente propio (p. ej. el
   grafismo .ind-watermark de belleza). */
.ind-hero { padding: 164px 0 84px; min-height: 100dvh; display: flex; align-items: center; }
.ind-hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; }
.ind-hero h1 { font-size: clamp(1.95rem, 5.4vw, 4.05rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 22px; }
.ind-hero .hero-sub { font-size: clamp(1.06rem, 1.5vw, 1.26rem); color: var(--ink-muted); max-width: 40ch; margin-bottom: 30px; line-height: 1.5; }
.ind-hero .hero-sub b { font-family: 'Inter', sans-serif; font-style: normal; font-weight: 700; color: var(--ink); }
.ind-scene-wrap { max-width: 420px; margin: 0 auto; width: 100%; }
.ind-scene-wrap .ascene { aspect-ratio: 9 / 10; border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(10,13,26,0.08); }
/* Chat de industria/hero = conversación de 3 turnos. El indicador de "escribiendo"
   NO reserva espacio cuando no se está mostrando (display:none en idle), para que
   la ventana no se desborde al aparecer el 3er turno. Scoped a .ind-scene-wrap
   (industrias) y .chan-card (hero de servicios/agentes-ia). */
.ind-scene-wrap .as-typing,
.chan-card .as-typing { display: none; }
.ind-scene-wrap .playing .as-typing.in:not(.a-off),
.chan-card .playing .as-typing.in:not(.a-off) { display: inline-flex; }
.ind-scene-cap { text-align: center; font-size: 12.5px; color: var(--ink-muted); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
@media (max-width: 940px) { .ind-hero { padding: 138px 0 56px; } .ind-hero .wrap { grid-template-columns: 1fr; gap: 44px; } }

/* ── Heroes de servicio: ocupan el viewport y centran su contenido ──
   Mismo criterio que el hero de industria (min-height:100dvh + centrado vertical),
   consolidado aquí porque el comportamiento es idéntico en las 5 páginas; el
   padding/tipografía propios de cada hero siguen inline en su página.
   overflow:hidden contiene el sangrado del grafismo .svc-watermark (evita scroll
   lateral). Dos familias: centradas (1 columna) y split (grid 2-col, como industria).
   El padding-top propio de cada página actúa como colchón bajo el nav fijo. */
.svc-hero, .crm-hero, .auto-hero, .web-hero, .cons-hero {
  min-height: 100dvh; overflow: hidden;
}
.svc-hero, .crm-hero, .auto-hero {          /* centradas: centro vertical del bloque */
  display: flex; flex-direction: column; justify-content: center;
}
.web-hero, .cons-hero {                       /* split: centro vertical del grid */
  display: flex; align-items: center;
}

.ind-photo { position: relative; width: 100%; max-width: 586px; margin: 0 auto; }
.ind-photo::before {
  content: ""; position: absolute; inset: -13% -11%; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 54% at 52% 46%, rgba(45,70,247,0.22), rgba(107,49,249,0.11) 56%, rgba(45,70,247,0) 78%);
  filter: blur(30px);
}
.ind-photo-card {
  position: relative; z-index: 1; aspect-ratio: 4 / 3; border-radius: 30px; overflow: hidden;
  background: linear-gradient(155deg, #1B2668 0%, #2D46F7 55%, #6B31F9 100%);
  box-shadow: 0 34px 74px -24px rgba(45,70,247,0.30), 0 14px 40px rgba(10,13,26,0.10);
}
.ind-photo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: luminosity; opacity: 0.92; filter: contrast(1.04) brightness(1.04);
}
.ind-photo-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(140% 110% at 28% 4%, rgba(45,70,247,0.06), rgba(10,13,26,0.34) 98%);
}
.ind-photo .photo-pill {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: 999px; background: rgba(10,13,26,0.58);
  color: #fff; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500;
}
.ind-photo .photo-pill .dot-live { width: 7px; height: 7px; border-radius: 999px; background: #34d399; flex-shrink: 0; }

/* ── Marquee de sub-rubros del vertical ("negocios como el tuyo") ── */
.rubro-marquee { padding: 8px 0 4px; }
/* La cabecera vive en una columna centrada justo encima de un carrusel
   full-bleed: sin presencia ni aire propio se lee como un caption apretado
   frente a esa franja tan ancha. Le damos peso y respiro para que ancle el
   carrusel en vez de competir con él.
   OJO con el ancho: .sec-head.center global mide 64ch, pero ese ch se calcula
   con el font-size del PADRE (Inter ~16px), NO con el del h2 (mucho mayor).
   Con el h2 grande y el contenedor angosto la frase larga de Salud rompía en
   4 líneas. Override LOCAL (no tocar .sec-head.center global): ensanchamos el
   contenedor a 1040px y bajamos el techo del font a 3.4rem para que las 5
   frases (peor caso: Salud, 68 car.) envuelvan en 2 líneas de 768px a 1536px
   con margen — verificado en Chrome real. Presencia intacta (~54px vs 58px). */
.rubro-marquee .sec-head { margin-bottom: clamp(48px, 5.5vw, 70px); }
.rubro-marquee .sec-head.center { max-width: 1040px; }
.rubro-marquee .sec-head h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); letter-spacing: -0.02em; }
.marq { overflow: hidden; padding: 6px 0; position: relative;
  /* SIN mask-image: enmascarar el contenedor del track animado hace que Chrome
     no rasterice las imágenes que entran en pantalla (cards vacías desfilando —
     verificado en Chrome real 2026-07). El fade de bordes se logra con overlays. */
}
.marq::before, .marq::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8%;
  z-index: 2; pointer-events: none;
}
.marq::before { left: 0; background: linear-gradient(90deg, var(--canvas), transparent); }
.marq::after  { right: 0; background: linear-gradient(270deg, var(--canvas), transparent); }
.marq-track { display: inline-flex; gap: 18px; padding: 10px 0; white-space: nowrap;
  /* El desplazamiento lo lleva el JS con reciclaje de cards (ver app.js):
     la animación CSS de un track de ~8000px deja tiles sin rasterizar en Chrome
     y las cards entraban vacías. Fallback sin JS: animación CSS clásica. */
  animation: marq-scroll 54s linear infinite; }
.marq-track.marq-js { animation: none; }
.marq:hover .marq-track,
.marq:focus-within .marq-track { animation-play-state: paused; }
@keyframes marq-scroll { to { transform: translateX(-50%); } }

/* Cards fotográficas del carrusel: mismo duotono electric→violet que los heroes */
.rubro-card {
  position: relative; flex-shrink: 0; width: 212px; aspect-ratio: 4 / 5;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #141C57 0%, #2D46F7 52%, #6B31F9 100%);
  box-shadow: 0 14px 34px rgba(10,13,26,0.16);
}
.rubro-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* El duotono electric→violet + viñeta está HORNEADO en los archivos
     (scripts/bake_duotone). Nada de mix-blend-mode ni filter aquí: las capas
     con blend/filter dentro del track animado por transform NO se rasterizan
     al entrar en pantalla en Chrome (cards vacías). Imagen plana = pinta siempre. */
}
/* Barra inferior con scrim para legibilidad del label */
.rubro-card .rc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 15px 13px; color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem;
  letter-spacing: -0.015em; line-height: 1.2;
  background: linear-gradient(to top, rgba(10,13,26,0.78) 6%, rgba(10,13,26,0.0) 100%);
}
@media (max-width: 640px) {
  .rubro-card { width: 172px; border-radius: 17px; }
  .rubro-card .rc-cap { font-size: 0.94rem; padding: 22px 13px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .marq { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marq-track { animation: none; }
}

/* ── Sección "cómo Alba lo resuelve": checklist + escena de chat reubicada ── */
.ind-solve .solve-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 50px; align-items: center; }
.ind-solve .solve-grid .checklist li { font-size: 15.5px; }
.ind-solve .ind-scene-wrap { max-width: 400px; }
@media (max-width: 900px) { .ind-solve .solve-grid { grid-template-columns: 1fr; gap: 40px; } .ind-solve .ind-scene-wrap { margin: 0 auto; } }

/* ── PROBLEMA · split editorial (páginas de servicio) ─────────────────────────
   El gancho de dolor (H2 + párrafo) a la izquierda; a la derecha un artefacto
   "antes": una lista tono-sobre-tono, apagada, de lo que hoy se te escapa. Es
   el reverso del artefacto del hero, que muestra el "después" resuelto y con
   color. Mismo sistema en las 5 páginas; solo cambia el contenido por servicio.
   Antes: sec-head suelto a la izquierda dejaba media pantalla vacía a la derecha. */
.prob-split .wrap { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,0.96fr); gap: clamp(40px,4.6vw,64px); align-items: center; }
.prob-split .sec-head { margin-bottom: 0; max-width: 44ch; }
.prob-split .sec-head p { max-width: 42ch; }

.prob-art { position: relative; }
.prob-cap { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-muted); opacity: 0.72; }
.prob-cap::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.pb-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 8px; box-shadow: 0 1px 3px rgba(10,13,26,0.04), 0 20px 44px rgba(10,13,26,0.05); }
.pb-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.pb-panel-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em; color: var(--ink); }
.pb-panel-meta { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }

.pb-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; }
.pb-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.pb-item .ic { flex: none; width: 34px; height: 34px; border-radius: 999px; background: #EEF0F5;
  color: #9AA0B0; display: flex; align-items: center; justify-content: center; }
.pb-item .ic svg { width: 17px; height: 17px; }
.pb-item .tx { min-width: 0; flex: 1; }
.pb-item .tx b { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-item .tx span { display: block; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-muted);
  line-height: 1.3; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-flag { flex: none; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--ink-muted); background: #EEF0F5; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
/* El renglón "sin resolver" que remata el artefacto: apagado, con borde punteado */
.pb-item.pb-open { background: transparent; border-style: dashed; }
.pb-item.pb-open .ic { background: transparent; border: 1px dashed #C7CBD6; }

@media (max-width: 940px) {
  .prob-split .wrap { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .prob-split .sec-head, .prob-split .sec-head p { max-width: 60ch; }
  .prob-art { max-width: 440px; }
}
