/* ============================================================
   GORAGI V7 — "El Curador Invisible"
   Sistema: Manrope + Inter, surface tokens, sin bordes
   Paleta: surface #f8f9fa · primary #0e1c2b · cyan #4cd6fb
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Surfaces (jerarquía por nesting) ── */
  --surface:                  #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low:    #f3f4f5;
  --surface-container:        #edeeef;
  --surface-container-high:   #e7e8e9;
  --surface-container-highest:#e1e3e4;

  /* ── Texto ── */
  --on-surface:           #191c1d;
  --on-surface-variant:   #454652;
  --on-surface-muted:     #767683;

  /* ── Primary (deep navy) ── */
  --primary:              #0e1c2b;
  --primary-container:    #233141;
  --primary-fixed:        #d6e4f9;
  --primary-fixed-dim:    #bac8dc;
  --on-primary:           #ffffff;

  /* ── Secondary (azul-gris medio) ── */
  --secondary:            #47607e;
  --secondary-fixed:      #d1e4ff;
  --secondary-fixed-dim:  #afc9ea;

  /* ── Tertiary (cyan — solo IA activa / éxito) ── */
  --tertiary:             #001e27;
  --tertiary-container:   #003541;
  --tertiary-fixed:       #b3ebff;
  --tertiary-fixed-dim:   #4cd6fb;
  --on-tertiary-fixed-variant: #004e5f;

  /* ── Accent (amber complementario, calidez sutil) ── */
  --accent:               #f59e0b;
  --accent-soft:          #fde68a;
  --accent-deep:          #b45309;
  --accent-bg:            rgba(245,158,11,0.10);

  /* ── Ghost border (max 15% opacity) ── */
  --outline-variant:      #c6c5d4;
  --ghost-border:         rgba(198, 197, 212, 0.15);

  /* ── Radii ── */
  --radius-sm:  0.375rem;  /* 6px */
  --radius-md:  0.5rem;    /* 8px  — botones */
  --radius-lg:  0.75rem;   /* 12px */
  --radius-xl:  1rem;      /* 16px — cards */
  --radius-2xl: 1.25rem;   /* 20px — large cards */
  --radius-3xl: 1.5rem;    /* 24px */

  /* ── Sombras atmosféricas (nunca negro puro) ── */
  --shadow-soft:   0 8px 24px rgba(25, 28, 29, 0.04);
  --shadow:        0 20px 40px rgba(25, 28, 29, 0.05);
  --shadow-lg:     0 32px 64px rgba(25, 28, 29, 0.07);
  --shadow-glow:   0 0 50px rgba(76, 214, 251, 0.15);

  /* ── Glass ── */
  --glass-blur: 20px;
  --glass-bg:   rgba(248, 249, 250, 0.78);

  /* ── Tipografía ── */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-icon:    'Material Symbols Outlined';
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id], footer[id] { scroll-margin-top: 80px; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; }

/* ── Material Symbols icon ── */
.icon {
  font-family: var(--font-icon);
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.icon--filled { font-variation-settings: 'FILL' 1, 'wght' 300; }
.icon--thin   { font-variation-settings: 'FILL' 0, 'wght' 200; }

/* ── Container ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Tipografía utilities ────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed-variant);
  padding: 7px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.25s, opacity 0.2s, background 0.25s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--lg { padding: 15px 32px; font-size: 15px; }

/* Primario — gradiente sutil primary → primary-container */
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  box-shadow: 0 8px 24px rgba(14, 28, 43, 0.18), 0 2px 4px rgba(14, 28, 43, 0.12);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(14, 28, 43, 0.25), 0 4px 8px rgba(14, 28, 43, 0.15);
}
.btn--primary:active { transform: translateY(0); }

/* Ghost — fondo subtle, sin borde sólido */
.btn--ghost {
  background: transparent;
  color: var(--on-surface);
}
.btn--ghost:hover {
  background: var(--surface-container-high);
}

/* Tertiary — solo texto + icono, subrayado en hover */
.btn--tertiary {
  background: transparent;
  color: var(--primary);
  padding: 12px 8px;
}
.btn--tertiary:hover {
  color: var(--tertiary-container);
}
.btn--tertiary .icon { font-size: 22px; }

