/* ==========================================================================
   ALGOBOT ACADEMY — style.css
   1. Tokens   2. Base   3. Utilidades   4. Botones   5. Cabecera
   6. Hero     7. Secciones   8. Cursos   9. Programa   10. Metodología
   11. Proyectos   12. Tecnologías   13. Instructor   14. Testimonios
   15. FAQ   16. Contacto   17. Riesgo y footer   18. Flotantes   19. Animaciones
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #07111F;
  --bg-2: #0B1726;
  --card: #101F30;
  --card-2: #13253A;
  --gold: #D6B15E;
  --gold-2: #F0CC78;
  --teal: #00D1B2;
  --text: #F5F7FA;
  --muted: #A7B4C5;
  --border: #233449;
  --danger: #FF7A7A;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(214, 177, 94, .35); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }

/* 3. UTILIDADES ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.text-gold { color: var(--gold); background: linear-gradient(100deg, var(--gold) 20%, var(--gold-2) 60%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-code); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
[hidden] { display: none !important; }

/* 4. BOTONES --------------------------------------------------------------- */
.btn {
  --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd); border-radius: 12px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-primary {
  --b-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --b-fg: #0A1422; --b-bd: transparent;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 24px -10px rgba(214, 177, 94, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(240, 204, 120, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-outline { --b-bd: rgba(214, 177, 94, .45); --b-fg: var(--gold-2); background: rgba(214, 177, 94, .04); }
.btn-outline:hover { --b-bd: var(--gold); background: rgba(214, 177, 94, .1); }
.btn-ghost { --b-fg: var(--muted); }
.btn-ghost:hover { --b-fg: var(--text); --b-bd: #34506d; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

/* 5. CABECERA -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7, 17, 31, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(7, 17, 31, .9); border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; gap: 4px; }
.nav-list a {
  display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-list a[aria-current="true"] { color: var(--gold-2); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .btn { white-space: nowrap; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }

@media (max-width: 1480px) and (min-width: 1280px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 14px; }
  .nav-list { gap: 0; }
  .nav-list a { padding: 8px 9px; font-size: .88rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 12px; font-size: .85rem; }
  .nav-actions .btn-ghost .icon { display: none; }
}

@media (max-width: 1279px) {
  /* backdrop-filter crearía un contenedor para el menú fijo: se desactiva en móvil */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7, 17, 31, .94); }
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--bg); }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a {
    font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--text);
    padding: 14px 4px; border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; }
  .nav-actions .btn { min-height: 52px; font-size: 1rem; }
}

/* 6. HERO ------------------------------------------------------------------ */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 15%, rgba(214, 177, 94, .13), transparent 70%),
    radial-gradient(520px 420px at 5% 95%, rgba(0, 209, 178, .10), transparent 70%),
    linear-gradient(rgba(35, 52, 73, .35) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(35, 52, 73, .35) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(16, 31, 48, .7);
  font-family: var(--font-code); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 209, 178, .15); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .text-gold { display: inline; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; margin-bottom: 26px; }
.hero-note .icon { color: var(--gold); }
.hero-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-code); font-size: .8rem; color: var(--muted); }
.hero-steps li { display: flex; align-items: center; gap: 18px; }
.hero-steps li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-left: -9px; margin-right: -9px; }

/* Ilustración */
.hero-visual { position: relative; min-height: 580px; }
.win {
  position: absolute; background: linear-gradient(180deg, rgba(19, 37, 58, .96), rgba(13, 26, 42, .96));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: rgba(7, 17, 31, .45);
  font-family: var(--font-code); font-size: .72rem; color: var(--muted);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2B4058; }
