/* ============================================================
   networking.net — sistema de diseño
   - Dark mode default, acento naranja configurable
   - Tipografía: Ubuntu (sans), Ubuntu Mono (etiquetas)
   - Mobile first
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Tokens — paleta oficial networking.net ---------- */
:root {
  /* Base — derivada de #1D2731 IVORY LACK */
  --bg-0: #141B22;          /* fondo más profundo */
  --bg-1: #1D2731;          /* IVORY LACK — superficie principal */
  --bg-2: #243140;          /* tarjetas / elevadas */
  --bg-3: #2D3B4D;          /* hover / chips */
  --bg-4: #384759;          /* elevadas+ */
  --border: #2D3B4D;
  --border-strong: #3F5066;
  --text-0: #F8F9FA;        /* BLANCO NET */
  --text-1: #E6E9EE;
  --text-2: #9AA4B2;        /* gris claro lectura */
  --text-3: #6E7886;        /* secundario */
  --text-4: #4A5462;

  /* Acento — #E15517 NARANJA NET */
  --accent: #E15517;
  --accent-hi: #F2722E;
  --accent-lo: #B8400E;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 32%, transparent);

  /* Brand secundarios */
  --logo-blue: #328CC1;     /* SKY BLUE — para "net" en dark mode */
  --logo-gold: #D9B310;     /* GOLD LEAF — para ".net" */
  --prussian: #0B3C5D;      /* PRUSSIAN BLUE — bg deep accent */
  --sky: #328CC1;
  --gold: #D9B310;

  --success: #7C8A70;       /* gris-verde de la paleta */
  --info: #328CC1;
  --warn: #D9B310;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --max-w: 1200px;

  --shadow-soft: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -20px rgba(0,0,0,0.6);
  --shadow-pop:  0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -20px rgba(0,0,0,0.7);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Ubuntu Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
h1, h2, h3, h4 { letter-spacing: -0.02em; color: var(--text-0); font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(40px, 7.5vw, 76px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; max-width: 56ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { section { padding: 120px 0; } }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; text-wrap: balance; }
.section-head p { color: var(--text-2); font-size: 17px; text-wrap: pretty; }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex; align-items: baseline;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  line-height: 1;
}
.logo .l-net { color: var(--logo-blue); }
.logo .l-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin: 0 1px;
  align-self: center;
  transform: translateY(0.5px);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.logo .l-working { color: var(--accent); }
.logo .l-tld { color: var(--logo-gold); }
.logo-lg { font-size: 28px; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ============================================================
   VIEW SWITCHER (segmented control fijo)
   ============================================================ */
.view-switch {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 80;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px;
  background: rgba(22,22,28,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}
.view-switch button {
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.18s, background 0.18s;
}
.view-switch button:hover { color: var(--text-1); }
.view-switch button.is-active {
  background: var(--text-1); color: var(--bg-0); font-weight: 600;
}
.view-switch .vs-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7;
}

/* ============================================================
   HEADER (sticky)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.nav-links { display: none; gap: 4px; align-items: center; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-link {
  padding: 8px 14px; color: var(--text-2); font-size: 14px; font-weight: 500;
  border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text-1); }
.header-cta { display: flex; gap: 8px; align-items: center; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, color 0.15s ease;
  white-space: nowrap; user-select: none;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 20px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 12px 28px -8px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text-1); border: 1px solid var(--border-strong); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--text-3); }
.btn-soft { color: var(--text-1); background: var(--bg-3); }
.btn-soft:hover { background: var(--bg-4); }
.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { padding: 9px; border-radius: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
@media (min-width: 880px) { .hero { padding: 96px 0 120px; } }
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 50%, transparent);
}
.hero .grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}
@media (min-width: 980px) {
  .hero .grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
}
.hero h1 { margin-top: 20px; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .underline {
  background: linear-gradient(180deg, transparent 70%, var(--accent-soft) 70%);
  padding: 0 4px;
}
.hero .sub { margin-top: 22px; max-width: 540px; }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .social-proof {
  margin-top: 36px;
  display: flex; align-items: center; gap: 14px;
  color: var(--text-3); font-size: 13px;
}
.avatars { display: inline-flex; }
.avatars .av {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  border: 2px solid var(--bg-0);
  margin-left: -8px;
}
.avatars .av:first-child { margin-left: 0; }
.av-1 { background: #7c3aed; }
.av-2 { background: #0ea5e9; }
.av-3 { background: #ec4899; }
.av-4 { background: #14b8a6; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 13px; }

/* ---------- Mockup de plataforma (hero right) ---------- */
.platform-mockup {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-pop);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: left center;
}
@media (max-width: 980px) {
  .platform-mockup { transform: none; max-width: 540px; margin: 0 auto; }
}
.pm-chrome {
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; border-bottom: 1px solid var(--border);
}
.pm-chrome .pm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-4); }
.pm-chrome .pm-url {
  flex: 1; height: 22px; border-radius: 6px; background: var(--bg-3);
  display: flex; align-items: center; padding: 0 10px;
  font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 10px; color: var(--text-3);
}
.pm-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; padding-top: 14px; }
.pm-video {
  aspect-ratio: 16/10;
  border-radius: 10px;
  background:
    radial-gradient(120% 80% at 50% 30%, #1f2030 0%, #0c0c10 70%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pm-video::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.pm-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.pm-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.pm-progress {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 4px; border-radius: 2px; background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.pm-progress::after { content: ""; display: block; height: 100%; width: 18%; background: var(--accent); }
.pm-title {
  margin-top: 10px; font-size: 12px; color: var(--text-1); font-weight: 500;
}
.pm-meta { font-size: 10px; color: var(--text-3); font-family: 'Ubuntu Mono', ui-monospace, monospace; }
.pm-sidebar { display: flex; flex-direction: column; gap: 6px; }
.pm-side-head { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); padding: 0 4px 4px; }
.pm-mod {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; font-size: 11px;
  color: var(--text-2);
  border: 1px solid transparent;
}
.pm-mod.is-active { background: var(--accent-soft); color: var(--text-0); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.pm-mod .pm-mod-ico {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--text-3);
  flex-shrink: 0;
}
.pm-mod.is-active .pm-mod-ico { background: var(--accent); color: #fff; }
.pm-mod .pm-mod-ico svg { width: 9px; height: 9px; }
.pm-mod-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-mod-time { font-size: 9px; color: var(--text-4); font-family: 'Ubuntu Mono', ui-monospace, monospace; }

.pm-badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: -0.005em;
  padding: 7px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 20px -4px var(--accent-glow);
}
.pm-badge svg { width: 12px; height: 12px; }

/* ============================================================
   PERSONAS (¿Para quién?)
   ============================================================ */
.personas {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .personas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .personas { grid-template-columns: repeat(4, 1fr); } }
.persona {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  overflow: hidden;
}
.persona:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--bg-2); }
.persona .p-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.persona .p-ico svg { width: 22px; height: 22px; }
.persona h4 { font-size: 17px; margin-bottom: 8px; }
.persona p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.persona .p-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: 'Ubuntu Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--text-3); letter-spacing: 0.08em;
}