/* Outline — white card style (referencia Builderflow "Explore pages") */
.btn--outline {
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  box-shadow:
    0 0 0 1px rgba(25,28,29,0.07),
    0 1px 3px rgba(25,28,29,0.04),
    0 8px 24px rgba(25,28,29,0.06);
}
.btn--outline:hover {
  background: var(--surface-container-lowest);
  box-shadow:
    0 0 0 1px rgba(14,28,43,0.16),
    0 4px 12px rgba(25,28,29,0.06),
    0 16px 32px rgba(25,28,29,0.10);
  transform: translateY(-1px);
}
.btn--outline:active { transform: translateY(0); }
.btn--outline .icon { color: var(--on-surface-variant); font-size: 20px; }

/* Outline white (para CTAs sobre fondo oscuro) */
.btn--outline-w {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.btn--outline-w:hover { background: rgba(255,255,255,0.12); }

/* ── Version bar (top, navy — like V2) ────────────── */
.version-bar {
  position: relative;
  z-index: 110;
  background: var(--primary);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 28px;
  font-family: var(--font-body);
  letter-spacing: 0.005em;
}
.version-bar a {
  color: var(--tertiary-fixed-dim);
  font-weight: 500;
  transition: color 0.2s;
}
.version-bar a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   ① NAV — sticky navy (color V2 sobre V7)
══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(14,28,43,0.96) 0%, rgba(14,28,43,0.92) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur));
          backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(14,28,43,0.98) 0%, rgba(14,28,43,0.95) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06),
    0 12px 32px rgba(14,28,43,0.18);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  margin-right: 56px;
  transition: transform 0.2s;
}
.nav__logo:hover { transform: translateY(-1px); }
.nav__logo-mark {
  flex-shrink: 0;
  filter:
    drop-shadow(0 4px 14px rgba(0,0,0,0.32))
    drop-shadow(0 0 22px rgba(76,214,251,0.18));
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.62);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
.nav__links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}
.nav__links a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav__cta .btn { padding: 11px 22px; font-size: 13.5px; }

/* Botones del nav — adaptados a fondo navy */
.nav .btn--ghost {
  color: rgba(255,255,255,0.78);
}
.nav .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.nav .btn--primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow:
    0 4px 14px rgba(0,0,0,0.18),
    inset 0 -1px 0 rgba(14,28,43,0.06);
}
.nav .btn--primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.22),
    inset 0 -1px 0 rgba(14,28,43,0.06);
}

