/* ═══════════════════════════════════════════════════════════
   BREK — Sistema de diseño 2.0
   Minimalismo editorial cálido · papel + tinta + naranja BREK
   Compartido por todas las páginas de la landing.
═══════════════════════════════════════════════════════════ */

/* ── Fuentes ─────────────────────────────────────────────── */
@font-face { font-family: 'Geom Graphic'; src: url('../fonts/Geom_Graphic_Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geom Graphic'; src: url('../fonts/Geom_Graphic_SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geom Graphic'; src: url('../fonts/Geom_Graphic_Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('../fonts/OpenSauceOne-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('../fonts/OpenSauceOne-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('../fonts/OpenSauceOne-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('../fonts/OpenSauceOne-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sauce One'; src: url('../fonts/OpenSauceOne-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --paper:    #FAF8F4;
  --paper-2:  #F1EEE7;
  --card:     #FFFFFF;
  --ink:      #18140E;
  --ink-2:    #565045;
  --ink-3:    #8B8376;
  --line:     rgba(24, 20, 14, 0.10);
  --line-2:   rgba(24, 20, 14, 0.16);

  --brand:       #FF882F;
  --brand-deep:  #C25400;   /* naranja accesible para texto chico sobre papel */
  --brand-soft:  rgba(255, 136, 47, 0.10);
  --brand-12:    rgba(255, 136, 47, 0.12);
  --brand-25:    rgba(255, 136, 47, 0.25);

  --night:       #16120C;
  --night-2:     #201A12;
  --night-line:  rgba(255, 255, 255, 0.09);
  --night-text:  #F0EBE3;
  --night-muted: #A89E8F;

  --ok: #1E9E55;

  --font-display: 'Geom Graphic', sans-serif;
  --font-body: 'Open Sauce One', -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(24,20,14,.04), 0 8px 28px -12px rgba(24,20,14,.10);
  --shadow-float: 0 2px 6px rgba(24,20,14,.05), 0 32px 64px -24px rgba(24,20,14,.22);
  --radius: 16px;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand); color: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #CFC8BC; border-radius: 5px; border: 2px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── Layout ──────────────────────────────────────────────── */
.wrap { max-width: 1400px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 36px); }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 36px); }

section { position: relative; }

/* Encabezado editorial de sección: regla + nº + label */
.sec-head { border-top: 1px solid var(--line-2); padding-top: 26px; }
.eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-deep);
}
.eyebrow .idx { font-family: var(--font-display); font-weight: 600; color: var(--ink-3); letter-spacing: 0.08em; }
.band-dark .eyebrow { color: var(--brand); }
.band-dark .eyebrow .idx { color: var(--night-muted); }
.band-dark .sec-head { border-top-color: var(--night-line); }

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-top: 18px;
  text-wrap: balance;
}
.sec-title .accent { color: var(--brand-deep); }
.band-dark .sec-title .accent { color: var(--brand); }
.sec-sub {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  max-width: 60ch;
  text-wrap: pretty;
}

/* Bandas oscuras (momentos de anclaje) */
.band-dark { background: var(--night); color: var(--night-text); }
.band-dark .sec-sub { color: var(--night-muted); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 16px 28px; border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.99); }
.btn svg { flex-shrink: 0; }

.btn-brand { background: var(--brand); color: var(--night); box-shadow: 0 1px 2px rgba(194,84,0,.25), 0 10px 28px -10px rgba(255,136,47,.55); }
.btn-brand:hover { transform: translateY(-2px); background: #FF9445; box-shadow: 0 2px 4px rgba(194,84,0,.25), 0 16px 36px -10px rgba(255,136,47,.65); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); background: #2A241B; }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.band-dark .btn-ghost { border-color: rgba(255,255,255,.22); color: var(--night-text); }
.band-dark .btn-ghost:hover { border-color: rgba(255,255,255,.55); }

.btn-sm { padding: 11px 20px; font-size: 14px; }

/* Link con flecha */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--brand-deep);
}
.arrow-link svg { transition: transform .25s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ── Barra de anuncio ────────────────────────────────────── */
.annbar {
  position: relative; z-index: 70;
  background: var(--night); color: rgba(255,255,255,.78);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 38px; padding: 6px 16px;
  font-size: 12.5px; text-align: center;
}
.annbar b { color: var(--brand); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.annbar a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--brand); padding-bottom: 1px; transition: color .2s; white-space: nowrap; }
.annbar a:hover { color: var(--brand); }
.annbar .ann-s { display: none; }
@media (max-width: 640px) {
  .annbar .ann-l { display: none; }
  .annbar .ann-s { display: inline; }
}

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.68);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(250, 248, 244, 0.80); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px;
}
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 52px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s;
  position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .3s var(--ease-out); border-radius: 2px;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Hamburguesa + menú mobile */
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger svg { stroke: var(--ink); }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 0 22px;
}
.mobile-menu.open { display: block; }
.mobile-menu > a {
  display: block; padding: 14px clamp(20px, 4.5vw, 36px);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-cta { margin: 18px clamp(20px, 4.5vw, 36px) 0; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ── Animaciones de aparición ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .42s; }
.reveal[data-d="5"] { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { overflow: hidden; }
/* Grilla de plano técnico que se desvanece */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 0%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 72% at 50% 0%, black 0%, transparent 78%);
}
/* ── Grilla viva: spotlight de mouse + pulsos de celdas ──
   brek.js inyecta .grid-glow y .grid-cell dentro de .hero-grid,
   .cta-grid y .band-grid. Las máscaras del contenedor recortan
   ambas capas igual que a las líneas de fondo. */
