/* =========================================================
   NUVI SKILLS — Estilos corporativos
   Paleta derivada del logo: dorado + púrpura sobre fondo carbón
========================================================= */

:root{
  --gold:        #F2C230;
  --gold-light:  #FFE08A;
  --gold-deep:   #C6941A;
  --purple:      #6C25CC;
  --purple-light:#9B5CF0;
  --purple-deep: #3E1075;

  --bg:          #08080D;
  --bg-2:        #0E0E17;
  --bg-3:        #131320;
  --line:        rgba(242,194,48,0.14);
  --line-soft:   rgba(255,255,255,0.08);

  --ink:         #F3F1FA;
  --muted:       rgba(243,241,250,0.62);
  --muted-2:     rgba(243,241,250,0.4);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 14px;
  --ease: cubic-bezier(.16,1,.3,1);

  /* tema activo: amarillo puro por defecto (sin degradados) */
  --accent:       #F2C230;
  --accent-rgb:   242,194,48;
  --accent-light: #FFE08A;
  --accent-deep:  #C6941A;
  --accent-ink:   #0A0A0D;

  /* colores de marca legibles (para texto sobre el header/nombre) */
  --brand-a: #FFE08A;
  --brand-b: #9B5CF0;

  /* fondo del header (independiente del fondo de página) */
  --header-bg: rgba(8,8,13,.72);
  --header-bg-solid: rgba(8,8,13,.92);
  --nav-overlay-bg: #08080D;
}

html[data-theme="purple"]{
  --accent:       #7B2FE0;
  --accent-rgb:   123,47,224;
  --accent-light: #B084F5;
  --accent-deep:  #4F17A6;
  --accent-ink:   #FFFFFF;
}

html[data-theme="white"]{
  --bg:          #FFFFFF;
  --bg-2:        #F4F4F6;
  --bg-3:        #EAEAEE;
  --line:        rgba(0,0,0,.16);
  --line-soft:   rgba(0,0,0,.12);
  --ink:         #0A0A0D;
  --muted:       rgba(10,10,13,.66);
  --muted-2:     rgba(10,10,13,.46);

  --accent:       #F2C230;
  --accent-rgb:   242,194,48;
  --accent-light: #F2C230;
  --accent-deep:  #F2C230;
  --accent-ink:   #0A0A0D;

  --brand-a: #F2C230;
  --brand-b: #6C25CC;

  --header-bg: rgba(255,255,255,.86);
  --header-bg-solid: rgba(255,255,255,.97);
  --nav-overlay-bg: #FFFFFF;
}
/* refuerzo de legibilidad para el amarillo puro sobre blanco, sin cambiar el tono */
html[data-theme="white"] .brand-name,
html[data-theme="white"] .eyebrow,
html[data-theme="white"] .grad-text,
html[data-theme="white"] .lc-num,
html[data-theme="white"] .ph-badge{
  text-shadow:0 0 1px rgba(0,0,0,.5);
}
html[data-theme="white"] .trust-item svg,
html[data-theme="white"] .program-icon svg{
  filter:drop-shadow(0 0 .5px rgba(0,0,0,.5));
}

*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; width:100%; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  overflow-x:hidden;
  width:100%;
  line-height:1.5;
}
/* overflow-x:clip recorta igual que hidden pero no crea un contenedor de scroll,
   así funciona position:sticky (sección IA para todos) */
@supports (overflow:clip){ html, body{ overflow-x:clip; } }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

::selection{ background:var(--gold); color:#0a0a0a; }

/* ---------- utilities ---------- */
.grad-text{
  color:var(--accent);
  font-weight:700;
}
.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--gold);
  display:flex; align-items:center; gap:.7rem;
  margin-bottom:1rem;
}
.eyebrow::before{ content:''; width:26px; height:1px; background:var(--gold); }

.section{ position:relative; padding:8rem 6vw; z-index:2; }
.section-alt{ background:var(--bg-2); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
@media (max-width:900px){ .section{ padding:5.5rem 6vw; } }

.section-head{ max-width:640px; margin-bottom:4rem; }
.section-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(2rem,4vw,3.1rem);
  line-height:1.1;
  letter-spacing:-.01em;
  margin-bottom:1rem;
}
.section-desc{ color:var(--muted); font-size:1.02rem; max-width:560px; }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.95rem 2rem;
  border-radius:8px;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:500;
  border:1px solid transparent;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-primary{
  background:var(--accent);
  color:var(--accent-ink);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 34px rgba(var(--accent-rgb),.3); }
.btn-ghost{
  background:transparent;
  border-color:var(--line-soft);
  color:var(--ink);
}
.btn-ghost:hover{ border-color:var(--purple-light); background:rgba(155,92,240,.08); }
.btn-sm{ padding:.62rem 1.3rem; font-size:.68rem; }
.btn-lg{ padding:1.1rem 2.6rem; font-size:.82rem; }
.btn-block{ width:100%; }

/* ---------- scroll progress + ticker ---------- */
#scroll-bar{
  position:fixed; top:0; left:0; height:2px; width:0%;
  background:var(--accent);
  z-index:1200;
}

/* ---------- promo bar (header #1) ---------- */
#promo-bar{
  position:fixed; top:0; left:0; right:0; z-index:1101;
  height:var(--promo-h,52px);
  background:var(--accent);
  border-bottom:1px solid rgba(0,0,0,.25);
}
.promo-inner{
  max-width:1600px; margin:0 auto; height:100%;
  display:flex; align-items:center; gap:1.1rem; padding:0 6vw;
}
.promo-badge{
  font-family:var(--font-display); font-size:.86rem; font-weight:800; letter-spacing:.04em;
  background:rgba(241, 3, 3, 0.8); color:#fff; padding:.42rem 1rem; border-radius:6px;
  flex-shrink:0; white-space:nowrap;
  box-shadow:0 0 0 2px rgba(255,255,255,.15), 0 6px 16px rgba(0,0,0,.25);
  animation:promoPulse 1.8s ease-in-out infinite;
}
@keyframes promoPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.06); } }
.promo-msg{
  font-family:var(--font-body); font-size:.94rem; font-weight:700; color:var(--accent-ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1;
}
.promo-msg strong{ text-decoration:underline; text-underline-offset:2px; }
.promo-countdown{ display:flex; gap:.4rem; flex-shrink:0; }
.cd-box{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:rgba(0,0,0,.32); border-radius:5px; padding:.18rem .45rem; min-width:36px;
}
.cd-box b{ font-family:var(--font-mono); font-size:.76rem; color:#fff; line-height:1.1; }
.cd-box small{ font-family:var(--font-mono); font-size:.46rem; color:rgba(255,255,255,.7); text-transform:uppercase; }
.promo-cta{
  flex-shrink:0; font-family:var(--font-mono); font-size:.68rem; font-weight:700; letter-spacing:.04em;
  background:#0a0a0a; color:var(--accent); padding:.48rem 1.05rem; border-radius:6px;
  white-space:nowrap; transition:transform .2s;
}
.promo-cta:hover{ transform:translateY(-2px); }
@media (max-width:920px){
  .promo-msg, .promo-badge{ display:none; }
  .promo-inner{ justify-content:space-between; padding:0 4vw; }
}
@media (max-width:560px){ .promo-countdown{ display:none; } }

#ticker-bar{
  position:fixed; top:var(--promo-h,52px); left:0; right:0; z-index:1100;
  height:35px; overflow:hidden;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  margin-top:0px;
}
.ticker-track{
  display:flex; gap:3.2rem; height:100%; align-items:center;
  white-space:nowrap;
  animation:tickerMove 34s linear infinite;
  padding-left:2rem;
}
@keyframes tickerMove{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.tick{
  font-family:var(--font-mono); font-size:.82rem; font-weight:700; letter-spacing:.08em;
  color:#FF3B3B;
}

/* ---------- header ---------- */
header{
  position:fixed; top:87px; left:0; right:0; z-index:1000;
  background:var(--header-bg);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line-soft);
  transition:background .3s;
}
/* El header y el nombre de la marca NUNCA se ocultan al hacer scroll */
header.solid{ background:var(--header-bg-solid); }

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:.7rem 6vw .7rem 3vw;
  max-width:1600px; margin:0 auto;
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.brand-group{ display:flex; align-items:center; gap:.9rem; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand-logo-only{ padding:.2rem 0; }
.brand-mark{
  width:38px; height:38px; border-radius:9px; object-fit:cover;
  box-shadow:0 0 0 1px var(--line), 0 8px 20px rgba(var(--accent-rgb),.14);
}
.brand-mark-lg{
  width:auto; height:58px; max-width:210px; border-radius:10px; object-fit:contain;
  transition:transform .25s var(--ease);
}
.brand-logo-only:hover .brand-mark-lg{ transform:scale(1.04); }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{
  font-family:var(--font-display); font-weight:700; font-size:1.05rem;
  letter-spacing:.02em; color:var(--brand-a);
}
.brand-name em{ font-style:normal; color:var(--brand-b); }
.brand-tag{
  font-family:var(--font-mono); font-size:.52rem; letter-spacing:.16em;
  color:var(--muted-2); text-transform:uppercase;
}
.brand-credit{
  font-family:var(--font-mono); font-size:.54rem; letter-spacing:.08em;
  color:var(--muted-2); text-transform:uppercase; white-space:nowrap;
  padding-left:.7rem; border-left:1px solid var(--line-soft); margin-left:.2rem;
}
.brand-credit strong{ color:var(--accent); font-weight:600; }

.nav{ display:flex; gap:1.5rem; }
.nav a{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.05em;
  color:var(--muted); text-transform:uppercase; position:relative; padding:.3rem 0;
  transition:color .25s;
}
.nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--accent);
  transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease);
}
.nav a:hover{ color:var(--ink); }
.nav a:hover::after{ transform:scaleX(1); }
.nav a{ white-space:nowrap; }
@media (max-width:1500px) and (min-width:1101px){
  .status-pill{ display:none; }
  .nav{ gap:1.05rem; }
  .nav a{ font-size:.64rem; letter-spacing:.03em; }
}
@media (max-width:1280px) and (min-width:1101px){
  .brand-credit{ display:none; }
  .nav{ gap:.8rem; }
  .nav a{ font-size:.6rem; letter-spacing:.01em; }
}