/* ============================================================
   CONTENIDO (acordeón módulos)
   ============================================================ */
.modules { display: flex; flex-direction: column; gap: 8px; max-width: 880px; }
.module {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.module:hover { border-color: var(--border-strong); }
.module.is-open { border-color: var(--accent); background: var(--bg-2); }
.module-head {
  display: flex; align-items: center; gap: 20px;
  width: 100%; padding: 22px 24px;
  text-align: left;
  transition: background 0.15s;
}
.module-num {
  font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500;
  color: var(--text-3);
  width: 32px; flex-shrink: 0;
}
.module.is-open .module-num { color: var(--accent); }
.module-title { flex: 1; font-weight: 500; font-size: 17px; color: var(--text-1); }
.module-time { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 12px; color: var(--text-3); }
.module-chev {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: transform 0.25s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.module.is-open .module-chev { transform: rotate(180deg); color: var(--accent); background: var(--accent-soft); }
.module-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.module.is-open .module-body { grid-template-rows: 1fr; }
.module-body-inner { overflow: hidden; }
.module-classes { padding: 4px 24px 24px 76px; display: flex; flex-direction: column; gap: 2px; }
.module-class {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; margin-left: -12px;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.module-class:hover { background: var(--bg-3); }
.mc-num { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-3); width: 28px; }
.mc-name { flex: 1; color: var(--text-1); }
.mc-time { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-3); }

/* ============================================================
   INSTRUCTOR
   ============================================================ */
.instructor {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) { .instructor { grid-template-columns: 0.7fr 1fr; gap: 64px; } }
.instructor-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--bg-1)) 0%, var(--bg-1) 60%),
    var(--bg-1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  max-width: 360px;
}
.instructor-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 70% 30%, var(--accent-soft), transparent 60%);
}
.instructor-portrait .ip-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  z-index: 1;
  opacity: 0.95;
}
.instructor-portrait .ip-noise {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.instructor-portrait .ip-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 6px;
  font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 10px;
  color: var(--text-1); letter-spacing: 0.1em;
  z-index: 2;
}
.instructor-info .eyebrow { margin-bottom: 16px; }
.instructor-info h3 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.03em; margin-bottom: 8px; }
.instructor-info .role { color: var(--accent); font-size: 15px; font-weight: 500; margin-bottom: 24px; }
.instructor-info p { color: var(--text-2); font-size: 16px; margin-bottom: 16px; max-width: 56ch; }
.instructor-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.istat .v { font-size: 26px; font-weight: 600; color: var(--text-0); letter-spacing: -0.02em; }
.istat .l { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.testimonial:hover { border-color: var(--border-strong); }
.testimonial .quote {
  font-size: 16px; color: var(--text-1); line-height: 1.55;
  margin-bottom: 24px; flex: 1;
  text-wrap: pretty;
}
.testimonial .quote::before {
  content: "“";
  display: block;
  font-size: 56px; line-height: 0.6;
  color: var(--accent);
  font-family: 'Ubuntu', serif;
  margin-bottom: 18px;
  font-weight: 500;
}
.t-person { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.t-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.t-meta { font-size: 13px; line-height: 1.3; }
.t-meta .n { color: var(--text-1); font-weight: 500; }
.t-meta .l { color: var(--text-3); margin-top: 2px; font-size: 12px; }
.t-result {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-family: 'Ubuntu Mono', ui-monospace, monospace;
  color: var(--accent); margin-top: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft);
  align-self: flex-start;
}

/* ============================================================
   PRECIOS
   ============================================================ */
.pricing {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  max-width: 880px; margin: 0 auto;
}
@media (min-width: 780px) { .pricing { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
}
.plan.is-featured {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px var(--accent-glow);
}
.plan-tag {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
  font-family: 'Ubuntu Mono', ui-monospace, monospace;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; color: var(--text-0); }
.plan .plan-sub { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 28px;
}
.plan-price .p-currency { color: var(--text-2); font-size: 18px; font-weight: 500; }
.plan-price .p-amount { font-size: 48px; font-weight: 700; color: var(--text-0); letter-spacing: -0.03em; line-height: 1; }
.plan-price .p-period { color: var(--text-3); font-size: 14px; margin-left: 4px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-1);
}
.plan-features li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.plan-features li.muted { color: var(--text-3); }
.plan-features li.muted svg { color: var(--text-4); }
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faqs { max-width: 760px; }
.faq { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 22px 0;
  text-align: left;
  font-size: 17px; font-weight: 500; color: var(--text-1);
}
.faq-q:hover { color: var(--text-0); }
.faq-q-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); color: var(--text-2);
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
.faq.is-open .faq-q-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding-bottom: 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 60ch; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: -30% auto auto 50%; transform: translateX(-50%);
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
}
.cta-banner h2 { position: relative; margin-bottom: 16px; text-wrap: balance; }
.cta-banner p { position: relative; color: var(--text-2); margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg-1);
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); font-size: 14px; max-width: 32ch; }
.footer-col h5 {
  font-family: 'Ubuntu Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-3); margin-bottom: 16px;
}
.footer-col a { display: block; padding: 6px 0; color: var(--text-2); font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--text-0); }
.footer-col a svg { display: inline-block; vertical-align: -3px; margin-right: 8px; width: 14px; height: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}