/* ══════════════════════════════════════════════════════════
   ② HERO — centrado · mesh gradient · floating chips · trust strip
══════════════════════════════════════════════════════════ */
.hero {
  padding: 96px 0 96px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

/* Mesh gradient — multi-layer atmosférico (cyan + navy + amber) */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% 0 -10%;
  background:
    radial-gradient(ellipse 900px 700px at 82% 8%,  rgba(76,214,251,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 6% 78%,  rgba(245,158,11,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 800px 600px at 18% 22%, rgba(35,49,65,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 1100px 800px at 50% 110%, rgba(14,28,43,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 92% 62%, rgba(76,214,251,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 500px 380px at 30% 50%, rgba(35,49,65,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Dot grid pattern — sutil "graph paper" */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(25,28,29,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 50% at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  color: var(--on-surface);
  max-width: 18ch;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 640px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── Live activity pill (navy presence) ── */
.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(14,28,43,0.96) 0%, rgba(35,49,65,0.94) 100%);
  color: rgba(255,255,255,0.92);
  padding: 11px 22px 11px 18px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 16px;
  box-shadow:
    0 16px 40px rgba(14,28,43,0.22),
    0 4px 12px rgba(14,28,43,0.14),
    inset 0 1px 0 rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero__live-dot {
  position: relative;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero__live-num {
  color: var(--tertiary-fixed-dim);
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin: 0 1px;
}
.hero__live-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.18);
  margin: 0 4px;
}
.hero__live-amber {
  color: var(--accent-soft);
  font-weight: 700;
}

/* ── Floating glass chips around the hero ── */
.float-chip {
  position: absolute;
  z-index: 1;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 100px;
  padding: 11px 18px 11px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--primary);
  box-shadow:
    0 16px 40px rgba(25,28,29,0.08),
    0 4px 12px rgba(25,28,29,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  animation: float 7s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.float-chip__dot--cyan {
  background: var(--tertiary-fixed-dim);
  box-shadow: 0 0 0 4px rgba(76,214,251,0.22);
}
.float-chip .icon {
  font-size: 15px;
  color: var(--primary);
}
.float-chip--1 { top: 18%; left: 4%;  animation-delay: 0s; }
.float-chip--2 { top: 11%; right: 5%; animation-delay: 1.4s; }
.float-chip--3 { bottom: 32%; left: 7%; animation-delay: 2.8s; }
.float-chip--4 { bottom: 22%; right: 4%; animation-delay: 0.7s; }

/* Dark navy variant — adds color contrast against white bg */
.float-chip--dark {
  background: linear-gradient(135deg, rgba(14,28,43,0.94) 0%, rgba(35,49,65,0.92) 100%);
  color: rgba(255,255,255,0.96);
  box-shadow:
    0 16px 40px rgba(14,28,43,0.28),
    0 4px 12px rgba(14,28,43,0.18),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.float-chip--dark .icon { color: var(--tertiary-fixed-dim); }
.float-chip--dark .float-chip__dot--cyan {
  background: var(--tertiary-fixed-dim);
  box-shadow: 0 0 0 4px rgba(76,214,251,0.32);
}

/* Amber variant — warmth accent */
.float-chip--amber .icon { color: var(--accent); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

/* ── Trust strip below hero ── */
.hero__trust {
  position: relative;
  z-index: 2;
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero__trust-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}
.hero__trust-logos {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--on-surface-muted);
  opacity: 0.55;
  transition: opacity 0.25s, transform 0.25s;
}
.hero__trust-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.hero__trust-logo svg {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ③ SECTORES — dark photo cards con gradiente único
══════════════════════════════════════════════════════════ */
.sectors {
  padding: 128px 0 120px;
  background: var(--surface-container-low);
  position: relative;
}

.sectors__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.sectors__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--on-surface);
  margin-bottom: 20px;
}
.sectors__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid 4 × 2 */
.sectors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Sector card ── */
.sector-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  box-shadow:
    0 1px 2px rgba(25,28,29,0.04),
    0 20px 40px rgba(25,28,29,0.08);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
  text-decoration: none;
}

/* Subtle dot pattern overlay */
.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}
/* Bottom dark overlay para legibilidad */
.sector-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.sector-card > * {
  position: relative;
  z-index: 1;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(25,28,29,0.06),
    0 36px 64px rgba(25,28,29,0.14),
    0 0 40px rgba(76,214,251,0.18);
}
.sector-card:hover .sector-card__visual .icon {
  opacity: 0.32;
  transform: scale(1.06);
}

/* Visual area — large watermark icon */
.sector-card__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.sector-card__visual .icon {
  font-size: 96px;
  color: #ffffff;
  opacity: 0.20;
  transition: opacity 0.45s, transform 0.45s;
  font-variation-settings: 'FILL' 0, 'wght' 200;
}

/* Body */
.sector-card__body { flex-shrink: 0; }
.sector-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #ffffff;
}
.sector-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.68);
}

/* Sector themes — gradientes únicos por industria */
.sector-card--banca        { background: linear-gradient(160deg, #1e3a8a 0%, #0c1a3e 100%); }
.sector-card--salud        { background: linear-gradient(160deg, #134e4a 0%, #0a1f1c 100%); }
.sector-card--seguros      { background: linear-gradient(160deg, #4338ca 0%, #1a1740 100%); }
.sector-card--comercio     { background: linear-gradient(160deg, #c2410c 0%, #2e0e02 100%); }
.sector-card--hospitalidad { background: linear-gradient(160deg, #b45309 0%, #2a1300 100%); }
.sector-card--telecom      { background: linear-gradient(160deg, #0369a1 0%, #062035 100%); }
.sector-card--gobierno     { background: linear-gradient(160deg, #475569 0%, #0f172a 100%); }
.sector-card--servicios    { background: linear-gradient(160deg, #15803d 0%, #052012 100%); }

/* ══════════════════════════════════════════════════════════
   ④ STATS — 4 columnas, números display + sufijo amber
══════════════════════════════════════════════════════════ */
.stats {
  padding: 112px 0 128px;
  background: var(--surface);
  position: relative;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.8vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__suffix {
  color: var(--accent);
  font-size: 0.46em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat__label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.005em;
  margin-top: 4px;
}

.stat__desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 240px;
}

/* ══════════════════════════════════════════════════════════
   ⑤ CASOS DE USO — 8 cards dark con mini-UI única
══════════════════════════════════════════════════════════ */
.cases {
  padding: 128px 0 120px;
  background: var(--surface-container-low);
  position: relative;
}

.cases__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cases__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--on-surface);
}
.cases__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 620px;
}

/* Soft eyebrow para section labels (no cyan) */
.eyebrow-pill--soft {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}

/* Grid 4 × 2 */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Case card ── */
.case-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background: linear-gradient(165deg, #1c2840 0%, #0a1426 100%);
  box-shadow:
    0 1px 2px rgba(25,28,29,0.04),
    0 20px 40px rgba(25,28,29,0.08);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}
.case-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(76,214,251,0.18) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.case-card > * { position: relative; z-index: 1; }

.case-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(25,28,29,0.06),
    0 36px 64px rgba(25,28,29,0.14),
    0 0 40px rgba(76,214,251,0.16);
}

.case-card__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 0;
}

.case-card__body { flex-shrink: 0; }
.case-card__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 6px;
  color: #ffffff;
}
.case-card__desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}

/* ── Mini UI #1: Chat (Atención al cliente) ── */
.cu-chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cu-msg {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 78%;
  line-height: 1.4;
}
.cu-msg--user {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.78);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.cu-msg--bot {
  background: rgba(76,214,251,0.10);
  color: var(--tertiary-fixed-dim);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.cu-typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 3px;
  padding: 9px 14px;
  background: rgba(76,214,251,0.08);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.cu-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tertiary-fixed-dim);
  animation: typing-dot 1.4s ease-in-out infinite;
}
.cu-typing span:nth-child(2) { animation-delay: 0.15s; }
.cu-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* ── Mini UI #2: Waveform (Automatización) ── */
.cu-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  width: 100%;
}
.cu-wave span {
  width: 4px;
  background: var(--tertiary-fixed-dim);
  border-radius: 2px;
  animation: wave-anim 1.2s ease-in-out infinite alternate;
}
.cu-wave span:nth-child(1) { height: 24%; animation-delay: 0s; }
.cu-wave span:nth-child(2) { height: 56%; animation-delay: 0.1s; }
.cu-wave span:nth-child(3) { height: 38%; animation-delay: 0.2s; }
.cu-wave span:nth-child(4) { height: 80%; animation-delay: 0.05s; }
.cu-wave span:nth-child(5) { height: 100%; animation-delay: 0.15s; }
.cu-wave span:nth-child(6) { height: 72%; animation-delay: 0.25s; }
.cu-wave span:nth-child(7) { height: 48%; animation-delay: 0.1s; }
.cu-wave span:nth-child(8) { height: 60%; animation-delay: 0.2s; }
.cu-wave span:nth-child(9) { height: 32%; animation-delay: 0.05s; }
.cu-wave span:nth-child(10) { height: 22%; animation-delay: 0.15s; }
@keyframes wave-anim {
  from { transform: scaleY(0.45); }
  to   { transform: scaleY(1);    }
}

/* ── Mini UI #3: Calendar tile (Agendado) ── */
.cu-cal {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.cu-cal__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cu-cal__weekday {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tertiary-fixed-dim);
  text-transform: uppercase;
}
.cu-cal__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.cu-cal__time {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cu-cal__time::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}

/* ── Mini UI #4: Percent ring (Calificación) ── */
.cu-percent {
  position: relative;
  width: 110px; height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.cu-percent svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.cu-percent__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}
.cu-percent__num small {
  font-size: 14px;
  color: var(--tertiary-fixed-dim);
}
.cu-percent__label {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary-fixed-dim);
  margin-top: 4px;
}

/* ── Mini UI #5: 24/7 + status (Fuera de horario) ── */
.cu-247 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cu-247__time {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}
.cu-247__time small {
  font-size: 22px;
  color: var(--accent);
}
.cu-247__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,158,11,0.10);
  color: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.cu-247__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.22);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Mini UI #6: Spike chart (Desbordamiento) ── */
.cu-spike {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.cu-spike__chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 64px;
  width: 100%;
}
.cu-spike__chart span {
  width: 8px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(245,158,11,0.3) 100%);
  border-radius: 2px;
}
.cu-spike__chart span:nth-child(1) { height: 22%; background: rgba(255,255,255,0.18); }
.cu-spike__chart span:nth-child(2) { height: 30%; background: rgba(255,255,255,0.22); }
.cu-spike__chart span:nth-child(3) { height: 26%; background: rgba(255,255,255,0.20); }
.cu-spike__chart span:nth-child(4) { height: 70%; }
.cu-spike__chart span:nth-child(5) { height: 95%; }
.cu-spike__chart span:nth-child(6) { height: 80%; }
.cu-spike__chart span:nth-child(7) { height: 50%; background: rgba(255,255,255,0.22); }
.cu-spike__chart span:nth-child(8) { height: 32%; background: rgba(255,255,255,0.18); }
.cu-spike__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.10);
  color: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cu-spike__badge::before {
  content: '↑';
  color: var(--accent);
  font-weight: 800;
}

/* ── Mini UI #7: Notifications (Recordatorios) ── */
.cu-notif {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cu-notif__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 8px;
}
.cu-notif__check {
  width: 14px; height: 14px;
  background: rgba(34,197,94,0.18);
  color: #22c55e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.cu-notif__bell {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cu-notif__bell .icon {
  font-size: 18px;
  color: var(--tertiary-fixed-dim);
  font-variation-settings: 'FILL' 1, 'wght' 300;
}

/* ── Mini UI #8: Smart route (Derivación) ── */
.cu-route {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.cu-route__node {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  padding: 7px 11px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cu-route__node--active {
  background: rgba(76,214,251,0.12);
  color: var(--tertiary-fixed-dim);
  font-weight: 700;
}
.cu-route__arrow {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   ⑥ INTEGRACIONES — diagrama central AGENTE + neural paths
══════════════════════════════════════════════════════════ */
.integrations {
  padding: 128px 0 120px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.integrations::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 50% 50%, rgba(76,214,251,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.integrations__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.integrations__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  color: var(--on-surface);
}
.integrations__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 600px;
}

/* ── Diagram canvas ── */
.integrations__diagram {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 600px;
}

.int-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.int-paths path {
  stroke: url(#neuralGrad);
  stroke-width: 1.2;
  stroke-dasharray: 4 12;
  fill: none;
  animation: dash 5s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -100; }
}

/* ── Central AGENTE ── */
.int-agent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  animation: float 6s ease-in-out infinite;
}
.int-agent__halo {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle, rgba(76,214,251,0.32) 0%, transparent 60%);
  filter: blur(40px);
  border-radius: 50%;
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}
.int-agent__halo--inner {
  inset: -30px;
  background: radial-gradient(circle, rgba(14,28,43,0.4) 0%, transparent 70%);
  filter: blur(20px);
  animation: none;
}
.int-agent__core {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4cd6fb 0%, #0e1c2b 70%, #001e27 100%);
  box-shadow:
    0 0 60px rgba(76,214,251,0.45),
    inset 0 0 40px rgba(76,214,251,0.20),
    inset 0 1px 0 rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.int-agent__shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  transform: skewY(-10deg) translateY(-12px);
  pointer-events: none;
}
.int-agent__icon {
  position: relative;
  margin-bottom: 4px;
}
.int-agent__icon .icon {
  font-size: 56px;
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(76,214,251,0.7));
  font-variation-settings: 'FILL' 1, 'wght' 200;
}
.int-agent__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--tertiary-fixed-dim);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(76,214,251,0.5);
}
.int-agent__line {
  width: 32px;
  height: 1px;
  background: var(--tertiary-fixed-dim);
  opacity: 0.5;
  margin: 4px auto 0;
}

/* ── Surrounding nodes (glass cards) ── */
.int-node {
  position: absolute;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 1px 2px rgba(25,28,29,0.04),
    0 16px 40px rgba(25,28,29,0.10),
    0 0 20px rgba(76,214,251,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
  z-index: 10;
  transition: transform 0.4s, box-shadow 0.4s;
  white-space: nowrap;
}
.int-node:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(25,28,29,0.06),
    0 24px 56px rgba(25,28,29,0.14),
    0 0 32px rgba(76,214,251,0.20),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.int-node__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffffff 0%, var(--surface-container-high) 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(25,28,29,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 1px 2px rgba(25,28,29,0.04);
}
.int-node__icon .icon {
  font-size: 22px;
  color: var(--secondary);
  font-variation-settings: 'FILL' 1, 'wght' 300;
}
.int-node--cyan .int-node__icon .icon { color: var(--tertiary-fixed-dim); }
.int-node--green .int-node__icon .icon { color: #25D366; }
.int-node__body { display: flex; flex-direction: column; gap: 2px; }
.int-node__tag {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}
.int-node__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--primary);
}

/* Node positions */
.int-node--top    { top: 4%;  left: 50%; transform: translateX(-50%); }
.int-node--ml     { top: 18%; left: 8%; }
.int-node--mr     { top: 18%; right: 8%; }
.int-node--bl-mid { top: 50%; left: 1%; transform: translateY(-50%); }
.int-node--br-mid { top: 50%; right: 1%; transform: translateY(-50%); }
.int-node--bl     { bottom: 6%; left: 18%; }
.int-node--br     { bottom: 6%; right: 18%; }

.int-node--top:hover    { transform: translateX(-50%) translateY(-3px); }
.int-node--bl-mid:hover { transform: translateY(calc(-50% - 3px)); }
.int-node--br-mid:hover { transform: translateY(calc(-50% - 3px)); }

/* ── Feature cards (3 abajo) ── */
.integrations__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 80px;
}
.int-feat {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow:
    0 1px 2px rgba(25,28,29,0.03),
    0 8px 24px rgba(25,28,29,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.int-feat:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(25,28,29,0.04),
    0 20px 48px rgba(25,28,29,0.08),
    0 0 24px rgba(76,214,251,0.10);
}
.int-feat__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(14,28,43,0.18);
}
.int-feat__icon .icon { font-size: 22px; }
.int-feat__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.int-feat__desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-10px); }
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.08); }
}