.header-actions{ display:flex; align-items:center; gap:.8rem; }
.status-pill{
  display:flex; align-items:center; gap:.5rem;
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.06em;
  color:var(--muted); border:1px solid var(--line-soft);
  padding:.35rem .75rem; border-radius:50px; text-transform:uppercase;
}
.status-dot{
  width:6px; height:6px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 8px var(--accent); animation:pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--accent); border-radius:2px; transition:transform .3s, opacity .3s; }

@media (max-width:640px){
  .header-inner{ padding-left:5vw; gap:.4rem; }
  .brand-mark-lg{ height:36px; max-width:120px; }
}
@media (max-width:560px){
  #loginOpen{ display:none; }
  .header-actions{ gap:.5rem; }
  .btn-sm{ padding:.5rem .85rem; font-size:.6rem; }
}
@media (max-width:380px){
  .brand-mark-lg{ height:32px; max-width:100px; }
}

@media (max-width:1180px){
  .status-pill{ display:none; }
}
@media (max-width:1100px){
  .nav{
    /* el backdrop-filter del header atrapa a position:fixed: se mide contra el header, no contra la pantalla */
    position:absolute; top:100%; left:0; right:0;
    height:calc(100vh - 87px - 100%); height:calc(100dvh - 87px - 100%);
    overflow-y:auto; overscroll-behavior:contain;
    padding:1.5rem 0 2.5rem; background:var(--nav-overlay-bg);
    flex-direction:column; align-items:center; gap:1.25rem;
    transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .3s, transform .3s;
  }
  .nav.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .nav a{ font-size:1rem; }
  .status-pill{ display:none; }
  .brand-credit{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- hero ---------- */
.hero{
  position:relative; min-height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:11.2rem 6vw 4rem; overflow:hidden;
}

/* campaign badge */
.launch-badge{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.14em; font-weight:600;
  color:var(--accent); text-transform:uppercase;
  border:1px solid rgba(var(--accent-rgb),.4); border-radius:50px;
  padding:.5rem 1.1rem; margin-bottom:1.6rem;
  background:rgba(var(--accent-rgb),.1);
}
.dot-live{ width:7px; height:7px; border-radius:50%; background:#3fae6a; box-shadow:0 0 8px #3fae6a; animation:pulseDot 1.6s ease-in-out infinite; }
.hero-title-lg{ font-size:clamp(2rem,5.6vw,4.3rem); }

/* countdown grande de lanzamiento */
.launch-countdown{
  margin:2.2rem auto 1.6rem; max-width:640px;
  border:1px solid var(--line-soft); border-radius:16px;
  background:var(--bg-2); padding:1.8rem 1.6rem;
}
.lc-label{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin-bottom:1.1rem;
}
.lc-label strong{ color:var(--accent); }
.lc-grid{ display:flex; justify-content:center; gap:.9rem; flex-wrap:wrap; margin-bottom:1rem; }
.lc-unit{ display:flex; flex-direction:column; align-items:center; }
.lc-num{
  font-family:var(--font-display); font-weight:700; font-size:clamp(2.2rem,5vw,3.4rem);
  color:var(--accent); line-height:1; min-width:1.6em;
}
.lc-tag{ font-family:var(--font-mono); font-size:.6rem; letter-spacing:.14em; color:var(--muted-2); text-transform:uppercase; margin-top:.4rem; }
.lc-sep{ font-family:var(--font-display); font-size:2rem; color:var(--muted-2); align-self:flex-start; margin-top:.3rem; }
.lc-date{ font-family:var(--font-mono); font-size:.72rem; color:var(--muted); }

/* banner de descuento + rifa */
.promo-highlight{
  display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; justify-content:center;
  max-width:640px; margin:0 auto 2.2rem;
  border:1px solid rgba(var(--accent-rgb),.35); border-radius:50px;
  background:rgba(var(--accent-rgb),.08);
  padding:.8rem 1.4rem;
}
.promo-highlight .ph-badge{
  display:inline-block;
  font-family:var(--font-display); font-weight:700; font-size:1.05rem; color:var(--accent);
  flex-shrink:0;
  animation:badge3D 3.6s ease-in-out infinite;
  transform-style:preserve-3d;
}
@keyframes badge3D{
  0%,100%{ transform:perspective(600px) rotateY(-14deg) rotateX(5deg); }
  50%{ transform:perspective(600px) rotateY(14deg) rotateX(-5deg); }
}
@media (prefers-reduced-motion: reduce){ .promo-highlight .ph-badge{ animation:none; } }
.promo-highlight p{ font-size:.84rem; color:var(--ink); text-align:left; flex:1; min-width:180px; }
.promo-highlight strong{ color:var(--accent); }

/* orbiting tech chips */
.orbit-stack{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.orbit-chip{
  position:absolute;
  font-family:var(--font-mono); font-weight:600; font-size:.72rem; letter-spacing:.03em;
  padding:.5rem 1rem; border-radius:50px; white-space:nowrap;
  border:1px solid var(--line);
  background:rgba(14,14,23,.55); backdrop-filter:blur(6px);
  animation:chipFloat 7s ease-in-out infinite;
  opacity:.9;
}
.chip-py{ top:16%; left:6%;  color:var(--gold-light);  border-color:rgba(242,194,48,.4); animation-delay:0s; }
.chip-js{ top:12%; right:8%; color:var(--purple-light); border-color:rgba(155,92,240,.45); animation-delay:1.2s; }
.chip-html{ top:42%; left:2%; color:var(--gold-light); border-color:rgba(242,194,48,.4); animation-delay:2.1s; }
.chip-css{ top:38%; right:3%; color:var(--purple-light); border-color:rgba(155,92,240,.45); animation-delay:.6s; }
.chip-sql{ bottom:26%; left:10%; color:var(--purple-light); border-color:rgba(155,92,240,.45); animation-delay:1.8s; }
.chip-git{ top:68%; right:12%; color:var(--gold-light); border-color:rgba(242,194,48,.4); animation-delay:2.7s; }
.chip-data{ bottom:12%; left:24%; color:var(--gold-light); border-color:rgba(242,194,48,.4); animation-delay:1.5s; }
.chip-soft{ bottom:10%; right:22%; color:var(--purple-light); border-color:rgba(155,92,240,.45); animation-delay:2.4s; }
@keyframes chipFloat{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-16px); }
}
@media (max-width:780px){ .orbit-chip{ display:none; } }

#network-canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; opacity:.85; }
.hero-vignette{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(ellipse at center, transparent 30%, var(--bg) 88%);
}
.hero-inner{ position:relative; z-index:2; max-width:900px; }

.hero-title{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2.5rem,6.4vw,5rem); line-height:1.04; letter-spacing:-.02em;
  margin-bottom:1.5rem;
}
.hero-desc{
  max-width:600px; margin:0 auto 2.4rem; color:var(--muted);
  font-size:1.08rem; line-height:1.8;
}

.hero-includes{
  display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem;
  max-width:640px; margin:0 auto 2.2rem; list-style:none;
}
.hero-includes li{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.02em;
  color:var(--ink); background:rgba(var(--accent-rgb),.09);
  border:1px solid rgba(var(--accent-rgb),.3); border-radius:50px;
  padding:.5rem 1rem; white-space:nowrap;
}

.hero-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-bottom:4rem; }

.hero-stats{
  display:flex; gap:3rem; justify-content:center; flex-wrap:wrap;
  padding-top:2.2rem; border-top:1px solid var(--line-soft);
}
.hstat{ display:flex; flex-direction:column; align-items:center; min-width:110px; }
.hstat-n{ font-family:var(--font-display); font-size:2.1rem; font-weight:700; color:var(--brand-a); display:inline; }
.hstat-suffix{ font-family:var(--font-display); font-size:2.1rem; font-weight:700; color:var(--brand-a); }
.hstat-l{ display:block; margin-top:.3rem; font-family:var(--font-mono); font-size:.6rem; letter-spacing:.1em; color:var(--muted-2); text-transform:uppercase; }

.reveal{ opacity:0; transform:translateY(22px); animation:riseIn .9s var(--ease) forwards; }
.hero-inner .eyebrow{ animation-delay:.05s; justify-content:center; }
.hero-title{ animation-delay:.15s; }
.hero-desc{ animation-delay:.3s; }
.hero-includes{ animation-delay:.38s; }
.hero-actions{ animation-delay:.45s; }
.hero-stats{ animation-delay:.6s; }
@keyframes riseIn{ to{ opacity:1; transform:translateY(0); } }