/* ============================================================
   PLATAFORMA
   ============================================================ */
.platform { display: none; min-height: 100vh; flex-direction: column; background: var(--bg-0); }
.platform.is-visible { display: flex; }

.platform-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  position: sticky; top: 0; z-index: 40;
}
@media (min-width: 768px) { .platform-header { padding: 0 28px; } }
.ph-left { display: flex; align-items: center; gap: 20px; }
.ph-divider { width: 1px; height: 22px; background: var(--border-strong); }
.ph-crumb {
  display: none; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
  white-space: nowrap;
}
@media (min-width: 720px) { .ph-crumb { display: flex; } }
.ph-crumb .c-course { color: var(--text-1); font-weight: 500; }
.ph-right { display: flex; align-items: center; gap: 14px; }
.ph-action {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.ph-action:hover { background: var(--bg-3); color: var(--text-0); }
.ph-user {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.ph-user:hover { border-color: var(--border-strong); background: var(--bg-2); }
.ph-user .av {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  color: #fff; font-weight: 600; font-size: 12px;
}
.ph-user .greeting { color: var(--text-1); }
.ph-user .greeting strong { color: var(--text-0); font-weight: 600; }

/* ---- Layout (player + sidebar) ---- */
.platform-main {
  flex: 1;
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .platform-main { grid-template-columns: minmax(0, 1fr) 360px; }
}

.player-col { padding: 28px 20px 80px; min-width: 0; }
@media (min-width: 768px) { .player-col { padding: 32px 32px 80px; } }

.player {
  background: #000;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.player-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 50% 35%, #1a1c2a 0%, #0a0b10 70%);
}
.player-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
}
.player-poster-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: clamp(16px, 2vw, 22px);
  color: var(--text-3); letter-spacing: 0.06em;
  flex-direction: column; gap: 6px;
  pointer-events: none;
}
.player-poster-glyph .pp-num {
  font-size: clamp(56px, 10vw, 120px); font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.03em; line-height: 1;
  font-family: 'Ubuntu', sans-serif;
  text-shadow: 0 0 40px rgba(0,0,0,0.8);
  white-space: nowrap;
}
.player-poster-glyph .pp-num .accent { color: var(--accent); }
.player-poster-glyph .pp-num .accent { color: var(--accent); }