/* ══════════════════════════════════════════════════════════
   ⑦ DEMO — video player premium
══════════════════════════════════════════════════════════ */
.demo {
  padding: 128px 0 128px;
  background: var(--surface-container-low);
  position: relative;
  overflow: hidden;
}

.demo__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.demo__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--on-surface);
}
.demo__sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--on-surface-variant);
}

/* Player mockup */
.demo__player {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(165deg, #0e1c2b 0%, #050a13 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 32px 80px rgba(14,28,43,0.30),
    0 12px 24px rgba(14,28,43,0.18);
  position: relative;
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo__chrome-dots { display: flex; gap: 6px; }
.demo__chrome-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.demo__chrome-dots span:nth-child(1) { background: #ff5f57; }
.demo__chrome-dots span:nth-child(2) { background: #febc2e; }
.demo__chrome-dots span:nth-child(3) { background: #28c840; }
.demo__chrome-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.005em;
}
.demo__chrome-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(76,214,251,0.10);
  color: var(--tertiary-fixed-dim);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.demo__chrome-status::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--tertiary-fixed-dim);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(76,214,251,0.22);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Player screen */
.demo__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo__bg-waves {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 60px;
  pointer-events: none;
}
.demo__bg-waves span {
  flex: 1;
  max-width: 6px;
  background: var(--tertiary-fixed-dim);
  border-radius: 3px;
  opacity: 0.5;
  animation: wave-anim 1.4s ease-in-out infinite alternate;
}
.demo__bg-waves span:nth-child(odd)  { height: 25%; }
.demo__bg-waves span:nth-child(even) { height: 55%; }
.demo__bg-waves span:nth-child(3n)   { height: 75%; }
.demo__bg-waves span:nth-child(5n)   { height: 40%; }
.demo__bg-waves span:nth-child(7n)   { height: 90%; }
.demo__bg-waves span:nth-child(11n)  { height: 30%; }
.demo__bg-waves span:nth-child(1) { animation-delay: 0s; }
.demo__bg-waves span:nth-child(2) { animation-delay: 0.05s; }
.demo__bg-waves span:nth-child(3) { animation-delay: 0.10s; }
.demo__bg-waves span:nth-child(4) { animation-delay: 0.15s; }
.demo__bg-waves span:nth-child(5) { animation-delay: 0.20s; }
.demo__bg-waves span:nth-child(6) { animation-delay: 0.25s; }
.demo__bg-waves span:nth-child(7) { animation-delay: 0.30s; }
.demo__bg-waves span:nth-child(8) { animation-delay: 0.05s; }
.demo__bg-waves span:nth-child(9) { animation-delay: 0.18s; }
.demo__bg-waves span:nth-child(10) { animation-delay: 0.22s; }

.demo__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(5,10,19,0.85) 100%);
  pointer-events: none;
}

.demo__play {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.10),
    0 0 0 18px rgba(255,255,255,0.05),
    0 20px 50px rgba(0,0,0,0.5);
}
.demo__play .icon {
  font-size: 44px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1, 'wght' 400;
  margin-left: 4px;
}
.demo__play:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 10px rgba(76,214,251,0.18),
    0 0 0 22px rgba(76,214,251,0.08),
    0 24px 60px rgba(0,0,0,0.55);
}
.demo__play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,214,251,0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: pulse-slow 3s ease-in-out infinite;
}