.scroll-cue{
  position:absolute; bottom:2.2rem; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.6rem; z-index:2;
}
.scroll-cue span{ font-family:var(--font-mono); font-size:.58rem; letter-spacing:.24em; color:var(--muted-2); text-transform:uppercase; }
.scroll-cue-line{ width:1px; height:44px; background:var(--accent); opacity:.5; position:relative; overflow:hidden; }
.scroll-cue-line::after{
  content:''; position:absolute; left:0; top:-100%; width:100%; height:40%;
  background:var(--accent-light);
  animation:cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop{ to{ top:100%; } }

/* ---------- trust band ---------- */
.trust-band{
  position:relative; z-index:2;
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
  background:var(--bg-2);
}
.trust-item{
  display:flex; align-items:center; gap:.7rem; justify-content:center;
  padding:1.5rem 1rem; text-align:center;
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.03em; color:var(--muted);
  border-right:1px solid var(--line-soft);
}
.trust-item:last-child{ border-right:none; }
.trust-item svg{ width:18px; height:18px; flex-shrink:0; fill:none; stroke:var(--gold); stroke-width:1.6; }
@media (max-width:900px){
  .trust-band{ grid-template-columns:repeat(2,1fr); }
  .trust-item{ border-bottom:1px solid var(--line-soft); }
}

/* ---------- temario / módulos del bootcamp ---------- */
.module-track{
  display:grid; grid-template-columns:repeat(6,1fr); gap:1rem;
}
@media (max-width:1100px){ .module-track{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){ .module-track{ grid-template-columns:repeat(2,1fr); } }

.schedule-info{
  margin-top:1.4rem; display:grid; grid-template-columns:repeat(4,1fr); gap:1rem;
}
@media (max-width:900px){ .schedule-info{ grid-template-columns:repeat(2,1fr); } }
.si-item{ min-width:0; overflow-wrap:break-word;
  border:1px solid var(--line-soft); border-radius:12px; padding:1.4rem 1.2rem;
  background:var(--bg); display:flex; flex-direction:column; gap:.5rem;
}
.si-num{ font-family:var(--font-display); font-weight:700; font-size:1.5rem; color:var(--accent); }
.si-label{ font-size:.8rem; color:var(--muted); line-height:1.5; }
.module-card{
  background:var(--bg); border:1px solid var(--line-soft); border-radius:12px;
  padding:1.6rem 1.2rem; text-align:left; transition:transform .3s var(--ease), border-color .3s;
  display:flex; flex-direction:column; min-width:0; overflow-wrap:break-word;
}
.module-card:hover{ transform:translateY(-6px); border-color:var(--line); }
.module-card h4{ font-family:var(--font-display); font-size:1rem; margin:.9rem 0 .4rem; }
.module-card p{ color:var(--muted); font-size:.8rem; line-height:1.6; }
.module-learn{ margin-bottom:.6rem; flex:1; }
.module-learn strong{ color:var(--ink); }
.module-ia{
  display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; font-size:.74rem !important;
  color:var(--muted-2) !important; padding-top:.6rem; border-top:1px dashed var(--line-soft);
  margin-top:auto;
}
.module-ia::before{ content:'🤖'; font-size:.8rem; }
.module-ia span{
  color:var(--accent); font-weight:600; font-family:var(--font-mono); font-size:.68rem; letter-spacing:.02em;
}
.module-tag{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:8px;
  font-family:var(--font-mono); font-size:.72rem; font-weight:700; color:#0a0a0a;
}
.mod-py{ background:var(--gold); }
.mod-js{ background:var(--purple-light); color:#fff; }
.mod-html{ background:var(--gold); }
.mod-sql{ background:var(--purple-light); color:#fff; }
.mod-git{ background:var(--gold); }
.mod-final{ background:var(--accent); color:var(--accent-ink); }
.module-final{ border-color:var(--accent); background:rgba(var(--accent-rgb),.08); }

/* ---------- decisión de camino ---------- */
.path-section{ text-align:center; }
.path-versus{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:1.2rem; align-items:center;
}
@media (max-width:960px){ .path-versus{ grid-template-columns:1fr; } .path-vs{ transform:rotate(90deg); } }
.path-step{
  display:inline-block; font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em;
  color:var(--muted-2); margin-bottom:.5rem;
}
.path-card{ min-width:0; overflow-wrap:break-word;
  text-align:left; border-radius:var(--radius); padding:2.4rem 2rem;
  border:1px solid var(--line-soft); position:relative; overflow:hidden;
  transition:transform .3s var(--ease);
}
.path-card:hover{ transform:translateY(-6px); }
.path-gold{ background:rgba(242,194,48,.08); border-color:rgba(242,194,48,.35); }
.path-purple{ background:rgba(155,92,240,.09); border-color:rgba(155,92,240,.4); }
.path-icon{
  width:48px; height:48px; border-radius:12px; margin-bottom:1.3rem;
  display:flex; align-items:center; justify-content:center;
  background:rgba(127,127,127,.14);
}
.path-icon svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.path-gold .path-icon{ color:var(--brand-a); }
.path-purple .path-icon{ color:var(--brand-b); }
.path-card h3{ font-family:var(--font-display); font-size:1.4rem; margin-bottom:.7rem; }
.path-card p{ color:var(--muted); font-size:.9rem; line-height:1.7; margin-bottom:1.4rem; }
.path-vs{
  font-family:var(--font-display); font-weight:700; font-size:1.1rem;
  color:var(--muted-2); width:52px; height:52px; border-radius:50%;
  border:1px solid var(--line-soft); display:flex; align-items:center; justify-content:center;
  margin:0 auto;
}

/* ---------- proyecto desplegado (browser mockup) ---------- */
.project-section .section-head{ margin-left:auto; margin-right:auto; text-align:center; max-width:640px; }
.project-section .section-desc{ margin:0 auto; }
.browser-mock{
  max-width:900px; margin:0 auto; border-radius:16px; overflow:hidden;
  border:1px solid var(--line-soft);
  box-shadow:0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--accent-rgb),.08), 0 18px 40px rgba(var(--accent-rgb),.1);
}
.browser-bar{
  display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem;
  background:#101018; border-bottom:1px solid var(--line-soft);
}
.bdot{ width:9px; height:9px; border-radius:50%; background:#3a3a46; }
.bdot:nth-child(1){ background:#e2564f; } .bdot:nth-child(2){ background:#e2b23f; } .bdot:nth-child(3){ background:#3fae6a; }
.browser-url{
  flex:1; margin-left:.6rem; font-family:var(--font-mono); font-size:.68rem; color:var(--muted-2);
  background:var(--bg); border:1px solid var(--line-soft); border-radius:6px; padding:.3rem .7rem;
}
.live-badge{
  font-family:var(--font-mono); font-size:.6rem; color:#3fae6a; letter-spacing:.06em;
  border:1px solid rgba(63,174,106,.35); border-radius:50px; padding:.25rem .6rem;
}
.browser-body{ display:grid; grid-template-columns:130px 1fr; background:var(--bg-2); min-height:320px; }
@media (max-width:640px){ .browser-body{ grid-template-columns:70px 1fr; } }
.mock-sidebar{ background:#0C0C14; border-right:1px solid var(--line-soft); padding:1.4rem 1rem; display:flex; flex-direction:column; gap:1rem; }
.mock-logo{ width:26px; height:26px; border-radius:6px; background:var(--accent); margin-bottom:.6rem; }
.mock-nav-item{
  height:9px; border-radius:4px; background:rgba(255,255,255,.08);
  border:none; padding:0; width:100%; cursor:pointer; transition:background .25s;
}
.mock-nav-item.deco{ cursor:default; }
.mock-nav-item:hover{ background:rgba(255,255,255,.16); }
.mock-nav-item.active{ background:var(--accent); box-shadow:0 0 12px rgba(var(--accent-rgb),.6); }

.mock-main{ padding:1.4rem 1.6rem 1.6rem; display:flex; flex-direction:column; gap:1.1rem; min-height:320px; }

.mock-tabs{ display:flex; gap:.5rem; flex-wrap:wrap; }
.mock-tab{
  font-family:var(--font-mono); font-size:.64rem; letter-spacing:.04em; text-transform:uppercase;
  color:var(--muted); background:transparent; border:1px solid var(--line-soft); border-radius:50px;
  padding:.5rem 1.05rem; cursor:pointer; transition:color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.mock-tab:hover{ color:var(--ink); border-color:var(--line); transform:translateY(-1px); }
.mock-tab.active{
  color:var(--accent-ink); background:var(--accent); border-color:var(--accent);
  box-shadow:0 8px 20px rgba(var(--accent-rgb),.35);
}

.mock-panel{ display:none; flex-direction:column; gap:1.1rem; animation:panelIn .45s var(--ease); }
.mock-panel.active{ display:flex; }
@keyframes panelIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:translateY(0); } }

.mock-kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:.8rem; }
.mock-kpi{
  height:54px; border-radius:9px; background:var(--bg); border:1px solid var(--line-soft);
  display:flex; align-items:center; padding:0 1rem; transition:transform .25s var(--ease), box-shadow .25s;
}
.mock-kpi:hover{ transform:translateY(-3px); box-shadow:0 10px 22px rgba(0,0,0,.25); }
.mock-kpi span{ display:block; width:60%; height:8px; border-radius:4px; background:var(--gold); }
.mock-kpi:nth-child(2) span{ background:var(--purple-light); width:45%; }
.mock-kpi:nth-child(3) span{ background:var(--accent); width:75%; }
.mock-chart{
  height:140px; display:flex; align-items:flex-end; gap:.7rem;
  background:var(--bg); border:1px solid var(--line-soft); border-radius:10px; padding:1rem 1.2rem;
}
.mock-chart .bar{
  flex:1; height:var(--h); border-radius:5px 5px 2px 2px;
  background:var(--gold);
  box-shadow:0 0 14px rgba(var(--accent-rgb),.25);
  animation:barGrow 1.4s var(--ease) both;
}
.mock-chart .bar:nth-child(even){ background:var(--purple-light); box-shadow:0 0 14px rgba(155,92,240,.28); }
@keyframes barGrow{ from{ transform:scaleY(0); transform-origin:bottom; } to{ transform:scaleY(1); transform-origin:bottom; } }
.mock-table{ display:grid; gap:.5rem; }
.mock-row{ height:12px; border-radius:4px; background:rgba(255,255,255,.06); }
.mock-row:nth-child(2){ width:85%; } .mock-row:nth-child(3){ width:70%; }

/* gráficas interactivas — tipo Plotly (línea suave + área) */
.plotly-chart{
  background:var(--bg); border:1px solid var(--line-soft); border-radius:12px;
  padding:.8rem .9rem .4rem;
}
.plotly-chart svg{ width:100%; height:170px; display:block; overflow:visible; }
.pg-grid line{ stroke:var(--line-soft); stroke-width:1; }
.pg-area{ fill:rgba(var(--accent-rgb),.14); stroke:none; transition:d .8s var(--ease); }
.pg-line{
  fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
  transition:d .8s var(--ease);
  filter:drop-shadow(0 0 6px rgba(var(--accent-rgb),.5));
}
.pg-dot{
  fill:var(--bg); stroke:var(--accent); stroke-width:2.5; cursor:pointer;
  transition:cx .8s var(--ease), cy .8s var(--ease), r .2s;
}
.pg-dot:hover{ r:6.5; fill:var(--accent); }
.pg-xlabels{
  display:flex; justify-content:space-between; padding:.3rem 2px 0;
  font-family:var(--font-mono); font-size:.6rem; color:var(--muted-2);
}
.gchart-head{ display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:.9rem; }
.gchart-value{ display:flex; flex-direction:column; }
.gchart-value span{ font-family:var(--font-display); font-weight:700; font-size:2.1rem; color:var(--accent); line-height:1; text-shadow:0 0 22px rgba(var(--accent-rgb),.35); }
.gchart-value small{ font-family:var(--font-mono); font-size:.62rem; letter-spacing:.08em; color:var(--muted-2); text-transform:uppercase; margin-top:.4rem; }
.gchart-buttons{ display:flex; gap:.5rem; flex-wrap:wrap; }
.gchart-btn{
  font-family:var(--font-mono); font-size:.64rem; letter-spacing:.03em; font-weight:600;
  color:var(--muted); background:var(--bg); border:1px solid var(--line-soft); border-radius:9px;
  padding:.5rem .95rem; cursor:pointer; transition:color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.gchart-btn:hover{ color:var(--ink); border-color:var(--line); transform:translateY(-2px); }
.gchart-btn.active{
  color:var(--accent-ink); background:var(--accent); border-color:var(--accent);
  box-shadow:0 8px 18px rgba(var(--accent-rgb),.35);
}

/* tabla interactiva */
.gtable{ border:1px solid var(--line-soft); border-radius:10px; overflow:hidden; }
.gtable-row{
  display:grid; grid-template-columns:1.1fr 1fr .8fr; gap:.6rem; align-items:center;
  padding:.8rem 1.05rem; font-size:.78rem; color:var(--ink);
  border-bottom:1px solid var(--line-soft); transition:background .2s;
}
.gtable-row:last-child{ border-bottom:none; }
.gtable-row:not(.gtable-head):hover{ background:rgba(var(--accent-rgb),.08); }
.gtable-head{ font-family:var(--font-mono); font-size:.6rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); }
.gpill{
  justify-self:start; font-family:var(--font-mono); font-size:.6rem; font-weight:600; letter-spacing:.04em;
  padding:.24rem .6rem; border-radius:50px; width:fit-content;
}
.gpill.ok{ color:#3fae6a; background:rgba(63,174,106,.14); }
.gpill.pending{ color:var(--accent); background:rgba(var(--accent-rgb),.14); }

@media (max-width:640px){
  .mock-main{ padding:1.1rem; }
  .gtable-row{ grid-template-columns:1fr 1fr; font-size:.72rem; }
  .gtable-row span:nth-child(2){ display:none; }
  .gtable-head span:nth-child(2){ display:none; }
}

/* ---------- mapa 3D de horarios (globo real WebGL) ---------- */
.globe-section{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:2.6rem;
}
.globe-scene{
  position:relative; width:min(420px, 90vw); height:420px; flex-shrink:0;
  border-radius:20px; overflow:hidden;
  background:radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb),.1), var(--bg-2) 70%);
  border:1px solid var(--line-soft);
  box-shadow:0 40px 90px rgba(0,0,0,.45), inset 0 0 60px rgba(0,0,0,.35);
}
#globeViz{ width:100%; height:100%; cursor:grab; }
#globeViz:active{ cursor:grabbing; }
.globe-hint{
  position:absolute; left:0; right:0; bottom:10px; text-align:center;
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.04em; color:var(--muted-2);
  pointer-events:none;
}

.globe-info{
  display:flex; align-items:center; gap:1.1rem;
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:16px;
  padding:1.4rem 1.8rem; min-width:240px; transition:transform .2s;
}
.globe-flag{ font-size:2.4rem; line-height:1; }
.globe-info strong{ display:block; font-family:var(--font-display); font-size:1.1rem; }
.globe-info small{ display:block; font-family:var(--font-mono); font-size:.66rem; color:var(--muted-2); text-transform:uppercase; letter-spacing:.06em; margin:.2rem 0 .5rem; }
.globe-time{ font-family:var(--font-display); font-weight:700; font-size:1.4rem; color:var(--accent); }

/* marcadores del globo: luz pulsante + bandera, clicables */
.geo-marker{
  position:relative; display:flex; flex-direction:column; align-items:center;
  transform:translate(-50%, -100%); cursor:pointer; pointer-events:auto;
}
.geo-dot{
  width:9px; height:9px; border-radius:50%; background:var(--accent);
  box-shadow:0 0 8px var(--accent), 0 0 18px rgba(var(--accent-rgb),.7);
  animation:geoPulse 1.8s ease-in-out infinite;
}
.geo-marker.host .geo-dot{
  background:#fff; box-shadow:0 0 10px #fff, 0 0 22px rgba(255,255,255,.8);
}
@keyframes geoPulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.5); opacity:.55; }
}
.geo-flag{
  font-size:1.15rem; line-height:1; margin-top:3px;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.7));
  transition:transform .2s var(--ease);
}
.geo-marker:hover .geo-flag, .geo-marker.active .geo-flag{ transform:scale(1.5) translateY(-2px); }

