/* =============================================================================
   NOSTRAIR — styles.css
   Un único archivo CSS, organizado por secciones. Ver README.md para la guía
   de edición (colores, tipografías, cómo añadir páginas nuevas, etc.)
   ============================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Superficies */
  --bg:          #060a12;
  --bg-soft:     #0a1120;
  --bg-alt:      #0b1422;
  --surface:     #101a29;
  --surface-2:   #16223350;
  --surface-hi:  #17233650;

  /* Texto */
  --text:        #eef3f8;
  --text-soft:   #c3ced9;
  --text-mute:   #8394a6;
  --text-faint:  #5c6b7d;

  /* Acento aviación */
  --accent:      #3aa0ff;
  --accent-2:    #1c63c9;
  --accent-hi:   #7dc0ff;
  --accent-soft: rgba(58, 160, 255, 0.14);
  --amber:       #ffb020;
  --amber-soft:  rgba(255, 176, 32, 0.16);
  --success:     #34d399;
  --success-soft:rgba(52, 211, 153, 0.14);

  /* Líneas */
  --line:        rgba(238, 243, 248, 0.10);
  --line-strong: rgba(238, 243, 248, 0.20);

  /* Tipografía */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "Consolas", monospace;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --container: 1180px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(58,160,255,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(28,99,201,0.10), transparent 55%);
  background-repeat: no-repeat;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 600;
}

::selection { background: var(--accent); color: #06101c; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.7rem 1.1rem; background: var(--accent); color: #06101c;
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1360px; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--accent);
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { max-width: 640px; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--text-mute); font-size: 1.05rem; }

.divider { height: 1px; background: var(--line); border: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); color: var(--text-soft);
}
.badge--accent { color: var(--accent-hi); border-color: rgba(58,160,255,0.35); background: var(--accent-soft); }
.badge--amber { color: var(--amber); border-color: rgba(255,176,32,0.35); background: var(--amber-soft); }
.badge--success { color: var(--success); border-color: rgba(52,211,153,0.35); background: var(--success-soft); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive: never let JS hide content */

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent-2));
  color: #06101c;
  box-shadow: 0 10px 30px -12px rgba(58,160,255,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(58,160,255,0.7); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }

/* =============================================================
   5. Header / nav
   ============================================================= */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(6, 10, 18, 0.4);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(6, 10, 18, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: 0.02em; color: var(--text);
}
.brand-word small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.18em; color: var(--text-faint); margin-top: 1px;
}

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-soft);
  position: relative; padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--accent); transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--accent-hi); }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; align-items: center;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 480;
  background: rgba(6,10,18,0.98);
  backdrop-filter: blur(10px);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav .container { padding-block: 2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--text);
}
.mobile-nav .btn { margin-top: 1.4rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-block-start: calc(var(--nav-h) + clamp(2.5rem, 8vw, 5rem));
  padding-block-end: clamp(3rem, 8vw, 6rem);
  overflow: clip;
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-photo, none);
  background-size: cover; background-position: center 35%;
  opacity: 0.62;
}
.hero-photo-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,10,18,.35) 0%, rgba(6,10,18,.55) 55%, var(--bg) 95%),
    radial-gradient(ellipse 60% 45% at 50% 28%, rgba(6,10,18,.35) 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(58,160,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,160,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 60%; z-index: 1;
  background: radial-gradient(closest-side, rgba(58,160,255,0.22), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero-inner.hero-inner--center { max-width: 860px; margin-inline: auto; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text-soft); margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  max-width: 20ch;
  margin-inline: auto;
}
.hero-title em { font-style: normal; color: var(--accent-hi); }
.hero-inner:not(.hero-inner--center) .hero-title { margin-inline: 0; }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-mute);
  max-width: 54ch;
  margin: 1.3rem auto 0;
}
.hero-inner:not(.hero-inner--center) .hero-sub { margin-inline: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-inner--center .hero-actions { justify-content: center; }

.hero-claim {
  margin-top: 2.4rem; display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.9rem 1.1rem; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface);
  max-width: 620px; font-size: 0.9rem; color: var(--text-mute);
}
.hero-inner--center .hero-claim { margin-inline: auto; }
.hero-claim svg { flex: none; width: 20px; height: 20px; color: var(--amber); margin-top: 1px; }

/* =============================================================
   7. Stats bar
   ============================================================= */