.player-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.player-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--accent); border-color: var(--accent); }
.player-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  display: flex; flex-direction: column; gap: 8px;
}
.player-bar {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.player-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; background: var(--accent);
  transition: width 0.2s;
}
.player-row { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 12px; }
.player-row svg { width: 16px; height: 16px; cursor: pointer; opacity: 0.85; transition: opacity 0.15s; }
.player-row svg:hover { opacity: 1; }
.player-time { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 11px; opacity: 0.85; }
.player-row .spacer { flex: 1; }

/* ---- Tabs bajo el player ---- */
.lesson-meta { margin-top: 22px; }
.lesson-meta .eyebrow { margin-bottom: 12px; }
.lesson-meta h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; text-wrap: balance; }
.lesson-meta .stats { display: flex; gap: 16px; color: var(--text-3); font-size: 13px; }
.lesson-meta .stats span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta .stats svg { width: 14px; height: 14px; }

.tabs {
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.15s;
}
.tab:hover { color: var(--text-1); }
.tab.is-active { color: var(--text-0); }
.tab.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.tab-panels { padding-top: 24px; }
.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tab-panel p { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-bottom: 14px; max-width: 60ch; }
.tab-panel h4 { font-size: 14px; color: var(--text-1); margin-top: 24px; margin-bottom: 12px; }
.tab-panel ul { list-style: none; }
.tab-panel li { padding: 6px 0; color: var(--text-2); display: flex; gap: 10px; font-size: 14px; }
.tab-panel li::before { content: "—"; color: var(--text-4); }