/* ---------- inversión / precios ---------- */
.price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
@media (max-width:900px){ .price-grid{ grid-template-columns:1fr; } }
.price-card{ min-width:0; overflow-wrap:break-word;
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:var(--radius);
  padding:2.2rem 1.8rem; display:flex; flex-direction:column; gap:.6rem;
}
.price-highlight{
  border-color:rgba(var(--accent-rgb),.5); background:rgba(var(--accent-rgb),.06);
  position:relative;
}
.price-tag{
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted-2);
}
.price-amount{
  font-family:var(--font-display); font-weight:700; font-size:2.1rem; color:var(--ink);
}
.price-highlight .price-amount{
  color:var(--accent); display:inline-block;
  animation:badge3D 3.6s ease-in-out infinite; transform-style:preserve-3d;
}
@media (prefers-reduced-motion: reduce){ .price-highlight .price-amount{ animation:none; } }
.price-amount small{ font-size:.9rem; font-weight:600; color:var(--muted-2); }
.price-alt{ font-family:var(--font-mono); font-size:.74rem; color:var(--muted); }
.price-multi{ display:flex; gap:1rem; flex-wrap:wrap; font-family:var(--font-mono); font-size:.8rem; color:var(--muted); }
.price-final{ margin-top:.3rem; }
.price-final span{ color:var(--accent); font-weight:700; }
.price-final small{ color:var(--muted-2); font-weight:400; }
.price-multi small{ color:var(--muted-2); font-size:.68rem; }
.pdf-download-inline{ margin-top:.9rem; align-self:flex-start; }
.price-note{ font-size:.82rem; color:var(--muted); line-height:1.6; margin:.4rem 0 .6rem; }
.price-card .btn{ margin-top:auto; }