.dots i:first-child { background: rgba(214, 177, 94, .8); }
.win-tab { color: var(--text); }
.win-tag { margin-left: auto; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); }
.win-editor { top: 0; left: 0; width: 82%; z-index: 2; }
.code {
  margin: 0; padding: 16px 18px 18px; font-family: var(--font-code); font-size: .76rem; line-height: 1.75;
  color: #C9D4E2; white-space: pre; overflow: hidden; counter-reset: ln;
}
.c-k { color: #C792EA; } .c-t { color: var(--teal); } .c-n { color: var(--gold-2); } .c-c { color: #5F7690; font-style: italic; } .c-f { color: #82AAFF; }
.caret { display: inline-block; width: 7px; height: 1.05em; background: var(--gold); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }

.win-chart { right: 0; top: 54%; width: 68%; z-index: 3; }
.win-chart .legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.lg-gold { background: var(--gold); } .lg-teal { background: var(--teal); margin-left: 8px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid line { stroke: rgba(35, 52, 73, .8); stroke-width: 1; }
.chart-svg .up { fill: var(--teal); stroke: var(--teal); }
.chart-svg .down { fill: #4A6380; stroke: #4A6380; }
.chart-svg .ema-fast { fill: none; stroke: var(--gold); stroke-width: 2; }
.chart-svg .ema-slow { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .8; }
.chart-svg .signal { fill: var(--bg); stroke: var(--gold-2); stroke-width: 2; }
.chart-svg .sig-label { fill: var(--gold-2); font-family: var(--font-code); font-size: 10px; }
.chart-svg .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .4s var(--ease) forwards; }

.win-status { left: 0; bottom: -4%; width: 48%; z-index: 4; padding: 14px 16px; }
.status-head { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0, 209, 178, .6); animation: pulse 2s infinite; }
.badge-mini { margin-left: auto; white-space: nowrap; font-family: var(--font-code); font-size: .64rem; color: var(--gold-2); border: 1px solid rgba(214, 177, 94, .4); padding: 2px 6px; border-radius: 5px; }
.status-list { margin: 0; display: grid; gap: 6px; font-size: .74rem; }
.status-list div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--border); padding-top: 6px; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; text-align: right; }
.status-list .ok { color: var(--teal); }
.status-list .mono { font-family: var(--font-code); font-size: .7rem; }

.ai-chip {
  position: absolute; right: 3%; bottom: -9%; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(7, 17, 31, .9); border: 1px solid rgba(0, 209, 178, .45); font-size: .75rem; color: var(--muted);
  box-shadow: 0 10px 30px -12px rgba(0, 209, 178, .45);
  animation: float 6s ease-in-out infinite;
}
.ai-chip strong { color: var(--text); font-weight: 600; }
.ai-chip .icon { color: var(--teal); width: 16px; height: 16px; }

/* 7. SECCIONES ------------------------------------------------------------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(35, 52, 73, .6); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.about-pills { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-pills li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(16, 31, 48, .5); }
.about-pills .icon { color: var(--teal); width: 18px; height: 18px; margin-top: 2px; }

.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.learn-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s, background-color .25s;
}
.learn-card:hover { transform: translateY(-4px); border-color: rgba(214, 177, 94, .45); background: var(--card-2); }
.learn-card .num { position: absolute; top: 22px; right: 22px; font-family: var(--font-code); font-size: .75rem; color: #4F6680; }
.learn-card .icon-lg { color: var(--gold); margin-bottom: 22px; }
.learn-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.learn-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* 8. CURSOS ---------------------------------------------------------------- */
.course-nav {
  display: flex; gap: 8px; margin-bottom: 28px; padding: 6px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-2); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.course-nav::-webkit-scrollbar { display: none; }