.stats-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item { background: var(--surface); padding: 1.6rem 1.2rem; text-align: center; }
.stat-value {
  font-family: var(--font-mono); font-weight: 600; color: var(--accent-hi);
  font-size: clamp(1.5rem, 3vw, 2.1rem); display: block;
}
.stat-label { font-size: 0.82rem; color: var(--text-mute); margin-top: 0.35rem; }
@media (min-width: 720px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   8. Cards: trust points / process / generic
   ============================================================= */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.explainer-card {
  max-width: 820px; margin-inline: auto;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem);
}
.explainer-card .lead { font-size: 1.1rem; color: var(--text); margin-bottom: 1rem; }
.explainer-card .body { font-size: 0.98rem; color: var(--text-mute); }
.explainer-points { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.explainer-points li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; color: var(--text-soft); }
.explainer-points li svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

.track-kicker { display: block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--accent-hi); margin-bottom: 0.6rem; }

.trust-card {
  padding: 1.7rem; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.trust-card:hover { transform: translateY(-4px); border-color: rgba(58,160,255,0.3); background: var(--bg-alt); }

.track-card { padding: 0; overflow: hidden; }
.track-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.track-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.track-card:hover .track-card-media img { transform: scale(1.06); }
.track-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,0) 40%, var(--surface) 100%);
}
.track-card-body { padding: 1.8rem 2rem 2rem; }

.editorial-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/8; margin-bottom: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
}
.editorial-figure img { width: 100%; height: 100%; object-fit: cover; }
.editorial-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,18,.15), rgba(6,10,18,.55));
}
.editorial-figure--course { aspect-ratio: 16/9; margin-bottom: 1.6rem; }
.trust-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-hi); margin-bottom: 1rem;
}
.trust-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.92rem; color: var(--text-mute); }

.process-list { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 960px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-item { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.process-step {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-hi);
  border: 1px solid rgba(58,160,255,0.35); background: var(--accent-soft);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.process-item h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.process-item p { font-size: 0.88rem; color: var(--text-mute); }
.process-item:not(:last-child)::after {
  content: ""; position: absolute; top: 2.6rem; left: calc(100% + 0.5rem);
  width: calc(1rem - 0.5rem); height: 1px; background: var(--line-strong);
  display: none;
}
@media (min-width: 960px) { .process-item:not(:last-child)::after { display: block; } }

/* =============================================================
   9. Course catalog
   ============================================================= */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem;
}
.filter-btn {
  padding: 0.55rem 1.05rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 500;
  color: var(--text-soft); transition: all 0.25s var(--ease-out);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-hi); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #06101c; }

.course-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.course-card:hover { transform: translateY(-4px); border-color: rgba(58,160,255,0.35); box-shadow: 0 20px 40px -24px rgba(58,160,255,0.4); }
.course-card--bundle { border-color: rgba(255,176,32,0.35); background: linear-gradient(180deg, rgba(255,176,32,0.06), var(--surface) 40%); }

.course-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.course-card:hover .course-card-media img { transform: scale(1.05); }

.course-card-top { padding: 1.4rem 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.course-code {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em;
  color: var(--accent-hi); border: 1px solid rgba(58,160,255,0.3);
  background: var(--accent-soft); padding: 0.25rem 0.55rem; border-radius: var(--radius-sm);
}
.course-track { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; }

.course-card-body { padding: 1rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-card-body h3 { font-size: 1.1rem; margin-bottom: 0.55rem; line-height: 1.25; }
.course-card-body p { font-size: 0.88rem; color: var(--text-mute); flex: 1; }

.course-meta { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; font-size: 0.8rem; color: var(--text-faint); font-family: var(--font-mono); }
.course-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.course-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 1.1rem 1.4rem; border-top: 1px solid var(--line);
}
.course-price { display: flex; flex-direction: column; }
.course-price .price-now { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text); }
.course-price .price-was { font-size: 0.78rem; color: var(--text-faint); text-decoration: line-through; }
.course-card-foot .btn { padding: 0.65rem 1.1rem; font-size: 0.86rem; }

/* =============================================================
   10. Course detail page
   ============================================================= */
.course-hero { padding-block-start: calc(var(--nav-h) + 2.2rem); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1.6rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-hi); }
.breadcrumb .sep { opacity: 0.5; }

.detail-layout { display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .detail-layout { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }

.detail-main h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0.8rem 0 1rem; }
.detail-lede { font-size: 1.05rem; color: var(--text-mute); margin-bottom: 1.6rem; }

.topics-list { display: grid; gap: 0.7rem; margin-top: 0.6rem; }
.topics-list li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.94rem; color: var(--text-soft);
}
.topics-list li svg { flex: none; width: 18px; height: 18px; color: var(--success); margin-top: 2px; }