/* Recursos descargables */
.resources { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.resource {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.resource:hover { border-color: var(--accent); background: var(--bg-2); }
.resource .r-ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.resource .r-ico svg { width: 18px; height: 18px; }
.resource .r-name { flex: 1; font-size: 14px; color: var(--text-1); font-weight: 500; }
.resource .r-meta { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-3); }
.resource .r-dl {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.resource .r-dl:hover { color: var(--accent); background: var(--accent-soft); }
.resource .r-dl svg { width: 16px; height: 16px; }

/* Notas */
.notes-box {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px; max-width: 560px;
}
.notes-box textarea {
  width: 100%; min-height: 160px; padding: 14px;
  background: transparent; border: none; resize: vertical;
  color: var(--text-1); font-size: 14px; line-height: 1.6;
  outline: none;
  font-family: inherit;
}
.notes-box textarea::placeholder { color: var(--text-3); }
.notes-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

/* ---- Sidebar derecha ---- */
.platform-sidebar {
  border-left: 1px solid var(--border);
  background: var(--bg-1);
  padding: 28px 20px;
  display: flex; flex-direction: column;
  position: sticky; top: 60px;
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
@media (max-width: 1099px) {
  .platform-sidebar {
    position: static;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.ps-progress { padding: 4px 4px 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.ps-progress-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.ps-progress-head .l { font-size: 13px; color: var(--text-2); }
.ps-progress-head .v { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 13px; color: var(--text-0); font-weight: 500; }
.ps-bar {
  height: 6px; border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}
.ps-bar-fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.ps-progress-note {
  margin-top: 12px;
  font-size: 12px; color: var(--text-3);
}
.ps-progress-note .accent { color: var(--accent); }

.ps-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px 12px;
}
.ps-section-head h4 { font-size: 13px; color: var(--text-1); font-weight: 600; }
.ps-section-head .more {
  font-family: 'Ubuntu Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--text-3); letter-spacing: 0.1em;
}

.ps-modules { display: flex; flex-direction: column; gap: 4px; }
.ps-mod {
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.2s;
}
.ps-mod:hover { background: var(--bg-2); }
.ps-mod.is-active { background: var(--bg-2); }
.ps-mod-head {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px;
  text-align: left;
}
.ps-mod-state {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.ps-mod-state svg { width: 11px; height: 11px; }
.ps-mod.state-done .ps-mod-state { background: var(--accent); border-color: var(--accent); color: #fff; }
.ps-mod.state-active .ps-mod-state { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ps-mod.state-active .ps-mod-state::after {
  content: ""; position: absolute;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring-pulse 1.8s ease-out infinite;
}
.ps-mod.state-active .ps-mod-state { position: relative; }
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.ps-mod.state-locked .ps-mod-state { color: var(--text-4); }
.ps-mod-info { flex: 1; min-width: 0; }
.ps-mod-title { font-size: 13px; font-weight: 500; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-mod.state-locked .ps-mod-title { color: var(--text-3); }
.ps-mod-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; font-family: 'Ubuntu Mono', ui-monospace, monospace; }
.ps-mod-chev { color: var(--text-3); transition: transform 0.25s; flex-shrink: 0; }
.ps-mod.is-expanded .ps-mod-chev { transform: rotate(180deg); }
.ps-mod-classes {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.ps-mod.is-expanded .ps-mod-classes { grid-template-rows: 1fr; }
.ps-mod-classes-inner { overflow: hidden; }
.ps-class {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 46px;
  font-size: 12px; color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}
.ps-class:hover { color: var(--text-1); background: var(--bg-3); }
.ps-class.is-current { color: var(--text-0); border-left-color: var(--accent); }
.ps-class.is-current .ps-class-name { color: var(--text-0); }
.ps-class.is-current::before {
  content: "▸"; color: var(--accent); font-size: 9px;
  margin-right: -4px;
}
.ps-class-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-class-time { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 10px; color: var(--text-4); }
.ps-mod.state-locked .ps-class { color: var(--text-4); pointer-events: none; }

/* ============================================================
   TWEAKS panel (vanilla)
   ============================================================ */
.tweaks-toggle { display: none; } /* lo controla el host */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 80px; z-index: 90;
  width: 260px;
  background: rgba(22,22,28,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tweaks-head h5 {
  font-family: 'Ubuntu Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-2); font-weight: 500;
}
.tweaks-close {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.tweaks-close:hover { background: var(--bg-3); color: var(--text-1); }
.tweak-section { padding-top: 8px; }
.tweak-label { font-size: 12px; color: var(--text-2); margin-bottom: 10px; display: flex; justify-content: space-between; }
.tweak-label .v { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-3); }
.tweak-swatches { display: flex; gap: 8px; }
.swatch {
  flex: 1; aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.06); }
.swatch.is-selected { border-color: var(--text-1); }
.swatch.is-selected::after {
  content: "✓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.divider-grad {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 80px 0;
}

@media (max-width: 480px) {
  .hero { padding-top: 40px; }
  section { padding: 64px 0; }
  .plan { padding: 24px; }
  .testimonial { padding: 22px; }
}

/* ============================================================
   STEP NAV (navegador entre las 4 pantallas)
   ============================================================ */
.step-nav {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 80;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px 6px 14px;
  background: rgba(20, 27, 34, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  font-family: 'Ubuntu', sans-serif;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}
.step-nav::-webkit-scrollbar { display: none; }
.step-nav .sn-label {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-3); padding-right: 6px;
  white-space: nowrap;
}
.step-nav .sn-step {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.step-nav .sn-step:hover { color: var(--text-0); background: var(--bg-3); }
.step-nav .sn-step.is-current {
  background: var(--text-1); color: var(--bg-0); font-weight: 700;
}
.step-nav .sn-step.is-current .sn-num {
  background: var(--accent); color: #fff;
}
.step-nav .sn-num {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--text-2);
  font-family: 'Ubuntu Mono', monospace;
  font-size: 10px; font-weight: 700;
}
.step-nav .sn-sep { color: var(--text-4); font-size: 11px; padding: 0 2px; }
@media (max-width: 700px) {
  .step-nav .sn-name { display: none; }
  .step-nav .sn-step { padding: 7px 9px; }
  .step-nav .sn-label { display: none; }
}

/* ensure pages have padding for the bottom nav */
body { padding-bottom: 80px; }