.demo__caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Player bottom bar */
.demo__bottom {
  padding: 18px 24px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo__progress {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.demo__progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 32%;
  background: linear-gradient(90deg, var(--tertiary-fixed-dim), #0891b2);
  border-radius: 100px;
  box-shadow: 0 0 8px rgba(76,214,251,0.4);
}
.demo__progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--tertiary-fixed-dim);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(76,214,251,0.3);
}
.demo__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}
.demo__meta-name { color: rgba(255,255,255,0.85); font-weight: 600; }
.demo__meta-time { font-variant-numeric: tabular-nums; }

/* ══════════════════════════════════════════════════════════
   ⑧ CTA FINAL — full dark navy
══════════════════════════════════════════════════════════ */
.cta-final {
  padding: 144px 0;
  background: linear-gradient(180deg, #0a1426 0%, #050a13 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 30% 20%, rgba(76,214,251,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 80% 80%, rgba(245,158,11,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 50% at center, black 30%, transparent 75%);
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #ffffff;
  max-width: 16ch;
}
.cta-final__sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 580px;
}
.cta-final__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Botones del CTA final — adaptados a fondo dark */
.cta-final .btn--primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.06),
    0 12px 32px rgba(0,0,0,0.32);
}
.cta-final .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 10px rgba(76,214,251,0.12),
    0 16px 40px rgba(0,0,0,0.4);
}
.cta-final .btn--outline {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 4px 12px rgba(0,0,0,0.2);
}
.cta-final .btn--outline:hover {
  background: rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.20),
    0 8px 20px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   ⑨ FOOTER — dark