.grid-glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(194, 84, 0, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 84, 0, 0.45) 1px, transparent 1px),
    linear-gradient(rgba(255, 136, 47, 0.07), rgba(255, 136, 47, 0.07));
  background-size: 64px 64px, 64px 64px, 100% 100%;
  opacity: 0;
  transition: opacity .5s ease;
  -webkit-mask-image: radial-gradient(300px circle at var(--gx, -999px) var(--gy, -999px), black, transparent 74%);
  mask-image: radial-gradient(300px circle at var(--gx, -999px) var(--gy, -999px), black, transparent 74%);
}
.grid-live.mouse-on .grid-glow { opacity: 1; }
.band-dark .grid-glow {
  background-image:
    linear-gradient(rgba(255, 136, 47, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 136, 47, 0.42) 1px, transparent 1px),
    linear-gradient(rgba(255, 136, 47, 0.08), rgba(255, 136, 47, 0.08));
}
/* Grilla genérica para bandas oscuras (ej. sección IA) */
.band-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, black 0%, transparent 75%);
  opacity: .55;
}

/* ── Campo de puntos interactivo (.ai-dotfield) ───────────────
   Trama de puntos coherente con .dot-grid-* + spotlight cálido que
   sigue al cursor (lo mueve brek.js vía --mx/--my) + latido ambiental.
   Reemplaza a las grillas cuadriculadas en heroes y bandas oscuras.
     · por defecto : puntos blancos (bandas oscuras)
     · .is-light   : puntos oscuros para fondos claros (hueso)
     · .from-top   : máscara que desvanece sólo desde arriba (heroes) */
.ai-dotfield {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  /* Dos elipses sumadas: la trama entra desde arriba y abajo, se desvanece al centro */
  -webkit-mask-image:
    radial-gradient(ellipse 90% 58% at 50% 0%, #000 0%, transparent 78%),
    radial-gradient(ellipse 90% 58% at 50% 100%, #000 0%, transparent 78%);
  mask-image:
    radial-gradient(ellipse 90% 58% at 50% 0%, #000 0%, transparent 78%),
    radial-gradient(ellipse 90% 58% at 50% 100%, #000 0%, transparent 78%);
  opacity: .5;
}
/* Capa naranja: misma trama, revelada bajo el cursor */
.ai-dotfield::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,136,47,0.72) 1.4px, transparent 2px);
  background-size: 28px 28px;
  opacity: 0; transition: opacity .55s ease;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 62%);
  mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 62%);
}
/* Halo cálido difuso que acompaña al cursor */
.ai-dotfield::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(255,136,47,0.07), transparent 70%);
  opacity: 0; transition: opacity .55s ease;
}
.ai-dotfield.is-hover::before,
.ai-dotfield.is-hover::after { opacity: 1; }

/* Variante clara: puntos oscuros sobre fondo hueso */
.ai-dotfield.is-light {
  background-image: radial-gradient(circle, rgba(24,20,14,0.20) 1px, transparent 1px);
}
.ai-dotfield.is-light::before {
  background-image: radial-gradient(circle, rgba(255,136,47,0.85) 1.5px, transparent 2px);
}
.ai-dotfield.is-light::after {
  background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(255,136,47,0.10), transparent 70%);
}