/* ---------- métodos de pago ---------- */
.pay-methods{ margin-top:2.8rem; padding-top:2.4rem; border-top:1px solid var(--line-soft); text-align:center; }
.pay-title{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted-2); margin-bottom:1.4rem;
}
.pay-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; max-width:760px; margin:0 auto; }
@media (max-width:700px){ .pay-grid{ grid-template-columns:1fr; } }
.pay-card{ min-width:0; overflow-wrap:break-word;
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:14px;
  padding:1.4rem; display:flex; flex-direction:column; align-items:center; gap:.6rem;
}
.pay-qr{ width:96px; height:96px; border-radius:8px; background:#fff; padding:6px; }
.pay-card-text{ justify-content:center; min-height:96px; }
.pay-label{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.04em; color:var(--muted); }
.pay-link{ font-family:var(--font-display); font-weight:600; font-size:.9rem; color:var(--accent); }
.pay-note{ margin-top:1.3rem; font-size:.78rem; color:var(--muted-2); }

/* ---------- práctica de Python en vivo ---------- */
.py-playground{
  max-width:900px; margin:0 auto; border-radius:14px; overflow:hidden;
  border:1px solid var(--line-soft); box-shadow:0 40px 90px rgba(0,0,0,.5);
  background:#0B0B12;
}
.py-bar{
  display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem;
  background:#101018; border-bottom:1px solid var(--line-soft);
}
.py-filename{ margin-left:.6rem; font-family:var(--font-mono); font-size:.68rem; color:var(--muted-2); }
.py-status{
  margin-left:auto; font-family:var(--font-mono); font-size:.62rem; color:var(--accent);
}
.py-body{ display:grid; grid-template-columns:1fr 1fr; min-height:260px; }
@media (max-width:760px){ .py-body{ grid-template-columns:1fr; } }
.py-editor{
  width:100%; height:100%; min-height:260px; resize:vertical;
  background:#0B0B12; color:var(--brand-a); border:none; border-right:1px solid var(--line-soft);
  font-family:var(--font-mono); font-size:.82rem; line-height:1.7; padding:1.2rem;
}
.py-editor:focus{ outline:none; background:#0E0E16; }
.py-output{
  padding:1.2rem; font-family:var(--font-mono); font-size:.82rem; line-height:1.7;
  color:#8ce29a; white-space:pre-wrap; overflow-y:auto; max-height:400px;
}
.py-output.py-error{ color:#ff8177; }
.py-placeholder{ color:var(--muted-2); }
.py-actions{ display:flex; gap:.7rem; padding:1rem 1.2rem; border-top:1px solid var(--line-soft); }

/* ---------- programas ---------- */
.pdf-download-link{
  display:inline-flex; align-items:center; gap:.5rem; margin-top:1.3rem;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.04em;
  color:var(--accent); border:1px solid rgba(var(--accent-rgb),.4); border-radius:8px;
  padding:.6rem 1rem; transition:background .2s, transform .2s;
}
.pdf-download-link:hover{ background:rgba(var(--accent-rgb),.1); transform:translateY(-2px); }
.program-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem;
}
@media (max-width:1000px){ .program-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .program-grid{ grid-template-columns:1fr; } }

.program-card{ min-width:0; overflow-wrap:break-word;
  position:relative; background:var(--bg-2);
  border:1px solid var(--line-soft); border-radius:var(--radius);
  padding:2.2rem 1.8rem; transition:transform .35s var(--ease), border-color .35s, background .35s;
  overflow:hidden;
}
.program-card::before{
  content:''; position:absolute; inset:0; opacity:0; transition:opacity .35s;
  background:radial-gradient(circle at 30% 0%, rgba(242,194,48,.12), transparent 55%);
}
.program-card:hover{ transform:translateY(-8px); border-color:var(--line); }
.program-card:hover::before{ opacity:1; }
.program-index{
  font-family:var(--font-mono); font-size:.7rem; color:var(--muted-2); margin-bottom:1.6rem;
}
.program-icon{
  width:46px; height:46px; border-radius:10px; margin-bottom:1.4rem;
  display:flex; align-items:center; justify-content:center;
  background:rgba(var(--accent-rgb),.12);
  border:1px solid var(--line);
}
.program-icon svg{ width:22px; height:22px; fill:none; stroke:var(--brand-a); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.program-card h3{ font-family:var(--font-display); font-size:1.3rem; font-weight:600; margin-bottom:.7rem; }
.program-card p{ color:var(--muted); font-size:.92rem; line-height:1.7; margin-bottom:1.4rem; }
.program-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1.6rem; }
.program-tags li{
  font-family:var(--font-mono); font-size:.6rem; letter-spacing:.03em;
  color:var(--muted); border:1px solid var(--line-soft); border-radius:5px; padding:.3rem .55rem;
}
.program-link{
  display:inline-flex; align-items:center; gap:.4rem;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--brand-a);
}
.program-link span{ transition:transform .25s; }
.program-card:hover .program-link span{ transform:translateX(4px); }

/* ---------- metodología / proceso ---------- */
.process{
  position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:2rem;
}
.process-line{
  position:absolute; top:22px; left:6%; right:6%; height:1px;
  background:var(--accent);
  opacity:.35;
}
@media (max-width:900px){ .process{ grid-template-columns:1fr; gap:2.6rem; } .process-line{ display:none; } }
.process-step{ position:relative; }
.process-num{
  font-family:var(--font-display); font-size:1.3rem; font-weight:700;
  width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--bg); border:1px solid var(--brand-a); color:var(--brand-a);
  margin-bottom:1.3rem; position:relative; z-index:2;
}
.process-step h4{ font-family:var(--font-display); font-size:1.1rem; margin-bottom:.6rem; }
.process-step p{ color:var(--muted); font-size:.9rem; line-height:1.7; max-width:280px; }

/* ---------- nosotros ---------- */
.about-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:4.5rem; align-items:center;
}
@media (max-width:960px){ .about-grid{ grid-template-columns:1fr; gap:3rem; } }

.feature-list{ display:grid; gap:1.4rem; margin-top:2.4rem; }
.feature-item{ display:flex; gap:1rem; align-items:flex-start; }
.feature-icon{ color:var(--brand-b); font-size:.85rem; margin-top:.3rem; }
.feature-item h5{ font-family:var(--font-display); font-size:1rem; margin-bottom:.3rem; }
.feature-item p{ color:var(--muted); font-size:.88rem; }