══════════════════════════════════════════════════════════ */
.footer {
  background: #050a13;
  color: rgba(255,255,255,0.5);
  padding: 96px 0 32px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(76,214,251,0.18) 50%, transparent 100%);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
}
.footer__logo-mark {
  filter:
    drop-shadow(0 4px 12px rgba(0,0,0,0.32))
    drop-shadow(0 0 18px rgba(76,214,251,0.18));
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
}
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--tertiary-fixed-dim);
  margin-top: 8px;
  transition: color 0.2s;
}
.footer__contact:hover { color: #ffffff; }

.footer__col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__col a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  transition: color 0.18s;
}
.footer__col a:hover { color: #ffffff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.32);
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer__legal a {
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  transition: color 0.18s;
}
.footer__legal a:hover { color: #ffffff; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .float-chip--1, .float-chip--2 { display: none; }
}
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .nav__logo { margin-right: 32px; }
  .nav__links a { padding: 8px 10px; font-size: 13px; }
  .float-chip { display: none; }
  .hero__trust-logos { gap: 36px; }
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid   { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .cases__grid   { grid-template-columns: repeat(2, 1fr); }
  .integrations__features { grid-template-columns: 1fr; }
  .integrations__diagram { height: 520px; }
  .int-node { padding: 10px 14px; }
  .int-node__icon { width: 36px; height: 36px; }
  .int-node__icon .icon { font-size: 18px; }
  .int-node__name { font-size: 11px; }
  .int-node__tag { font-size: 8px; }
  .int-agent__core { width: 140px; height: 140px; }
  .int-agent__icon .icon { font-size: 44px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .hero { padding: 72px 0 80px; }
  .hero__trust { margin-top: 64px; }
  .sectors { padding: 88px 0 96px; }
  .stats   { padding: 88px 0 96px; }
  .cases   { padding: 88px 0 96px; }
  .integrations { padding: 88px 0 96px; }
  .demo     { padding: 88px 0 96px; }
  .cta-final { padding: 104px 0; }
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .integrations__diagram { height: auto; padding: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .int-paths { display: none; }
  .int-agent { position: relative; grid-column: 1 / -1; transform: none; top: 0; left: 0; margin: 0 auto; animation: float-mobile 6s ease-in-out infinite; }
  .int-node { position: relative; inset: auto; transform: none !important; }
  .int-node--top:hover, .int-node--bl-mid:hover, .int-node--br-mid:hover { transform: translateY(-3px) !important; }
}
@keyframes float-mobile {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav__inner { height: 64px; }
  .version-bar { padding: 8px 20px; font-size: 11.5px; }
  .hero { padding: 56px 0 64px; }
  .hero__inner { gap: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .btn { justify-content: center; }
  .hero__trust-logos { gap: 28px; }
  .hero__trust-logo { font-size: 15px; }

  .sectors { padding: 72px 0 80px; }
  .sectors__header { margin-bottom: 48px; }
  .sectors__grid { grid-template-columns: 1fr; }
  .sector-card { aspect-ratio: 16 / 10; }
  .sector-card__visual .icon { font-size: 72px; }

  .stats   { padding: 72px 0 80px; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .stat__desc { max-width: 100%; }

  .cases   { padding: 72px 0 80px; }
  .cases__header { margin-bottom: 48px; }
  .cases__grid { grid-template-columns: 1fr; }
  .case-card { aspect-ratio: 16 / 11; }

  .integrations { padding: 72px 0 80px; }
  .integrations__diagram { grid-template-columns: 1fr; padding: 24px 0; }
  .integrations__features { margin-top: 56px; }
  .int-feat { padding: 24px; }

  .demo { padding: 72px 0 80px; }
  .demo__player { border-radius: var(--radius-xl); }
  .demo__play { width: 72px; height: 72px; }
  .demo__play .icon { font-size: 36px; }

  .cta-final { padding: 88px 0; }
  .cta-final__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-final__actions .btn { justify-content: center; }

  .footer { padding: 72px 0 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__legal { gap: 18px; flex-wrap: wrap; }
}

/* ============================================================
   DEMO MODAL — formulario "Solicitar demo"
   ============================================================ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.demo-modal[aria-hidden="false"] { display: flex; }

.demo-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 43, 0.32);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  animation: demo-fade 180ms ease-out;
}

.demo-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto 0;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
  animation: demo-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.demo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  transition: background 160ms ease, color 160ms ease;
}
.demo-modal__close:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}
.demo-modal__close .icon { font-size: 20px; }

.demo-modal__header {
  margin-bottom: 24px;
}
.demo-modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin-top: 14px;
  margin-bottom: 8px;
}
.demo-modal__sub {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Form ── */
.demo-form { display: flex; flex-direction: column; gap: 14px; }

.demo-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-form__field { display: flex; flex-direction: column; gap: 6px; }

.demo-form__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
}
.demo-form__optional {
  font-style: normal;
  font-weight: 400;
  color: var(--on-surface-muted);
}

.demo-form__field input,
.demo-form__field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  background: var(--surface-container-low);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 160ms ease, background 160ms ease;
  width: 100%;
  resize: vertical;
  min-height: 44px;
  font-family: inherit;
}
.demo-form__field textarea { min-height: 84px; line-height: 1.5; }

.demo-form__field input:focus,
.demo-form__field textarea:focus {
  outline-color: var(--primary);
  background: var(--surface-container-lowest);
}

.demo-form__field input[aria-invalid="true"],
.demo-form__field textarea[aria-invalid="true"] {
  outline-color: #b91c1c;
}

.demo-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.demo-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.demo-form__legal {
  font-size: 11px;
  color: var(--on-surface-muted);
  flex: 1 1 220px;
  line-height: 1.45;
}
.demo-form__footer .btn { min-width: 180px; justify-content: center; }

.demo-form__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: demo-spin 700ms linear infinite;
}
#demoSubmit.is-loading .demo-form__submit-label { opacity: 0.6; }
#demoSubmit.is-loading .demo-form__spinner { display: inline-block; }
#demoSubmit[disabled] { opacity: 0.7; cursor: not-allowed; }

.demo-form__status {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
  min-height: 20px;
}
.demo-form__status.is-error { color: #b91c1c; }
.demo-form__status.is-success {
  color: var(--on-tertiary-fixed-variant);
  background: var(--tertiary-fixed);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

/* ── Body lock when modal open ── */
body.demo-modal-open { overflow: hidden; }

/* ── Animations ── */
@keyframes demo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes demo-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .demo-modal { padding: 20px 14px; }
  .demo-modal__panel { padding: 32px 22px 24px; border-radius: var(--radius-xl); }
  .demo-modal__title { font-size: 22px; }
  .demo-form__row { grid-template-columns: 1fr; }
  .demo-form__footer { flex-direction: column; align-items: stretch; }
  .demo-form__footer .btn { width: 100%; }
}