/* Máscara para heroes: la trama entra desde arriba y baja */
.ai-dotfield.from-top {
  -webkit-mask-image: radial-gradient(ellipse 92% 70% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 92% 70% at 50% 0%, #000 0%, transparent 80%);
}

@media (prefers-reduced-motion: no-preference) {
  .ai-dotfield { animation: ai-dot-breathe 8s ease-in-out infinite; }
}
@keyframes ai-dot-breathe {
  0%, 100% { opacity: .36; }
  50%      { opacity: .56; }
}

/* Paleta cálida para bandas oscuras con .ai-band:
   menos marrón apagado, más profundidad (negros) + brillos naranjas */
.band-dark.ai-band {
  --night-2:    #1f1711;
  --night-line: rgba(255,170,110,0.13);
  background:
    radial-gradient(130% 95% at 50% -18%, rgba(255,138,48,0.16), rgba(255,108,28,0.05) 38%, transparent 64%),
    radial-gradient(85% 65% at 88% 118%, rgba(255,120,40,0.08), transparent 56%),
    linear-gradient(180deg, #1b1209 0%, #100b07 50%, #0a0705 100%);
}

/* Resplandor cálido flotante */
.hero-glow {
  position: absolute; pointer-events: none;
  width: 720px; height: 520px; left: 50%; top: -200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,136,47,.16) 0%, transparent 62%);
  filter: blur(50px);
  animation: glow-drift 16s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translateX(-58%) translateY(0); }
  to   { transform: translateX(-42%) translateY(40px); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title .accent { color: var(--brand-deep); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-deep);
  border: 1px solid var(--brand-25); background: var(--brand-soft);
  border-radius: 999px; padding: 8px 16px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255,136,47,.5); animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255,136,47,.45); }
  70% { box-shadow: 0 0 0 9px rgba(255,136,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,136,47,0); }
}
.hero-sub {
  color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7;
  max-width: 56ch; text-wrap: pretty;
}

/* ── Showcase (carrusel de pantallas) ────────────────────── */
.showcase { position: relative; }
.showcase-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.showcase-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
}
.showcase-chrome .dots { display: flex; gap: 6px; }
.showcase-chrome .dots span { width: 10px; height: 10px; border-radius: 50%; background: #E5E0D6; }
.showcase-chrome .addr {
  flex: 1; max-width: 380px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--paper-2); border-radius: 8px;
  font-size: 12px; color: var(--ink-3); padding: 5px 12px;
  font-weight: 500; letter-spacing: .02em;
}
.showcase-chrome .addr svg { opacity: .6; }
.showcase-stage { position: relative; aspect-ratio: 16 / 9.6; background: var(--paper-2); }
@media (max-width: 640px) { .showcase-stage { aspect-ratio: 4 / 3.4; } }

.shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.012); transition: opacity .65s ease, transform 1.1s var(--ease-out); pointer-events: none; }
.shot.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot img.missing { display: none; }

/* Placeholder elegante mientras no hay captura real */
.shot-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--brand-soft) 0%, transparent 60%),
    linear-gradient(180deg, #FDFCFA 0%, #F4F1EA 100%);
}
.shot-ph::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 85%);
  opacity: .5;
}
.shot-ph .ph-icon {
  position: relative;
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-card);
}
.shot-ph .ph-name { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.shot-ph .ph-desc { position: relative; color: var(--ink-2); font-size: .92rem; max-width: 44ch; line-height: 1.55; }

/* Tabs del showcase */
.showcase-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
}
.sc-tab {
  position: relative;
  font-size: 13.5px; font-weight: 700; color: var(--ink-3);
  padding: 9px 16px 12px; border-radius: 10px;
  transition: color .25s, background .25s;
  overflow: hidden;
}
.sc-tab:hover { color: var(--ink); background: rgba(24,20,14,.04); }
.sc-tab.active { color: var(--ink); }
.sc-tab .bar {
  position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--line-2); border-radius: 2px; overflow: hidden;
}
.sc-tab .bar i {
  position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
  background: var(--brand); display: block;
}
.sc-tab.active .bar i { animation: tab-progress var(--sc-dur, 7s) linear forwards; }
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.showcase.paused .sc-tab.active .bar i { animation-play-state: paused; }

/* ── Ticker de rubros ────────────────────────────────────── */
.ticker { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.ticker-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: ticker-scroll 36s linear infinite;
  padding-block: 4px;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 40px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink-3); white-space: nowrap; letter-spacing: .01em;
}
.ticker-item svg { color: var(--brand); opacity: .85; }

/* ── Tarjetas de módulo ──────────────────────────────────── */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mod-grid { grid-template-columns: 1fr; } }

