/* ==========================================================================
   ALDEA EMPRENDEDORA — Sistema de diseño
   Growth & Intelligence for Education
   Paleta oficial de marca:
     Navy   #0B1026   Azul  #1764FF   Coral #FF6B4D
     Blanco #FFFFFF    Gris  #F2F4F7
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Marca */
  --navy:        #0B1026;
  --navy-800:    #0e1533;
  --navy-700:    #141d45;
  --navy-600:    #1b2758;
  --blue:        #1764ff;
  --blue-600:    #0b52e6;
  --blue-300:    #6f9bff;
  --coral:       #ff6b4d;
  --coral-600:   #f04e2c;
  --white:       #ffffff;
  --gray-50:     #f7f9fc;
  --gray-100:    #f2f4f7;
  --gray-200:    #e6eaf1;
  --gray-300:    #d3dae6;
  --gray-400:    #9aa6bd;
  --gray-500:    #667089;
  --gray-600:    #45506a;
  --ink:         #10193a;
  --muted:       #5b6580;

  /* Superficies */
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-alt: #f7f9fc;

  /* Tipografía */
  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Métricas */
  --container: 1200px;
  --container-wide: 1320px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(11,16,38,.06), 0 1px 3px rgba(11,16,38,.05);
  --shadow:    0 10px 30px -12px rgba(11,16,38,.18);
  --shadow-lg: 0 30px 60px -20px rgba(11,16,38,.28);
  --shadow-blue: 0 20px 45px -18px rgba(23,100,255,.45);

  /* Gradientes */
  --grad-blue: linear-gradient(135deg, #1764ff 0%, #4f86ff 100%);
  --grad-brand: linear-gradient(120deg, #1764ff 0%, #6f9bff 55%, #ff6b4d 130%);
  --grad-navy: radial-gradient(120% 120% at 15% 0%, #16214d 0%, #0b1026 55%);

  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[id] { scroll-margin-top: 96px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. TIPOGRAFÍA ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.01em; }
h4 { font-size: 1.12rem; letter-spacing: -.01em; }
p  { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.6; }

/* Utilidades de color de texto */
.t-blue { color: var(--blue); }
.t-coral { color: var(--coral); }
.t-white { color: #fff; }
.t-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--surface-alt); }
.section--navy { background: var(--grad-navy); color: #cdd6ec; position: relative; overflow: hidden; }
.section--media::before { content: ""; position: absolute; inset: 0; background: var(--grad-navy); opacity: .8; z-index: 1; pointer-events: none; }
.section--media > .container { position: relative; z-index: 2; }
.section__media-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.section--aldea-ai .section__media-bg { background: url("../assets/img/aldea-ai.png") center / cover no-repeat; }
.section--impacto .section__media-bg { background: url("../assets/img/impacto.png") center / cover no-repeat; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: #aab6d6; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ---------- 5. KICKER / ENCABEZADOS DE SECCIÓN ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.section--navy .kicker { color: var(--blue-300); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: 18px; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

/* ---------- 6. BOTONES ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  background: var(--btn-bg); color: var(--btn-fg);
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue); box-shadow: var(--shadow-blue); }
.btn--coral { background: var(--coral); box-shadow: 0 18px 40px -16px rgba(255,107,77,.6); }
.btn--coral:hover { box-shadow: 0 22px 46px -14px rgba(255,107,77,.7); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gray-300); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--lg { padding: 17px 30px; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: .95rem;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 7. HEADER + NAV + MEGA MENÚ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 38px; width: auto; }
.nav__menu { position: relative; display: flex; align-items: center; gap: 2px; height: 100%; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: 10px;
  font-weight: 500; font-size: .94rem; color: var(--ink); white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after { content:""; position:absolute; left:13px; right:13px; bottom:14px; height:2px; background: var(--coral); border-radius:2px; }
.nav__item { }
.m-solo.is-active { color: var(--blue); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); opacity: .6; }
.nav__item.is-open > .nav__link { color: var(--blue); background: var(--gray-100); }
.nav__item.is-open > .nav__link .chev { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__campus {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .9rem; color: var(--muted);
  padding: 8px 4px; transition: color .2s;
}
.nav__campus:hover { color: var(--blue); }
.nav__campus svg { width: 16px; height: 16px; }

/* Mega panel */
.mega {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(920px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 120;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__grid { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 12px; }
.mega__col-title {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gray-400); margin: 6px 12px 8px;
}
.mega__link { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background .18s; }
.mega__link:hover { background: var(--gray-100); }
.mega__link:hover .mega__ico { background: var(--blue); color: #fff; border-color: var(--blue); }
.mega__ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--gray-100);
  border: 1px solid var(--gray-200); color: var(--blue);
  transition: background .18s, color .18s, border-color .18s;
}
.mega__ico svg { width: 18px; height: 18px; }
.mega__link h5 { font-family: var(--font-display); font-size: .96rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.mega__link p { font-size: .82rem; line-height: 1.4; margin-top: 2px; color: var(--muted); }
.mega__feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff; background: var(--grad-navy);
}
.mega__feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.mega__feature::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,16,38,.15), rgba(11,16,38,.9)); }
.mega__feature-body { position: relative; z-index: 2; }
.mega__feature .kicker { color: var(--blue-300); margin-bottom: 8px; }
.mega__feature h5 { font-family: var(--font-display); font-size: 1.15rem; color: #fff; letter-spacing: -.01em; }
.mega__feature p { color: #c3cde6; font-size: .85rem; margin: 6px 0 12px; }
.mega__feature-bg { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; opacity:.6; }
.mega__feature-mark { position:absolute; top:18px; right:18px; width:40px; height:auto; opacity:.9; z-index:2; }
.mega__feature .link-arrow { color:#fff; }
.mega__feature .link-arrow:hover { color: var(--blue-300); }

/* Mobile toggle */
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__burger span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger span::before, .nav__burger span::after { content:""; position:absolute; left:0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger span::before { top: -7px; } .nav__burger span::after { top: 7px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 8. MENÚ MÓVIL ---------- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 90;
  background: #fff; overflow-y: auto; padding: 20px 24px 48px;
  transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateX(0); visibility: visible; }
.m-group { border-bottom: 1px solid var(--gray-200); }
.m-group__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.m-group__head svg { width: 18px; height: 18px; color: var(--gray-400); transition: transform .3s var(--ease); }
.m-group.open .m-group__head svg { transform: rotate(180deg); color: var(--blue); }
.m-group__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.m-group.open .m-group__body { grid-template-rows: 1fr; }
.m-group__inner { overflow: hidden; }
.m-group__inner a { display: block; padding: 11px 4px 11px 16px; color: var(--muted); font-size: .98rem; border-left: 2px solid var(--gray-200); margin-left: 4px; }
.m-group__inner a:hover { color: var(--blue); border-color: var(--blue); }
.m-solo { display:block; padding: 18px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--gray-200); }
.mobile-menu__cta { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu__cta .btn { justify-content: center; }

/* ---------- 9. HERO ---------- */
.hero { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; padding-block: clamp(64px, 8vw, 108px); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-navy); opacity: .8; z-index: 1; pointer-events: none; }
.hero__video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 1; }
.hero__glow--blue { width: 520px; height: 520px; background: #1764ff; top: -160px; right: -120px; }
.hero__glow--coral { width: 320px; height: 320px; background: #ff6b4d; bottom: -140px; left: -80px; opacity: .3; }
.hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); opacity: .8; z-index: 1; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: #b9c4e2; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__trust span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8fa0c8; }
.hero__trust p { color: #d3dcf0; font-weight: 500; margin-top: 10px; font-size: .96rem; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #d6def5; margin-bottom: 24px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,77,.2); }

/* ---------- 10. DASHBOARD / MÉTRICAS ---------- */
.dashboard {
  background: linear-gradient(180deg, #0f1838, #0b1026);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dashboard__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dashboard__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .95rem; }
.dashboard__title .live { display:inline-flex; align-items:center; gap:6px; font-size:.7rem; font-weight:600; color:#7ee29b; letter-spacing:.08em; }
.dashboard__title .live::before { content:""; width:7px; height:7px; border-radius:50%; background:#38d47f; box-shadow:0 0 0 4px rgba(56,212,127,.18); }
.dashboard__dots { display: flex; gap: 6px; }
.dashboard__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.dashboard__body { padding: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px;
}
.metric__label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8ea0c8; }
.metric__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: #fff; margin-top: 6px; letter-spacing: -.02em; }
.metric__delta { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; margin-top: 6px; }
.metric__delta.up { color: #4fdc8b; } .metric__delta.down { color: #ff8a6e; }
.metric__spark { margin-top: 12px; height: 34px; }
.metric--wide { grid-column: 1 / -1; }

/* Barra de conversión */
.conv-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 12px; }
.conv-fill { height: 100%; border-radius: 999px; background: var(--grad-blue); width: 0; transition: width 1.4s var(--ease); }

/* Pill de estado (AI Lab) */
.pill { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.pill--soon { background: rgba(255,107,77,.12); color: var(--coral-600); border:1px solid rgba(255,107,77,.3); }
.pill--dev { background: rgba(23,100,255,.1); color: var(--blue); border:1px solid rgba(23,100,255,.25); }
.pill--project { background: var(--gray-100); color: var(--gray-600); border:1px solid var(--gray-200); }

/* Ejemplo tag */
.ex-tag { display:inline-flex; align-items:center; gap:6px; font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--coral); }
.ex-tag::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--coral); }

/* ---------- 11. TARJETAS ---------- */
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gray-100); color: var(--blue); margin-bottom: 20px; transition: background .3s, color .3s; }
.card:hover .card__ico { background: var(--blue); color: #fff; }
.card__ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

/* Service card numerada */
.svc {
  position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px 28px; overflow: hidden; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc::before { content:""; position:absolute; left:0; top:0; width:4px; height:0; background:var(--grad-blue); transition:height .35s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::before { height: 100%; }
.svc__num { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.svc__num::after { content:""; display:block; width: 30px; height: 2px; background: var(--coral); margin-top: 8px; margin-bottom: 20px; }
.svc h3 { font-size: 1.28rem; margin-bottom: 10px; }
.svc p { font-size: .95rem; margin-bottom: 20px; }
.svc .link-arrow { font-size: .9rem; }

/* Feature list */
.flist { display: grid; gap: 12px; }
.flist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .98rem; }
.flist li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display:inline-flex; align-items:center; padding: 8px 14px; border-radius: 999px; background: var(--gray-100); color: var(--gray-600); font-size: .86rem; font-weight: 500; border: 1px solid var(--gray-200); transition: .2s; }
.chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.section--navy .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #cdd6ec; }
.section--navy .chip:hover { background: var(--blue); color:#fff; }

/* ---------- 12. GROWTH SYSTEM (journey) ---------- */
.journey { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; }
.jstep {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 22px 16px; text-align: center;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.jstep:hover { transform: translateY(-6px); background: rgba(23,100,255,.14); border-color: var(--blue); }
.jstep__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--grad-blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.jstep h4 { color: #fff; font-size: .98rem; margin-bottom: 6px; }
.jstep p { color: #9fb0d6; font-size: .8rem; line-height: 1.4; }
.jstep__arrow { position: absolute; right: -12px; top: 42px; color: var(--blue-300); z-index: 2; }
.jstep:last-child .jstep__arrow { display: none; }

/* ---------- 13. FUNNEL ---------- */
.funnel { display: grid; gap: 10px; max-width: 560px; }
.frow { display: flex; align-items: center; gap: 18px; }
.fbar {
  position: relative; height: 58px; border-radius: 12px; background: var(--grad-blue);
  display: flex; align-items: center; padding-inline: 20px; color: #fff;
  font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-blue);
}
.fbar span.n { font-size: 1.15rem; }
.fbar span.l { font-size: .82rem; font-weight: 500; opacity: .92; margin-left: 8px; }
.frow:nth-child(1) .fbar { width: 100%; }
.frow:nth-child(2) .fbar { width: 82%; opacity: .95; }
.frow:nth-child(3) .fbar { width: 64%; opacity: .9; }
.frow:nth-child(4) .fbar { width: 48%; opacity: .85; }
.frow:nth-child(5) .fbar { width: 34%; opacity: .8; }
.frow:nth-child(6) .fbar { width: 24%; background: linear-gradient(135deg,#ff6b4d,#ff926e); box-shadow: 0 18px 40px -16px rgba(255,107,77,.6); opacity: 1; }
.frow__drop { font-size: .8rem; color: var(--gray-400); white-space: nowrap; }

/* ---------- 14. RISK SCORE ---------- */
.risk {
  background: linear-gradient(180deg,#0f1838,#0b1026); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); color:#fff;
}
.risk__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.risk__id { font-size: .8rem; color: #8ea0c8; }
.risk__id b { display:block; font-family: var(--font-display); color:#fff; font-size:1.05rem; }
.risk__gauge { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.gauge { --p: 82; position: relative; width: 108px; height: 108px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--coral) calc(var(--p)*1%), rgba(255,255,255,.1) 0); display: grid; place-items: center; }
.gauge::before { content:""; position: absolute; inset: 12px; border-radius: 50%; background: #0d1533; }
.gauge span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color:#fff; }
.gauge small { position:relative; display:block; font-size:.62rem; color:#8ea0c8; letter-spacing:.1em; text-align:center; }
.risk__factors li { display:flex; align-items:center; gap:10px; padding: 8px 0; font-size:.9rem; color:#c3cde6; border-bottom:1px solid rgba(255,255,255,.06); }
.risk__factors li svg { width:16px; height:16px; color: var(--coral); flex-shrink:0; }
.risk__action { margin-top: 18px; background: rgba(255,107,77,.12); border: 1px solid rgba(255,107,77,.3); border-radius: 12px; padding: 14px 16px; }
.risk__action span { font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--coral); font-weight:700; }
.risk__action p { color:#fff; font-weight:600; margin-top:4px; font-size:.95rem; }

/* ---------- 15. TABS ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab-btn {
  padding: 12px 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--muted); border: 1px solid var(--gray-200); background: #fff; transition: .2s;
}
.tab-btn:hover { color: var(--blue); border-color: var(--blue-300); }
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; animation: fadeUp .5s var(--ease); }
.tab-panel.active { display: block; }
.section--navy .tab-btn { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color:#c3cde6; }
.section--navy .tab-btn.active { background:#fff; color: var(--navy); border-color:#fff; }

/* ---------- 16. ACCORDION ---------- */
.acc__item { border-bottom: 1px solid var(--gray-200); }
.acc__head { width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px; padding: 22px 4px; text-align:left; font-family: var(--font-display); font-weight:600; font-size:1.1rem; color: var(--ink); }
.acc__head svg { flex-shrink:0; width:22px; height:22px; color: var(--blue); transition: transform .3s var(--ease); }
.acc__item.open .acc__head svg { transform: rotate(45deg); }
.acc__body { display:grid; grid-template-rows:0fr; transition: grid-template-rows .3s var(--ease); }
.acc__item.open .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { padding: 0 4px 22px; }

/* ---------- 17. HERRAMIENTAS (Score / Calculadora) ---------- */
.tool-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.tool-card__head { padding: 26px 28px; border-bottom: 1px solid var(--gray-200); background: var(--surface-alt); }
.tool-card__body { padding: 28px; }
.q { margin-bottom: 22px; }
.q:last-child { margin-bottom: 0; }
.q__label { display:block; font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: 12px; font-size: 1rem; }
.q__label .num { color: var(--blue); margin-right: 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display:block; text-align:center; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--gray-200); font-weight: 600; font-size: .92rem; color: var(--muted); transition: .2s; }
.opt input:checked + span { border-color: var(--blue); background: rgba(23,100,255,.06); color: var(--blue); box-shadow: 0 0 0 3px rgba(23,100,255,.1); }
.opt input:focus-visible + span { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* Progreso del formulario */
.tool-progress { height: 6px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.tool-progress i { display:block; height:100%; width:0; background: var(--grad-blue); border-radius: 999px; transition: width .4s var(--ease); }

/* Resultado del score */
.score-result { text-align: center; padding: 20px 0; }
.score-ring { --p: 0; position: relative; width: 190px; height: 190px; margin: 0 auto 24px; border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p)*1%), var(--gray-200) 0); display:grid; place-items:center; }
.score-ring::before { content:""; position:absolute; inset:16px; border-radius:50%; background:#fff; }
.score-ring b { position: relative; font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.score-ring small { position:relative; display:block; color: var(--muted); font-size:.9rem; margin-top:2px; }
.subscores { display: grid; gap: 14px; max-width: 460px; margin: 26px auto 0; text-align: left; }
.subscore__top { display:flex; justify-content:space-between; font-size:.9rem; font-weight:600; margin-bottom:6px; }
.subscore__track { height: 8px; background: var(--gray-200); border-radius: 999px; overflow:hidden; }
.subscore__fill { height:100%; border-radius:999px; background: var(--grad-blue); width:0; transition: width 1s var(--ease); }
.score-verdict { background: var(--surface-alt); border:1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 24px; margin: 26px auto 0; max-width: 560px; text-align:left; }
.score-verdict .ex-tag { margin-bottom: 8px; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.calc__inputs { padding: 32px; background: #fff; }
.calc__result { padding: 32px; background: var(--grad-navy); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.field { margin-bottom: 20px; }
.field label { display:block; font-weight:600; font-size:.92rem; margin-bottom:8px; color: var(--ink); }
.field .hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
.input-wrap { position: relative; }
.input-wrap .unit { position:absolute; top:50%; transform: translateY(-50%); left:16px; color: var(--gray-400); font-weight:600; }
.input-wrap.has-unit input { padding-left: 34px; }
.field input[type="number"], .field input[type="text"], .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--gray-200);
  font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,100,255,.12); outline: none; }
.field.range input[type="range"] { width:100%; accent-color: var(--blue); }
.range-val { font-family: var(--font-display); font-weight: 700; color: var(--blue); }
.calc__result .rlabel { font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:#8ea0c8; }
.calc__big { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.4rem); font-weight:700; color:#fff; line-height:1.05; margin: 6px 0 4px; }
.calc__big.coral { color: var(--coral); }
.calc__result hr { border:none; border-top:1px solid rgba(255,255,255,.12); margin: 22px 0; }
.calc__note { font-size:.85rem; color:#aab6d6; margin-top: 16px; }

/* ---------- 18. FORMULARIO ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size:.82rem; color: var(--muted); }
.form-success { display:none; background: rgba(23,100,255,.06); border:1px solid var(--blue-300); border-radius: var(--radius); padding: 28px; text-align:center; }
.form-success.show { display:block; animation: fadeUp .5s var(--ease); }
.form-success svg { width:48px; height:48px; color: var(--blue); margin:0 auto 14px; }

/* ---------- 19. INSIGHTS / CASOS / ACADEMY ---------- */
.post { background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; height:100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); display:flex; flex-direction:column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post__img { aspect-ratio: 16/9; overflow: hidden; background: var(--grad-navy); position: relative; }
.post__img img { width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__cat { position:absolute; top:14px; left:14px; z-index:2; padding:6px 12px; border-radius:999px; background: rgba(11,16,38,.7); backdrop-filter: blur(6px); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.post__body { padding: 22px; display:flex; flex-direction:column; flex:1; }
.post__meta { font-size:.8rem; color: var(--gray-400); margin-bottom: 10px; display:flex; gap:8px; }
.post h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post p { font-size:.92rem; margin-bottom: 16px; flex:1; }

.case { background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius); padding: 30px; height:100%; }
.case__stat { font-family: var(--font-display); font-size: clamp(2.6rem,5vw,3.4rem); font-weight:700; letter-spacing:-.02em; line-height:1; }
.case__stat.up { color: var(--blue); } .case__stat.down { color: var(--coral); }
.case__label { font-weight:600; color: var(--ink); margin-top:8px; }
.case__desc { font-size:.9rem; margin-top:6px; }

.stat-band { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-band .s { text-align:center; }
.stat-band .s b { display:block; font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); font-weight:700; color:#fff; letter-spacing:-.02em; }
.stat-band .s span { color:#9fb0d6; font-size:.9rem; }

/* Logos band */
.logos { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: clamp(24px,5vw,56px); opacity:.75; }
.logos span { font-family: var(--font-display); font-weight:600; color:#8ea0c8; font-size:1.05rem; letter-spacing:.02em; }

/* ---------- 20. PAGE HERO (interior) ---------- */
.phero { position: relative; background: var(--grad-navy); color:#fff; overflow:hidden; padding-block: clamp(56px,7vw,96px); }
.phero--video::before { content: ""; position: absolute; inset: 0; background: var(--grad-navy); opacity: .8; z-index: 1; pointer-events: none; }
.phero__video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.phero--video > .hero__grid-bg,
.phero--video > .hero__glow { z-index: 1; }
.phero--video > .container { position: relative; z-index: 2; }
.phero .hero__glow--blue { top:-180px; right:-140px; }
.phero__inner { position: relative; z-index: 2; max-width: 800px; }
.breadcrumb { display:flex; gap:8px; align-items:center; font-size:.85rem; color:#8ea0c8; margin-bottom: 22px; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb svg { width:14px; height:14px; opacity:.6; }
.phero h1 { color:#fff; margin-bottom: 18px; }
.phero .lead { color:#b9c4e2; }

/* ---------- 21. CTA FINAL ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--grad-navy); color:#fff; padding: clamp(40px,6vw,72px); text-align:center; }
.cta-final .hero__glow--blue { width:420px; height:420px; top:-160px; left:50%; transform: translateX(-50%); }
.cta-final__inner { position: relative; z-index:2; max-width: 700px; margin-inline:auto; }
.cta-final h2 { color:#fff; margin-bottom: 16px; }
.cta-final p { color:#b9c4e2; margin-bottom: 30px; }
.cta-final .hero__actions { justify-content:center; }

/* ---------- 22. FOOTER ---------- */
.site-footer { background: var(--navy); color:#aab6d6; padding-top: clamp(56px,7vw,88px); }
.footer__top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 42px; margin-bottom: 18px; }
.footer__brand p { color:#8ea0c8; font-size:.92rem; max-width: 300px; }
.footer__claim { display:inline-block; margin-top:16px; font-family: var(--font-display); color:#fff; font-weight:600; }
.footer__social { display:flex; gap:10px; margin-top: 22px; }
.footer__social a { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); color:#c3cde6; transition:.2s; }
.footer__social a:hover { background: var(--blue); color:#fff; border-color: var(--blue); transform: translateY(-3px); }
.footer__social svg { width:18px; height:18px; }
.footer__col h5 { font-family: var(--font-display); color:#fff; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom: 16px; }
.footer__col a { display:block; padding: 6px 0; font-size:.92rem; color:#9fb0d6; transition:.2s; }
.footer__col a:hover { color:#fff; padding-left: 4px; }
.footer__bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding: 24px 0 32px; font-size:.85rem; color:#7e8cb0; }
.footer__legal { display:flex; gap: 22px; flex-wrap:wrap; }
.footer__legal a:hover { color:#fff; }

/* ---------- 23. ANIMACIONES ---------- */
@keyframes fadeUp { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay:.4s; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .journey { grid-template-columns: repeat(4, 1fr); }
  .jstep__arrow { display: none; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav__menu, .nav__campus { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions .btn--primary { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
  .split { grid-template-columns: 1fr; }
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .journey { grid-template-columns: 1fr; }
}