.course-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background-color .2s, color .2s;
}
.course-nav a span { font-family: var(--font-code); font-size: .72rem; color: #5F7690; }
.course-nav a:hover, .course-nav a.is-active { background: var(--card-2); color: var(--text); }
.course-nav a.is-active span { color: var(--teal); }
.course-nav a.is-program { color: var(--gold-2); }
.course-nav a.is-program span { color: var(--gold); }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.course-card {
  display: flex; flex-direction: column; gap: 18px; padding: 30px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), rgba(16, 31, 48, .6)); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s var(--ease);
}
.course-card:hover { border-color: #35506e; transform: translateY(-3px); }
.course-top { display: flex; justify-content: space-between; align-items: center; }
.level { font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.level-1 { color: var(--teal); background: rgba(0, 209, 178, .1); }
.level-2 { color: #8DB8FF; background: rgba(130, 170, 255, .1); }
.level-3 { color: var(--gold-2); background: rgba(214, 177, 94, .12); }
.course-index { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px #2E4561; line-height: 1; }
.course-card h3 { font-size: 1.45rem; }
.course-desc { color: var(--muted); font-size: .95rem; margin: 0; }
.price-block { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-block: 1px solid var(--border); }
.price-label { font-size: .74rem; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-code); }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price-ref { font-size: .85rem; color: var(--muted); }
.price-ref s, .pp-compare s { text-decoration-color: rgba(167, 180, 197, .7); }
.course-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; color: var(--muted); }
.course-meta li { display: flex; align-items: center; gap: 6px; }
.course-meta .icon { width: 16px; height: 16px; color: var(--gold); }

.modules { border: 1px solid var(--border); border-radius: 12px; background: rgba(7, 17, 31, .35); }
.modules summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; font-size: .9rem; font-weight: 600; border-radius: 12px;
}
.modules summary::-webkit-details-marker { display: none; }
.modules summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
.modules[open] summary .icon { transform: rotate(180deg); }
.modules summary:hover { background: rgba(255, 255, 255, .03); }
.modules ol { list-style: none; counter-reset: m; padding: 4px 14px 14px; display: grid; gap: 2px; }
.modules li { counter-increment: m; display: flex; gap: 12px; font-size: .88rem; color: var(--muted); padding: 7px 0; border-top: 1px dashed rgba(35, 52, 73, .9); }
.modules li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-code); font-size: .72rem; color: var(--gold); padding-top: 3px; flex: none; }
.course-card .btn { margin-top: auto; }
.enroll-note { margin: -8px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

/* 9. PROGRAMA COMPLETO ------------------------------------------------------ */
.program-section { padding-top: 0; }
.program-card {
  position: relative; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(214, 177, 94, .14), transparent 70%),
    radial-gradient(400px 300px at 0% 100%, rgba(0, 209, 178, .07), transparent 70%),
    var(--card);
  border: 1px solid rgba(214, 177, 94, .55);
  box-shadow: 0 0 0 1px rgba(214, 177, 94, .08), 0 30px 80px -30px rgba(214, 177, 94, .35);
}
.best-value {
  position: absolute; top: -14px; left: clamp(28px, 5vw, 56px);
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #0A1422;
  font-family: var(--font-code); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.program-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.program-info h2 { margin-bottom: 18px; }
.program-info > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check-list .icon { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.program-price {
  padding: 30px; border-radius: 20px; background: rgba(7, 17, 31, .65); border: 1px solid var(--border); text-align: center;
}
.pp-label { font-family: var(--font-code); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.pp-price { font-family: var(--font-head); font-size: clamp(3.4rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px; color: var(--gold-2); }
.pp-compare { margin: 0 0 24px; display: grid; gap: 8px; text-align: left; }
.pp-compare div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--border); }
.pp-compare dd { margin: 0; white-space: nowrap; }
.pp-fine { font-size: .76rem; color: var(--muted); margin: 16px 0 0; }
.program-price .enroll-note { margin: 10px 0 0; }

.pricing-table-wrap { margin-top: clamp(40px, 6vw, 64px); }
.table-title { font-size: 1.3rem; margin-bottom: 18px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .94rem; }
.pricing-table th, .pricing-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table thead th { font-family: var(--font-code); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-2); }
.pricing-table tbody th { font-weight: 600; }
.pricing-table tbody td { color: var(--muted); }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table .num-col { text-align: right; white-space: nowrap; }
.pricing-table strong { color: var(--text); font-family: var(--font-head); font-size: 1.05rem; }
.pricing-table .row-program, .pricing-table .row-launch { background: rgba(214, 177, 94, .05); }
.table-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

/* 10. METODOLOGÍA ---------------------------------------------------------- */
.method-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.method-track::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold) 70%, var(--gold-2));
  opacity: .5; transform-origin: left; transform: scaleX(var(--track, 1)); transition: transform 1.4s var(--ease);
}
.js-reveal .method-track { --track: 0; }
.js-reveal .method-track.track-on { --track: 1; }
.method-step { position: relative; padding-top: 80px; }
.step-node {
  position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); color: var(--gold); box-shadow: 0 0 0 6px var(--bg-2);
  transition: border-color .3s, color .3s;
}
.method-step:hover .step-node { border-color: var(--gold); color: var(--gold-2); }
.step-num { font-family: var(--font-code); font-size: .75rem; color: var(--teal); }
.method-step h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.method-step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* 11. PROYECTOS ------------------------------------------------------------ */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project-card {
  display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(0, 209, 178, .45); }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.diff { font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.d1 { color: var(--teal); background: rgba(0, 209, 178, .1); }
.d2 { color: #8DB8FF; background: rgba(130, 170, 255, .1); }
.d3 { color: var(--gold-2); background: rgba(214, 177, 94, .12); }
.project-no { font-family: var(--font-code); font-size: .72rem; color: #4F6680; }
.project-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.project-card p { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.project-card .objective { color: var(--text); font-size: .84rem; padding: 10px 12px; background: rgba(7, 17, 31, .45); border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; }
.project-card .objective strong { color: var(--gold-2); font-weight: 600; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li { font-family: var(--font-code); font-size: .68rem; color: var(--muted); padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; }

/* 12. TECNOLOGÍAS ---------------------------------------------------------- */
.tech-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tech-item {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--border);
  font-weight: 600; font-size: .95rem; transition: border-color .25s, transform .25s var(--ease);
}
.tech-item:hover { border-color: rgba(0, 209, 178, .45); transform: translateY(-2px); }
.tech-item .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: rgba(0, 209, 178, .08); color: var(--teal); }

/* 13. INSTRUCTOR ----------------------------------------------------------- */
.instructor-card {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
}
.instructor-photo {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; object-fit: cover;
  display: grid; place-content: center; justify-items: center; gap: 10px; color: #4F6680; font-size: .85rem;
  background: repeating-linear-gradient(45deg, rgba(35, 52, 73, .25) 0 12px, transparent 12px 24px), var(--bg-2);
  border: 1px dashed #2E4561;
}
.instructor-photo .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.instructor-name { font-size: 1.8rem; margin-bottom: 4px; }
.instructor-role { color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.instructor-body > p { color: var(--muted); }
.instructor-facts { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.instructor-facts div { padding: 16px; border-radius: 12px; background: rgba(7, 17, 31, .45); border: 1px solid var(--border); }
.instructor-facts dt { font-family: var(--font-code); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.instructor-facts dd { margin: 0; font-size: .9rem; color: var(--muted); }

/* 14. TESTIMONIOS ---------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--radius-lg); border: 1px dashed #2E4561; background: rgba(16, 31, 48, .5);
}
.testimonial-empty .icon { color: var(--gold); }
.testimonial-empty p { max-width: 520px; color: var(--muted); margin: 0; font-size: 1.05rem; }
.testimonial-card { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 20px; }
.testimonial-card blockquote { margin: 0; color: var(--text); font-size: .98rem; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-card img, .testimonial-card .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: rgba(214, 177, 94, .14); color: var(--gold-2); font-weight: 600; font-family: var(--font-head); }
.testimonial-card figcaption span { display: flex; flex-direction: column; }
.testimonial-card small { color: var(--muted); }

/* 15. FAQ ------------------------------------------------------------------ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item h3 { font-size: inherit; margin: 0; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  padding: 22px 4px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; transition: color .2s;
}
.acc-trigger:hover { color: var(--gold-2); }
.acc-trigger .icon { width: 22px; height: 22px; padding: 2px; border-radius: 50%; border: 1px solid var(--border); color: var(--gold); transition: transform .3s var(--ease); }
.acc-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.acc-panel { padding: 0 44px 22px 4px; color: var(--muted); animation: fadeDown .3s var(--ease); }
.acc-panel p { margin: 0; }
.acc-panel a { color: var(--teal); }

/* 16. CONTACTO ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 30px; }
.contact-channels { list-style: none; display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease);
}
.channel:hover { border-color: rgba(214, 177, 94, .5); transform: translateX(3px); }
.channel > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.channel small { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.channel-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(214, 177, 94, .12); color: var(--gold); flex: none; }
.channel-icon.wa { background: rgba(0, 209, 178, .12); color: var(--teal); }

.contact-form {
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #34506d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 209, 178, .18); }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); width: 18px; height: 18px; }
.select-wrap select { padding-right: 42px; cursor: pointer; }
.field-error { margin: 0; font-size: .82rem; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 20px; height: 20px; padding: 0; margin-top: 2px; border-radius: 6px; cursor: pointer; display: grid; place-content: center; }
.field-check input:checked { background: var(--gold); border-color: var(--gold); }
.field-check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.field-check label { font-weight: 400; color: var(--muted); }
.field-check label a { color: var(--teal); }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .9rem; border: 1px solid; }
.form-status a { color: inherit; font-weight: 600; }
.form-status.is-success { color: var(--teal); border-color: rgba(0, 209, 178, .4); background: rgba(0, 209, 178, .07); }
.form-status.is-error { color: #FFB3B3; border-color: rgba(255, 122, 122, .4); background: rgba(255, 122, 122, .07); }
.form-status.is-info { color: var(--gold-2); border-color: rgba(214, 177, 94, .4); background: rgba(214, 177, 94, .07); }

/* 17. RIESGO Y FOOTER ------------------------------------------------------ */
.risk-banner { padding: 40px 0; background: linear-gradient(90deg, rgba(214, 177, 94, .08), rgba(214, 177, 94, .02)); border-top: 1px solid rgba(214, 177, 94, .25); }
.risk-inner { display: flex; gap: 20px; align-items: flex-start; }
.risk-inner .icon { color: var(--gold); margin-top: 2px; }
.risk-inner h2 { font-size: 1.05rem; margin-bottom: 8px; color: var(--gold-2); }
.risk-inner p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 980px; }

.site-footer { background: #050D18; border-top: 1px solid var(--border); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 18px 0 8px; max-width: 320px; }
.footer-slogan { color: var(--gold) !important; font-family: var(--font-code); font-size: .78rem !important; }
.footer-title { font-family: var(--font-code); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text); text-decoration: none; font-size: .92rem; opacity: .85; transition: opacity .2s, color .2s; overflow-wrap: anywhere; }
.site-footer ul a:hover { opacity: 1; color: var(--gold-2); }
.footer-legal { padding-top: 28px; }
.legal-links { display: flex !important; flex-wrap: wrap; gap: 8px 24px !important; margin-bottom: 20px; }
.legal-links a { font-size: .85rem !important; color: var(--muted) !important; }
.disclaimer { font-size: .8rem; color: #7D8DA2; max-width: 980px; }
.copyright { font-size: .8rem; color: #5F7690; margin: 0; }

/* 18. ELEMENTOS FLOTANTES -------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--teal); color: #04221D; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(0, 209, 178, .55); transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(0, 209, 178, .7); }
.wa-float .icon { width: 24px; height: 24px; stroke-width: 2; }
.wa-float:focus-visible { outline-color: var(--gold-2); }
.nav-open .wa-float { display: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 150;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border);
  font-size: .9rem; box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 19. ANIMACIONES ---------------------------------------------------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 209, 178, .55); } 70% { box-shadow: 0 0 0 8px rgba(0, 209, 178, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 209, 178, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chart-svg .draw { stroke-dashoffset: 0; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ========================= RESPONSIVE ===================================== */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}

@media (max-width: 1100px) {
  .learn-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; min-height: 560px; }
  .course-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .course-nav { margin-inline: auto; }
  .program-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; margin-bottom: 8px; }
  .instructor-card { grid-template-columns: 240px 1fr; }
  .method-track { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .method-track::before { display: none; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: .98rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; }

  .hero { padding-top: 32px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { min-height: 0; display: grid; gap: 12px; }
  .win, .ai-chip { position: relative; inset: auto; width: 100%; }
  .win-editor { order: 1; }
  .win-chart { order: 2; }
  .win-status { order: 3; }
  .ai-chip { order: 0; justify-self: start; width: auto; animation: none; }
  .code { font-size: .68rem; padding: 14px; }

  .about-pills, .check-list, .instructor-facts { grid-template-columns: 1fr; }
  .learn-grid, .project-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tech-item { padding: 14px; font-size: .88rem; gap: 10px; }
  .tech-item .icon { width: 34px; height: 34px; padding: 7px; }

  .course-nav { width: 100%; }
  .course-card { padding: 24px 20px; }
  .program-card { padding: 36px 20px 24px; border-radius: 22px; }
  .best-value { left: 20px; }
  .program-price { padding: 24px 18px; }

  .method-track { grid-template-columns: 1fr; row-gap: 0; padding-left: 0; }
  .method-step { padding: 0 0 32px 76px; min-height: 88px; }
  .method-step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: linear-gradient(var(--teal), var(--gold)); opacity: .4; }
  .method-step h3 { font-size: 1.3rem; }

  .instructor-card { grid-template-columns: 1fr; }
  .instructor-photo { max-width: 260px; }

  .acc-trigger { font-size: 1.02rem; padding: 18px 2px; }
  .acc-panel { padding-right: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .risk-inner { flex-direction: column; gap: 12px; }

  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .tech-grid { grid-template-columns: 1fr; }
  .price { font-size: 2.2rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .08em; }
  .nav-list a { font-size: 1.3rem; }
}