.mod-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 22px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  overflow: hidden;
}
.mod-card::after {
  content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.mod-card:hover::after { transform: scaleX(1); }
.mod-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
  margin-bottom: 16px;
  transition: transform .35s var(--ease-out);
}
.mod-card:hover .mod-ico { transform: scale(1.08) rotate(-3deg); }
.mod-name { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.005em; margin-bottom: 6px; }
.mod-desc { color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.mod-num { position: absolute; top: 20px; right: 20px; font-family: var(--font-display); font-weight: 600; font-size: .78rem; color: var(--ink-3); opacity: .55; letter-spacing: .06em; }

/* ── Split features (Dashboard / Reportes / Fiscal) ──────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
.checklist li b { color: var(--ink); font-weight: 700; }
.checklist .ck {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
}
.band-dark .checklist li { color: var(--night-muted); }
.band-dark .checklist li b { color: var(--night-text); }
.band-dark .checklist .ck { background: rgba(255,136,47,.14); color: var(--brand); }

/* Panel visual genérico (composiciones CSS) */
.vispanel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.vispanel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .06em; text-transform: uppercase;
}
.vispanel-head .live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: 11.5px; letter-spacing: .04em; }
.vispanel-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse-dot 2.4s infinite; }

/* KPI cards dentro de paneles */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 14px 12px;
}
.kpi .k-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kpi .k-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.45rem); margin-top: 4px; letter-spacing: -.01em; }
.kpi .k-delta { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.kpi .k-delta.up { color: var(--ok); }
.kpi .k-delta.muted { color: var(--ink-3); font-weight: 500; }

/* Barras de gráfico simple */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars i {
  flex: 1; border-radius: 6px 6px 3px 3px; display: block;
  background: linear-gradient(180deg, var(--brand-25), var(--brand-12));
  border: 1px solid var(--brand-25);
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1s var(--ease-out);
}
.bars i.hot { background: linear-gradient(180deg, var(--brand), #FF9D55); border-color: var(--brand); }
.visible .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .07s; } .bars i:nth-child(3) { transition-delay: .14s; }
.bars i:nth-child(4) { transition-delay: .21s; } .bars i:nth-child(5) { transition-delay: .28s; }
.bars i:nth-child(6) { transition-delay: .35s; } .bars i:nth-child(7) { transition-delay: .42s; }

/* Medidor punto de equilibrio */
.gauge-line { position: relative; height: 10px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); overflow: visible; }
.gauge-line .fill {
  position: absolute; inset: 0; width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #FFB376, var(--brand));
  transition: width 1.4s var(--ease-out) .2s;
}
.visible .gauge-line .fill { width: var(--fill, 72%); }
.gauge-line .marker {
  position: absolute; top: -7px; bottom: -7px; left: var(--mark, 62%); width: 2px;
  background: var(--ink);
}
.gauge-line .marker::after {
  content: 'Equilibrio'; position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}

/* Filas de lista dentro de panel (reportes, alertas) */
.prow {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.prow:last-child { border-bottom: none; }
.prow .p-ico { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-deep); }
.prow .p-name { font-weight: 700; font-size: .88rem; }
.prow .p-sub { color: var(--ink-3); font-size: .78rem; }
.prow .p-end { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip.ok { background: rgba(30,158,85,.1); color: var(--ok); border-color: rgba(30,158,85,.25); }
.chip.brand { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-25); }
.chip.warn { background: rgba(217,119,6,.1); color: #B45309; border-color: rgba(217,119,6,.25); }

/* ── Pasos numerados ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-soft); border: 1px solid var(--brand-25);
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
.band-dark .step { background: var(--night-2); border-color: var(--night-line); }
.band-dark .step p { color: var(--night-muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item.open { border-color: var(--brand-25); box-shadow: var(--shadow-card); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.005em;
}
.faq-q .fi {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
  transition: transform .35s var(--ease-out), background .3s;
}
.faq-item.open .fi { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-2); font-size: .93rem; line-height: 1.7; }

/* ── Footer ──────────────────────────────────────────────── */
.foot { background: var(--night); color: var(--night-muted); }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--brand); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.foot-title { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--night-text); margin-bottom: 16px; }
.foot-list { display: grid; gap: 10px; font-size: .9rem; }
.foot-bottom {
  border-top: 1px solid var(--night-line);
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem;
}

/* ── Botón flotante WhatsApp ─────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 55;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(24,20,14,.3);
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: var(--night-2); box-shadow: 0 10px 28px rgba(24,20,14,.35); }

/* ── Utilidades ──────────────────────────────────────────── */
.center { text-align: center; }
.mx { margin-inline: auto; }
.stat-num { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.divider-soft { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: none; }
.band-dark .divider-soft { background: linear-gradient(90deg, transparent, var(--night-line), transparent); }