.about-panel{ position:relative; }
.panel-glow{
  position:absolute; inset:-40px; z-index:0;
  background:radial-gradient(circle at 70% 20%, rgba(108,37,204,.35), transparent 60%),
             radial-gradient(circle at 20% 80%, rgba(242,194,48,.22), transparent 55%);
  filter:blur(30px);
}
@media (max-width:480px){ .panel-glow{ inset:-10px; } }
.terminal{
  position:relative; z-index:1; background:#0B0B12; border:1px solid var(--line-soft);
  border-radius:12px; overflow:hidden; box-shadow:0 30px 60px rgba(0,0,0,.5);
}
.terminal-bar{
  display:flex; align-items:center; gap:.4rem; padding:.75rem 1rem;
  background:#101018; border-bottom:1px solid var(--line-soft);
}
.terminal-bar span{ width:9px; height:9px; border-radius:50%; background:#3a3a46; }
.terminal-bar span:nth-child(1){ background:#e2564f; }
.terminal-bar span:nth-child(2){ background:#e2b23f; }
.terminal-bar span:nth-child(3){ background:#3fae6a; }
.terminal-title{ margin-left:.6rem; font-family:var(--font-mono); font-size:.65rem; color:var(--muted-2); }
.code-tabs{
  display:flex; gap:.3rem; flex-wrap:wrap; padding:.7rem .9rem 0;
  background:#0B0B12; border-bottom:1px solid var(--line-soft);
}
.code-tab{
  font-family:var(--font-mono); font-size:.62rem; letter-spacing:.03em;
  color:var(--muted-2); background:transparent; border:none;
  padding:.5rem .8rem .6rem; cursor:pointer; border-bottom:2px solid transparent;
  transition:color .2s, border-color .2s;
}
.code-tab:hover{ color:var(--ink); }
.code-tab.active{ color:var(--accent); border-color:var(--accent); }
.terminal-body{
  font-family:var(--font-mono); font-size:.82rem; line-height:1.85; color:var(--brand-a);
  padding:1.6rem 1.5rem; min-height:280px; white-space:pre-wrap; word-break:break-word;
}

/* ---------- instructoras / equipo ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.6rem; }
@media (max-width:800px){ .team-grid{ grid-template-columns:1fr; } }
.team-card{ min-width:0; overflow-wrap:break-word;
  background:var(--bg); border:1px solid var(--line-soft); border-radius:var(--radius);
  padding:1.8rem 1.8rem 2rem; display:flex; flex-direction:column; gap:1.3rem;
}
.team-head{ display:flex; align-items:center; gap:1rem; }
.team-photo{
  width:64px; height:64px; border-radius:50%; object-fit:cover; object-position:top center;
  border:2px solid var(--accent); flex-shrink:0;
}
.team-head h3{ font-family:var(--font-display); font-size:1.1rem; font-weight:600; margin-bottom:.25rem; }
.team-role{
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.05em; color:var(--accent);
  text-transform:uppercase;
}
.team-facts{ display:grid; gap:.55rem; }
.team-facts li{
  position:relative; padding-left:1.1rem; font-size:.84rem; color:var(--muted); line-height:1.5;
}
.team-facts li::before{
  content:'—'; position:absolute; left:0; top:0; color:var(--accent);
}
.team-linkedin{
  display:inline-flex; align-items:center; gap:.4rem; align-self:flex-start;
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.04em;
  color:var(--muted); border:1px solid var(--line-soft); border-radius:50px;
  padding:.4rem .85rem; margin-top:.3rem; transition:color .2s, border-color .2s;
}
.team-linkedin:hover{ color:var(--accent); border-color:var(--accent); }

/* ---------- testimonios ---------- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
@media (max-width:900px){ .testi-grid{ grid-template-columns:1fr; } }
.testi-card{ min-width:0; overflow-wrap:break-word;
  background:var(--bg); border:1px solid var(--line-soft); border-radius:var(--radius);
  padding:2rem; display:flex; flex-direction:column; gap:1.6rem;
}
.testi-card p{ color:var(--ink); font-size:.96rem; line-height:1.75; }
.testi-card footer{ display:flex; align-items:center; gap:.8rem; }
.testi-avatar{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.7rem; font-weight:600;
  background:var(--accent); color:var(--accent-ink);
}
.testi-card footer strong{ display:block; font-size:.85rem; }
.testi-card footer small{ display:block; color:var(--muted-2); font-size:.72rem; font-family:var(--font-mono); }

/* ---------- CTA band ---------- */
.cta-band{
  position:relative; overflow:hidden; padding:6.5rem 6vw; text-align:center;
  background:var(--bg-3);
  border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
}
#cta-canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.5; z-index:0; }
.cta-inner{ position:relative; z-index:2; max-width:640px; margin:0 auto; }
.cta-inner h2{ font-family:var(--font-display); font-size:clamp(1.8rem,3.6vw,2.6rem); font-weight:600; margin-bottom:1rem; line-height:1.2; }
.cta-inner p{ color:var(--muted); margin-bottom:2rem; }

/* ---------- contacto (sin formulario) ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:4rem; }
@media (max-width:960px){ .contact-grid{ grid-template-columns:1fr; gap:2.8rem; } }
.contact-grid-solo{ grid-template-columns:1fr; max-width:640px; margin:0 auto; text-align:center; }
.contact-grid-solo .section-desc{ margin:0 auto; }
.contact-grid-solo .eyebrow{ justify-content:center; }
.contact-info{ display:grid; gap:1.2rem; margin-top:2.2rem; text-align:left; }
.contact-info div{ display:flex; flex-direction:column; gap:.2rem; border-left:2px solid var(--accent); padding-left:1rem; }
.contact-info span{ font-family:var(--font-mono); font-size:.62rem; letter-spacing:.1em; color:var(--muted-2); text-transform:uppercase; }
.contact-info strong{ font-size:.98rem; }
.contact-cta{ margin-top:2.2rem; }

/* ---------- footer ---------- */
.footer{ position:relative; z-index:2; background:var(--bg-2); border-top:1px solid var(--line-soft); padding:5rem 6vw 2rem; }
.footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:3rem; margin-bottom:3.5rem; }
.footer-links{ display:flex; gap:4rem; flex-wrap:wrap; }
.footer-links h6{ font-family:var(--font-mono); font-size:.62rem; letter-spacing:.14em; color:var(--muted-2); text-transform:uppercase; margin-bottom:1rem; }
.footer-links a{ display:block; color:var(--muted); font-size:.86rem; margin-bottom:.65rem; transition:color .2s; }
.footer-links a:hover{ color:var(--brand-a); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.8rem;
  border-top:1px solid var(--line-soft); padding-top:1.6rem;
  font-family:var(--font-mono); font-size:.68rem; color:var(--muted-2);
}
.footer-bottom strong{ color:var(--accent); font-weight:600; }

/* ---------- dock de tema: fijo al borde de la pantalla ---------- */
.theme-dock{
  position:fixed; top:50%; right:0; transform:translateY(-50%);
  z-index:980;
  display:flex; flex-direction:column; align-items:center; gap:.55rem;
  padding:.6rem .4rem; border-radius:12px 0 0 12px;
  background:rgba(127,127,127,.08);
  border:1px solid var(--line-soft); border-right:none;
  backdrop-filter:blur(10px);
  opacity:.55; transition:opacity .3s;
}
.theme-dock:hover{ opacity:1; }
.theme-dock .theme-btn{
  width:13px; height:13px; border-radius:50%; border:1.5px solid rgba(127,127,127,.4);
  background:var(--gold); padding:0; cursor:pointer;
  transition:border-color .2s, transform .2s, box-shadow .2s;
  position:relative; overflow:hidden; flex-shrink:0;
}
.theme-dock .theme-btn:hover{ transform:scale(1.35); }
.theme-dock .theme-btn.purple{ background:var(--purple); }
.theme-dock .theme-btn.white{ background:#fff; border-color:rgba(0,0,0,.25); }
.theme-dock .theme-btn.white::before,
.theme-dock .theme-btn.white::after{ content:''; position:absolute; top:0; width:50%; height:100%; }
.theme-dock .theme-btn.white::before{ left:0; background:var(--gold); }
.theme-dock .theme-btn.white::after{ right:0; background:var(--purple); }
.theme-dock .theme-btn[aria-pressed="true"]{
  border-color:var(--ink); box-shadow:0 0 0 2px var(--bg), 0 0 0 3px var(--ink);
  transform:scale(1.3);
}
@media (max-width:640px){
  .theme-dock{ top:auto; bottom:9.4rem; right:0; transform:none; flex-direction:row; border-radius:10px 0 0 10px; }
}
#toTop{
  position:fixed; bottom:6.6rem; right:1.8rem; z-index:900;
  width:46px; height:46px; border-radius:50%; border:1px solid var(--line);
  background:rgba(14,14,23,.85); backdrop-filter:blur(10px); color:var(--accent);
  font-size:1.1rem; opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .3s, transform .3s, border-color .3s;
}
#toTop.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
#toTop:hover{ border-color:var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-fab{
  position:fixed; left:1.6rem; bottom:1.8rem; z-index:900;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#0a0a0a;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px rgba(37,211,102,.35);
  transition:transform .25s;
}
.whatsapp-fab:hover{ transform:translateY(-4px) scale(1.04); }
.fab-ping{
  position:absolute; inset:0; border-radius:50%; border:2px solid #25D366;
  animation:fabPing 2.2s ease-out infinite;
}
@keyframes fabPing{ 0%{ transform:scale(1); opacity:.7; } 100%{ transform:scale(1.7); opacity:0; } }

/* ---------- chatbot widget ---------- */
/* ---------- modal de login ---------- */
.login-overlay{
  position:fixed; inset:0; z-index:1400; display:none;
  align-items:center; justify-content:center;
  background:rgba(4,4,8,.72); backdrop-filter:blur(6px);
  padding:1.5rem;
}
.login-overlay.open{ display:flex; }
.login-modal{
  position:relative; width:min(380px, 100%);
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:16px;
  padding:2.2rem 2rem; text-align:center;
  box-shadow:0 40px 90px rgba(0,0,0,.5);
  animation:loginPop .35s var(--ease);
}
@keyframes loginPop{ from{ opacity:0; transform:translateY(14px) scale(.97); } to{ opacity:1; transform:none; } }
.login-close{
  position:absolute; top:.9rem; right:.9rem; background:none; border:none;
  color:var(--muted); font-size:1rem; opacity:.7;
}
.login-close:hover{ opacity:1; }
.login-logo{ width:auto; height:64px; max-width:200px; border-radius:11px; object-fit:contain; margin:0 auto 1rem; }

/* mascota que reacciona al hacer clic en el correo */
.login-mascot{
  position:absolute; top:-26px; right:24px; width:56px; height:56px; border-radius:50%;
  border:3px solid var(--accent); object-fit:cover; background:var(--bg-2);
  box-shadow:0 8px 20px rgba(0,0,0,.4);
  transform:rotate(-8deg); transition:transform .4s var(--ease);
}
.login-mascot.wiggle{ animation:mascotWiggle .7s ease; }
@keyframes mascotWiggle{
  0%,100%{ transform:rotate(-8deg) scale(1); }
  25%{ transform:rotate(10deg) scale(1.15); }
  50%{ transform:rotate(-14deg) scale(1.1); }
  75%{ transform:rotate(8deg) scale(1.15); }
}

/* animación fantástica de destellos al enfocar el campo de usuario */
.login-field-wrap{ position:relative; }
.sparkle-zone{ position:absolute; inset:0; pointer-events:none; overflow:visible; }
.sparkle{
  position:absolute; top:50%; left:16px; width:6px; height:6px; border-radius:50%;
  background:var(--accent); opacity:0;
  animation:sparkleBurst .8s ease-out forwards;
}
.sparkle.alt{ background:var(--purple-light); }
@keyframes sparkleBurst{
  0%{ opacity:1; transform:translate(0,0) scale(1); }
  100%{ opacity:0; transform:translate(var(--sx), var(--sy)) scale(.2); }
}
.login-field-wrap input:focus{
  animation:fieldGlow 1s ease-in-out infinite;
}
@keyframes fieldGlow{
  0%,100%{ box-shadow:0 0 0 3px rgba(var(--accent-rgb),.14); }
  50%{ box-shadow:0 0 0 5px rgba(var(--accent-rgb),.28), 0 0 18px rgba(var(--accent-rgb),.35); }
}
.login-modal h3{ font-family:var(--font-display); font-size:1.2rem; margin-bottom:.4rem; }
.login-sub{ font-size:.82rem; color:var(--muted); margin-bottom:1.5rem; line-height:1.5; }
.login-modal form{ display:grid; gap:1rem; text-align:left; }
.login-modal label{
  display:flex; flex-direction:column; gap:.5rem;
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.06em; color:var(--muted); text-transform:uppercase;
}
.login-modal input{
  background:var(--bg); border:1px solid var(--line-soft); border-radius:8px;
  padding:.75rem .9rem; color:var(--ink); font-size:.9rem; font-family:var(--font-body);
  transition:border-color .25s, box-shadow .25s;
}
.login-modal input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb),.14); }
.login-note{
  margin-top:1.3rem; font-size:.72rem; color:var(--muted-2); line-height:1.5;
  border-top:1px solid var(--line-soft); padding-top:1.1rem;
}

/* ---------- saludo de bienvenida ---------- */
.welcome-overlay{
  position:fixed; inset:0; z-index:1500; display:flex;
  align-items:center; justify-content:center;
  background:radial-gradient(circle at 50% 30%, var(--bg-2), var(--bg) 72%);
  opacity:1; transition:opacity .6s ease, visibility .6s;
  overflow:hidden;
}
.welcome-overlay.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.welcome-card{
  position:relative; text-align:center; max-width:420px; padding:2rem;
  transition:opacity .5s ease, transform .5s var(--ease), filter .5s ease;
}
.welcome-card.dissolve{
  opacity:0; transform:scale(.75) rotate(-3deg); filter:blur(6px);
}