.purchase-panel {
  position: sticky; top: calc(var(--nav-h) + 1.2rem);
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-lg); padding: 1.7rem;
}
.purchase-panel .price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.3rem; }
.purchase-panel .price-now { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--text); }
.purchase-panel .price-was { font-size: 0.95rem; color: var(--text-faint); text-decoration: line-through; }
.purchase-panel .price-note { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.purchase-panel .divider { margin-block: 1.3rem; }
.purchase-included { display: grid; gap: 0.65rem; margin-bottom: 1.4rem; }
.purchase-included li { display: flex; gap: 0.6rem; font-size: 0.88rem; color: var(--text-soft); align-items: flex-start; }
.purchase-included li svg { flex: none; width: 16px; height: 16px; color: var(--accent-hi); margin-top: 2px; }
.purchase-note { margin-top: 1rem; font-size: 0.78rem; color: var(--text-faint); text-align: center; }
.purchase-status { margin-top: 0.9rem; font-size: 0.85rem; text-align: center; min-height: 1.2em; }
.purchase-status.is-error { color: #ff7373; }
.purchase-status.is-info { color: var(--text-mute); }

.related-courses { margin-top: 3rem; }

/* =============================================================
   11. FAQ accordion
   ============================================================= */
.faq-list { display: grid; gap: 0.7rem; max-width: 780px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; text-align: left; font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; color: var(--text);
}
.faq-q .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--accent-hi); transition: transform 0.3s var(--ease-out); }
.faq-q .plus::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-q .plus::after { left: 9px; top: 2px; bottom: 2px; width: 2px; }
.faq-item.is-open .plus::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.faq-a p { padding: 0 1.3rem 1.2rem; font-size: 0.92rem; color: var(--text-mute); }

/* =============================================================
   12. Forms
   ============================================================= */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; color: var(--text-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--bg-alt); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.78rem; color: var(--text-faint); }
.form-status { font-size: 0.9rem; margin-top: 0.4rem; min-height: 1.2em; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: #ff7373; }

/* =============================================================
   13. CTA banner
   ============================================================= */
.cta-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(2.4rem, 6vw, 4rem); text-align: center;
  border: 1px solid rgba(58,160,255,0.3);
  background: linear-gradient(135deg, rgba(58,160,255,0.16), rgba(6,10,18,0.4));
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.cta-banner p { color: var(--text-mute); max-width: 520px; margin: 0 auto 1.6rem; }
.cta-banner .hero-actions { justify-content: center; margin-top: 1.6rem; }

/* =============================================================
   14. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 0.88rem; color: var(--text-mute); margin-top: 0.9rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--accent-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-faint); }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--text-soft); }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-soft);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent-hi); }

.footer-credits { margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-faint); }
.footer-credits a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: var(--text-soft); }

.credits-list { display: grid; gap: 0.9rem; max-width: 760px; }
.credits-list li {
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.9rem; color: var(--text-mute);
}
.credits-list a { color: var(--accent-hi); }
.credits-list strong { color: var(--text-soft); }

/* =============================================================
   15. Páginas simples (legal / sobre nosotros / contacto / éxito)
   ============================================================= */
.page-hero { padding-block: calc(var(--nav-h) + 2.6rem) 2.5rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--text-mute); margin-top: 0.9rem; max-width: 60ch; font-size: 1.05rem; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { font-size: 1.05rem; margin: 1.4rem 0 0.6rem; color: var(--text); }
.prose p, .prose li { color: var(--text-mute); font-size: 0.96rem; margin-bottom: 0.8rem; }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text-soft); }

.status-panel {
  max-width: 560px; margin-inline: auto; text-align: center;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.2rem);
}
.status-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.status-icon svg { width: 30px; height: 30px; }
.status-panel--success .status-icon { background: var(--success-soft); color: var(--success); }
.status-panel--cancel .status-icon { background: var(--amber-soft); color: var(--amber); }
.status-panel h1 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.status-panel p { color: var(--text-mute); margin-bottom: 1.6rem; }
.status-order { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); margin-top: 1rem; word-break: break-all; }

.team-card { text-align: center; padding: 1.6rem; }
.team-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent-hi); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}

/* =============================================================
   16. Responsive tuning general
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* =============================================================
   17. Print (legal pages)
   ============================================================= */
@media print {
  .site-header, .site-footer, .mobile-nav, .hero-grid, .hero-glow { display: none !important; }
  body { background: #fff; color: #111; }
}