/* --- reloj de cuenta regresiva --- */
.welcome-clock{
  display:flex; flex-direction:column; align-items:center; gap:1rem;
  transition:opacity .4s ease, transform .4s ease;
}
.welcome-clock.fade-out{ opacity:0; transform:scale(.85); }
.welcome-clock-ring{ width:130px; height:130px; }
.welcome-clock-ringwrap{ position:relative; width:130px; height:130px; display:flex; align-items:center; justify-content:center; }
.wc-track{
  fill:none; stroke:var(--line-soft); stroke-width:4;
}
.wc-progress{
  fill:none; stroke:var(--accent); stroke-width:4; stroke-linecap:round;
  stroke-dasharray:352; stroke-dashoffset:352;
  transform:rotate(-90deg); transform-origin:65px 65px;
  animation:wcFill 3s linear forwards;
  filter:drop-shadow(0 0 8px rgba(var(--accent-rgb),.6));
}
@keyframes wcFill{ to{ stroke-dashoffset:0; } }
.welcome-clock-num{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:3rem; color:var(--ink);
}
.welcome-clock-num.pop{ animation:wcPop .5s var(--ease); }
@keyframes wcPop{
  0%{ transform:scale(.4); opacity:0; }
  50%{ transform:scale(1.3); opacity:1; }
  100%{ transform:scale(1); opacity:1; }
}
.welcome-clock-label{
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted-2);
}
.welcome-clock-date{
  font-family:var(--font-display); font-weight:700; font-size:.92rem;
  color:var(--accent); margin-top:.3rem;
}

/* --- contenido revelado tras la cuenta regresiva --- */
.welcome-content{
  opacity:0; transform:scale(.9); pointer-events:none;
  transition:opacity .6s var(--ease), transform .6s var(--ease);
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.welcome-content.show{ opacity:1; transform:none; pointer-events:auto; position:relative; }
.welcome-eyebrow{
  font-family:var(--font-mono); font-size:.78rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent); margin-bottom:1rem; font-weight:700;
}
.welcome-days{ display:flex; flex-direction:column; align-items:center; margin-bottom:1.6rem; }
.welcome-days-num{
  font-family:var(--font-display); font-weight:800; font-size:clamp(4rem,14vw,7rem); line-height:1;
  color:var(--accent); text-shadow:0 0 40px rgba(var(--accent-rgb),.45);
  animation:welcomeBounce 2.4s ease-in-out infinite;
}
@keyframes welcomeBounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
.welcome-days-label{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); margin-top:.5rem;
}
.welcome-copy{
  font-family:var(--font-display); font-size:clamp(1.05rem,2.6vw,1.35rem); font-weight:600;
  line-height:1.55; margin-bottom:1.8rem; color:var(--ink);
}
.welcome-copy strong{ color:var(--accent); }
@media (prefers-reduced-motion: reduce){ .welcome-days-num{ animation:none; } }

/* --- estela de partículas al cerrar (respaldo si falla la fragmentación real) --- */
.welcome-trail{ position:fixed; inset:0; pointer-events:none; z-index:1501; }
.trail-streak{
  position:absolute; top:50%; left:50%; border-radius:50%;
  opacity:1; transform:translate(-50%,-50%);
  animation:trailFly .8s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes trailFly{
  0%{ opacity:1; transform:translate(-50%,-50%) translate(0,0) scale(1); }
  100%{ opacity:0; transform:translate(-50%,-50%) translate(var(--tx), var(--ty)) scale(.15); }
}

/* --- fragmentación real del mensaje (efecto "se rompe en mil pedazos") --- */
.shatter-wrap{ position:fixed; z-index:1600; pointer-events:none; }
.shard{
  position:absolute; background-repeat:no-repeat;
  box-shadow:0 4px 10px rgba(0,0,0,.35);
  animation:shardFly .95s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes shardFly{
  0%{ transform:translate(0,0) rotate(0deg); opacity:1; }
  100%{ transform:translate(var(--sx), var(--sy)) rotate(var(--srot)); opacity:0; }
}

/* ---------- aviso de cookies ---------- */
.cookie-banner{
  position:fixed; left:1.2rem; right:1.2rem; bottom:1.2rem; z-index:1300;
  max-width:640px; margin:0 auto;
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:14px;
  padding:1.2rem 1.4rem; box-shadow:0 30px 70px rgba(0,0,0,.5);
  display:flex; flex-wrap:wrap; align-items:center; gap:1rem;
  transform:translateY(140%); opacity:0; transition:transform .5s var(--ease), opacity .5s;
  pointer-events:none;
}
.cookie-banner.show{ transform:translateY(0); opacity:1; pointer-events:auto; }
.cookie-text{ font-size:.8rem; color:var(--muted); line-height:1.5; flex:1; min-width:220px; }
.cookie-actions{ display:flex; gap:.6rem; flex-shrink:0; }
@media (max-width:560px){
  .cookie-banner{ flex-direction:column; align-items:stretch; }
  .cookie-actions{ justify-content:stretch; }
  .cookie-actions .btn{ flex:1; }
}

.chat-widget{ position:fixed; right:1.6rem; bottom:1.8rem; z-index:950; }
.chat-nametag{
  position:absolute; bottom:8px; right:66px; white-space:nowrap;
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:50px;
  padding:.5rem .9rem; font-family:var(--font-mono); font-size:.7rem; color:var(--ink);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  opacity:0; transform:translateX(8px); transition:opacity .4s ease, transform .4s ease;
  pointer-events:none;
}
.chat-nametag.show{ opacity:1; transform:none; }
.chat-toggle{
  width:56px; height:56px; border-radius:50%; border:none;
  background:var(--accent); color:var(--accent-ink);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px rgba(var(--accent-rgb),.35);
  transition:transform .25s;
  overflow:hidden; padding:2px;
}
.chat-toggle:hover{ transform:translateY(-4px) scale(1.04); }
.chat-toggle img{ width:100%; height:100%; object-fit:cover; }

.chat-window{
  position:absolute; bottom:70px; right:0;
  width:min(340px, 88vw); height:min(460px, calc(100vh - 180px));
  background:var(--bg-2); border:1px solid var(--line-soft); border-radius:16px;
  display:none; flex-direction:column; overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,.6);
}
.chat-window.open{ display:flex; }
.chat-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem 1.1rem; background:var(--purple-deep);
  border-bottom:1px solid var(--line-soft);
}
.chat-header-info{ display:flex; align-items:center; gap:.7rem; }
.chat-avatar{
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  background:var(--accent);
}
.chat-avatar img{ width:100%; height:100%; object-fit:cover; }
.chat-header-info strong{ display:block; font-size:.82rem; color:#fff; letter-spacing:.03em; }
.chat-header-info small{ display:block; font-size:.66rem; color:rgba(255,255,255,.7); }
.chat-header button{ background:none; border:none; color:#fff; font-size:.9rem; opacity:.8; }
.chat-header button:hover{ opacity:1; }

.chat-messages{ flex:1; overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:.7rem; }
.chat-msg{
  max-width:85%; padding:.6rem .85rem; border-radius:12px; font-size:.82rem; line-height:1.5;
  white-space:pre-wrap;
}
.chat-msg.bot{ align-self:flex-start; background:var(--bg-3); border:1px solid var(--line-soft); border-bottom-left-radius:3px; }
.chat-msg.user{ align-self:flex-end; background:var(--accent); color:var(--accent-ink); border-bottom-right-radius:3px; }

.chat-quick{ display:flex; gap:.4rem; padding:0 .9rem .7rem; flex-wrap:wrap; }
.chat-quick button{
  font-family:var(--font-mono); font-size:.62rem; color:var(--muted);
  background:var(--bg); border:1px solid var(--line-soft); border-radius:50px; padding:.32rem .7rem;
  transition:border-color .2s, color .2s;
}
.chat-quick button:hover{ border-color:var(--accent); color:var(--accent); }

.chat-input{ display:flex; gap:.5rem; padding:.8rem; border-top:1px solid var(--line-soft); }
.chat-input input{
  flex:1; background:var(--bg); border:1px solid var(--line-soft); border-radius:8px;
  padding:.6rem .8rem; color:var(--ink); font-size:.82rem;
}
.chat-input input:focus{ outline:none; border-color:var(--accent); }
.chat-input button{
  width:38px; border-radius:8px; border:none;
  background:var(--accent); color:var(--accent-ink); font-size:.9rem;
}

@media (max-width:640px){
  .whatsapp-fab{ width:50px; height:50px; left:1.1rem; bottom:1.1rem; }
  .chat-widget{ right:1.1rem; bottom:1.1rem; }
  .chat-toggle{ width:50px; height:50px; }
  #toTop{ display:none; }
}

/* ---------- tilt 3D interactivo (hover) ---------- */
.tilt-card{
  transition:transform .15s ease-out, box-shadow .35s ease;
  will-change:transform;
  transform-style:preserve-3d;
}
.tilt-card:hover{ box-shadow:0 26px 50px rgba(0,0,0,.35); }
@media (hover:none){ .tilt-card{ transition:none; } }

/* ---------- scroll reveal (con más movimiento) ---------- */
.reveal-h{
  opacity:0; transform:translateY(38px) scale(.96);
  filter:blur(6px);
  transition:opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal-h.vis{ opacity:1; transform:none; filter:blur(0); }

/* ---------- barra promocional: etiqueta corta en celular ---------- */
.promo-mini{
  display:none; font-family:var(--font-mono); font-size:.72rem; font-weight:700; letter-spacing:.02em;
  color:var(--accent-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;
}
@media (max-width:920px){ .promo-mini{ display:block; } }

/* ---------- IA para todos: historia con partículas guiada por el scroll ---------- */
.ia-story{ position:relative; z-index:2; background:var(--bg); }
.ia-story.ia-on{ height:560vh; }
.ia-sticky{ position:relative; }
.ia-on .ia-sticky{ position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; }
.ia-canvas{ display:none; }
.ia-on .ia-canvas{ display:block; position:absolute; inset:0; width:100%; height:100%; }
.ia-vignette{ display:none; }
.ia-on .ia-vignette{
  display:block; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 46%),
    radial-gradient(ellipse at 66% 52%, transparent 40%, var(--bg) 96%);
  opacity:.92;
}

/* sin JavaScript: los pasos se leen como una lista normal */
.ia-steps{ list-style:none; display:grid; gap:3rem; padding:7rem 6vw; max-width:760px; }
.ia-on .ia-steps{
  position:absolute; left:max(6vw, 60px); top:var(--ia-top, 172px); bottom:0;
  width:min(36vw, 450px); padding:0; max-width:none; display:block;
}
.ia-on .ia-step{
  position:absolute; left:0; right:0; top:50%;
  opacity:0; transform:translateY(-38%); pointer-events:none;
  transition:opacity .55s var(--ease), transform .7s var(--ease);
}
.ia-on .ia-step.is-active{ opacity:1; transform:translateY(-50%); pointer-events:auto; }
.ia-title{
  font-family:var(--font-display); font-weight:700; letter-spacing:-.02em; line-height:1.05;
  font-size:clamp(2rem,4.1vw,3.4rem); margin-bottom:1.1rem;
}
.ia-copy{ color:var(--muted); font-size:1.02rem; line-height:1.75; max-width:420px; }
.ia-actions{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.8rem; }

/* puntos de progreso (lado izquierdo: el dock de temas está a la derecha) */
.ia-dots{ display:none; }
.ia-on .ia-dots{
  display:flex; flex-direction:column; gap:.65rem;
  position:absolute; left:1.4rem; top:calc(50% + 40px); transform:translateY(-50%); z-index:3;
}
.ia-dot{
  width:9px; height:9px; padding:0; border-radius:9px;
  border:1px solid rgba(var(--accent-rgb),.55); background:transparent;
  transition:height .35s var(--ease), background .3s, border-color .3s;
}
.ia-dot:hover{ background:rgba(var(--accent-rgb),.4); }
.ia-dot.is-active{ height:26px; background:var(--accent); border-color:var(--accent); }
.ia-dot:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

.ia-hint{ display:none; }
.ia-on .ia-hint{
  display:block; position:absolute; left:50%; bottom:1.6rem; transform:translateX(-50%);
  font-family:var(--font-mono); font-size:.62rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--muted-2); transition:opacity .4s;
}
.ia-hint span{ display:inline-block; color:var(--accent); animation:iaHint 1.6s ease-in-out infinite; }
.ia-hint.gone{ opacity:0; }
@keyframes iaHint{ 50%{ transform:translateY(4px); } }

@media (max-width:899px){
  .ia-on .ia-vignette{
    background:linear-gradient(0deg, var(--bg) 6%, transparent 52%);
    opacity:1;
  }
  .ia-on .ia-steps{
    left:6vw; right:6vw; width:auto; top:auto;
    bottom:calc(11.4rem + env(safe-area-inset-bottom, 0px)); height:40%;
  }
  .ia-on .ia-step{ top:auto; bottom:0; transform:translateY(16px); text-align:center; }
  .ia-on .ia-step.is-active{ transform:none; }
  .ia-step .eyebrow{ justify-content:center; }
  .ia-title{ font-size:clamp(1.45rem,6.6vw,2.1rem); margin-bottom:.6rem; }
  .ia-copy{ font-size:.92rem; line-height:1.6; margin:0 auto; }
  .ia-actions{ justify-content:center; margin-top:1.2rem; }
  .ia-actions{ gap:.6rem; flex-wrap:nowrap; }
  .ia-actions .btn{ flex:1 1 0; padding:.8rem .5rem; font-size:.6rem; letter-spacing:.03em; }
  .ia-on .ia-dots{ left:.55rem; gap:.5rem; }
  .ia-dot{ width:7px; height:7px; }
  .ia-dot.is-active{ height:20px; }
  .ia-on .ia-hint{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .ia-on .ia-step{ transition:none; }
  .ia-hint span{ animation:none; }
}

/* ---------- NUVI con vida: parpadea, saluda y muestra que está pensando ---------- */
.nuvi-face{ position:relative; display:block; width:100%; height:100%; border-radius:50%; overflow:hidden; transition:transform .4s var(--ease); }
.nuvi-face img{ width:100%; height:100%; object-fit:cover; display:block; }
.nuvi-lid{
  position:absolute; width:13%; height:10%; border-radius:50% 50% 45% 45%;
  background:#0B0A12; transform:scaleY(0); transform-origin:50% 0;
  animation:nuviBlink 4.8s infinite;
}
.nuvi-lid.l{ left:30%; top:36.5%; }
.nuvi-lid.r{ left:61%; top:38%; }
.nuvi-face.sm .nuvi-lid{ animation-delay:1.3s; }
@keyframes nuviBlink{ 0%,93%,100%{ transform:scaleY(0); } 95.5%{ transform:scaleY(1); } }

.chat-toggle{ position:relative; overflow:visible; }
.chat-toggle .nuvi-face{ box-shadow:0 0 0 2px var(--accent); }
.chat-toggle.saluda .nuvi-face{ animation:nuviSaluda 1.3s var(--ease) 2; }
.chat-toggle.saluda::after{
  content:'👋'; position:absolute; top:-12px; left:-8px; font-size:1.3rem;
  animation:nuviMano 1.3s ease-in-out 2; transform-origin:70% 80%;
}
@keyframes nuviSaluda{
  0%,100%{ transform:rotate(0); }
  20%{ transform:rotate(-14deg) translateY(-3px); }
  40%{ transform:rotate(10deg); }
  60%{ transform:rotate(-7deg); }
  80%{ transform:rotate(4deg); }
}
@keyframes nuviMano{ 0%,100%{ transform:rotate(0) scale(1); } 25%{ transform:rotate(-24deg) scale(1.15); } 50%{ transform:rotate(16deg); } 75%{ transform:rotate(-12deg); } }

/* pensando: inclina la cabeza, entrecierra los ojos y pulsa */
.chat-toggle.is-thinking{ animation:nuviPulso 1.4s ease-out infinite; }
.is-thinking .nuvi-face{ transform:rotate(-9deg); }
.is-thinking .nuvi-lid{ animation:none; transform:scaleY(.5); }
@keyframes nuviPulso{
  0%{ box-shadow:0 0 0 0 rgba(var(--accent-rgb),.55); }
  100%{ box-shadow:0 0 0 14px rgba(var(--accent-rgb),0); }
}
.chat-msg.typing{ display:flex; align-items:center; gap:5px; padding:.75rem .95rem; }
.chat-msg.typing span{
  width:7px; height:7px; border-radius:50%; background:var(--accent);
  animation:nuviTyping 1.1s ease-in-out infinite;
}
.chat-msg.typing span:nth-child(2){ animation-delay:.15s; }
.chat-msg.typing span:nth-child(3){ animation-delay:.3s; }
@keyframes nuviTyping{ 0%,80%,100%{ transform:translateY(0); opacity:.45; } 40%{ transform:translateY(-5px); opacity:1; } }
.chat-msg a{ color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
html[data-theme="white"] .chat-msg.bot a{ color:var(--brand-b); }
@media (prefers-reduced-motion: reduce){
  .nuvi-lid, .chat-toggle.saluda .nuvi-face, .chat-toggle.saluda::after, .chat-toggle.is-thinking, .chat-msg.typing span{ animation:none; }
}
/* con el chat abierto, la ventana queda por encima del dock de temas */
.chat-widget:has(.chat-window.open){ z-index:990; }

/* ---------- modal de acceso: identidad NUVI y pasos del ingreso ---------- */
.nav-login{ display:none; }
@media (max-width:560px){ .nav .nav-login{ display:block; color:var(--accent); } }
.login-overlay{ background:rgba(4,4,8,.78); }
.login-modal{
  width:min(400px, 100%); padding:2.3rem 1.9rem 1.8rem; overflow:visible;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(108,37,204,.22), transparent 70%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(var(--accent-rgb),.10), transparent 70%),
    var(--bg-2);
  border-color:var(--line);
}
.login-mascot{ top:-30px; width:62px; height:62px; }
.login-logo{ height:56px; margin-bottom:1.1rem; }
.login-eyebrow{
  font-family:var(--font-mono); font-size:.64rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--accent); margin-bottom:.4rem;
}
.login-modal h3{ font-size:1.35rem; margin-bottom:1rem; }
.login-pasos{ display:flex; justify-content:center; gap:.4rem; margin:0 0 1.3rem; padding:0; list-style:none; }
.login-pasos li{
  display:flex; align-items:center; gap:.35rem; padding:.3rem .6rem .3rem .3rem; border-radius:50px;
  border:1px solid var(--line-soft); font-family:var(--font-mono); font-size:.6rem; letter-spacing:.04em; color:var(--muted-2);
}
.login-pasos li span{
  width:18px; height:18px; border-radius:50%; display:grid; place-items:center;
  border:1px solid var(--line-soft); font-size:.58rem;
}
.login-pasos li.actual{ color:var(--ink); border-color:rgba(var(--accent-rgb),.5); background:rgba(var(--accent-rgb),.08); }
.login-pasos li.actual span{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.login-feedback{
  padding:.85rem 1rem; margin:0 0 1rem; border-radius:10px; text-align:left; font-size:.84rem; line-height:1.5;
  border:1px solid rgba(255,99,82,.45); background:rgba(255,99,82,.1); color:#ffd9d3;
}
.login-feedback.ok{ border-color:rgba(63,174,106,.45); background:rgba(63,174,106,.12); color:var(--ink); }
html[data-theme="white"] .login-feedback{ color:#8a1f12; }
html[data-theme="white"] .login-feedback.ok{ color:var(--ink); }
.login-modal input{ min-height:46px; font-size:1rem; }
.login-modal .btn-block{ min-height:48px; }
@media (max-width:420px){
  .login-modal{ padding:2.1rem 1.25rem 1.5rem; }
  .login-pasos li{ font-size:.56rem; padding-right:.45rem; }
}
