/* ============================================================
   pypro.mx — bootcamp landings
   Editor at Night design system. See DESIGN.md.
   ============================================================ */

/* -----------------------------------------------------------
   Tokens
   ----------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-pressed: #1E40AF;
  --color-primary-container: #1E3A8A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #22D3EE;
  --color-on-secondary: #0F1117;

  --color-background: #0F1117;
  --color-surface: #1A1D27;
  --color-surface-alt: #22262F;

  --color-on-background: #FFFFFF;
  --color-on-surface: #E2E8F0;
  --color-on-surface-muted: #94A3B8;

  --color-border: #2D3340;
  --color-border-strong: #3D4452;
  --color-divider: #1F2330;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #22D3EE;

  --color-code-bg: #0A0D14;
  --color-code-keyword: #F472B6;
  --color-code-string: #FACC15;
  --color-code-comment: #64748B;
  --color-code-function: #22D3EE;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  --font-mono-display: 'Space Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Rounded */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* Shadows */
  --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-hero-glow: 0 0 24px rgba(37, 99, 235, 0.35);
  --shadow-hero-glow-hover: 0 0 32px rgba(37, 99, 235, 0.50);
  --shadow-input-focus: 0 0 0 3px rgba(34, 211, 238, 0.30);

  /* Layout */
  --container-max: 1080px;
  --measure: 65ch;
}

/* -----------------------------------------------------------
   Reset + base
   ----------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-background);
  background-image:
    /* Soft top-of-page wash (always present, scrolls fixed) */
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
    /* Diagnostic Cyan dot grid — graph-paper-at-night */
    radial-gradient(circle at 1px 1px, rgba(34, 211, 238, 0.06) 1.5px, transparent 1.6px);
  background-size: 100% 100%, 36px 36px;
  background-position: 0 0, 0 0;
  background-attachment: fixed, fixed;
  color: var(--color-on-surface);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Subtle film grain — adds tactile depth, kills AI-flatness */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.03;
  mix-blend-mode: screen;
}

/* Major content layers must paint above the grain */
main, footer { position: relative; z-index: 2; }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out-quart);
}

a:hover {
  color: #3B82F6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-input-focus);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-primary-container);
  color: var(--color-on-background);
}

/* Tinted scrollbar (optional polish) */
* {
  scrollbar-color: var(--color-border-strong) var(--color-background);
}

/* -----------------------------------------------------------
   Layout: container + section
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

.section--tight {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section + .section {
  padding-top: 0;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 var(--space-md) 0;
}

.section-header {
  margin-bottom: var(--space-2xl);
  max-width: var(--measure);
}

.section-header > p {
  margin-top: var(--space-md);
  color: var(--color-on-surface-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* -----------------------------------------------------------
   Typography helpers
   ----------------------------------------------------------- */
.t-display {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-on-background);
  margin: 0;
}

.t-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-on-background);
  margin: 0;
}

.t-headline-sm {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-on-background);
  margin: 0;
}

.t-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-on-background);
  margin: 0;
}

.t-title-sm {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-on-background);
  margin: 0;
}

.t-body-lg {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-on-surface);
  max-width: var(--measure);
}

.t-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-on-surface);
  max-width: var(--measure);
}

.t-body-sm {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-on-surface);
}

.t-muted { color: var(--color-on-surface-muted) !important; }
.t-strong { color: var(--color-on-background); font-weight: 600; }
.t-mono { font-family: var(--font-mono); }
.t-mono-display { font-family: var(--font-mono-display); }

/* Inline code in body copy */
.t-body code,
.t-body-lg code,
.t-body-sm code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--color-surface-alt);
  color: var(--color-on-background);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-base) var(--ease-out-quart),
    color var(--dur-base) var(--ease-out-quart),
    border-color var(--dur-base) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-quart);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}
.btn--primary:active {
  background: var(--color-primary-pressed);
}

.btn--hero {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  box-shadow: var(--shadow-hero-glow);
  animation: pulse-glow 3s var(--ease-out-quart) infinite alternate;
}
.btn--hero:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-hero-glow-hover);
}
.btn--hero:active {
  background: var(--color-primary-pressed);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 16px rgba(37, 99, 235, 0.25); }
  100% { box-shadow: 0 0 32px rgba(37, 99, 235, 0.50); }
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-on-surface);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-border-strong);
  color: var(--color-on-background);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 10px 16px;
}
.btn--ghost:hover {
  color: #3B82F6;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.btn .arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* -----------------------------------------------------------
   Navigation
   ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition:
    background var(--dur-base) var(--ease-out-quart),
    border-color var(--dur-base) var(--ease-out-quart),
    backdrop-filter var(--dur-base) var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(15, 17, 23, 0.85);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-on-background);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--color-on-background);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
  /* Asset is dark-on-transparent. Invert to light for our dark page. */
  filter: invert(1) brightness(1.05);
  transition: opacity var(--dur-base) var(--ease-out-quart);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 26px;
  }
}

.nav-cta {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

@media (max-width: 480px) {
  .nav-cta-text-long { display: none; }
}

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(64px + var(--space-4xl));
    padding-bottom: var(--space-4xl);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-primary-container);
  color: var(--color-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: var(--space-lg);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  margin: 0 0 var(--space-lg) 0;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-on-surface);
  margin: 0 0 var(--space-2xl) 0;
  max-width: 60ch;
}

.hero-sub strong {
  color: var(--color-on-background);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-md);
}

.hero-trust {
  font-size: 0.8125rem;
  color: var(--color-on-surface-muted);
  margin: 0;
}

/* Code block as hero signature device */
.hero-code {
  margin: var(--space-2xl) 0;
  max-width: 640px;
}

/* Hero atmosphere: soft glow + faded hex motif (brand signature, <5% opacity per DESIGN.md) */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -260px;
  width: 820px;
  height: 820px;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.04) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -120px;
  width: 640px;
  height: 640px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill='none'><path d='M320 30 L562 170 L562 470 L320 610 L78 470 L78 170 Z' stroke='%232563EB' stroke-width='1.5' opacity='0.55'/><path d='M320 130 L478 220 L478 420 L320 510 L162 420 L162 220 Z' stroke='%2322D3EE' stroke-width='1.25' opacity='0.40'/><path d='M320 220 L398 265 L398 365 L320 410 L242 365 L242 265 Z' stroke='%23F472B6' stroke-width='1' opacity='0.30'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.10;
}

@media (max-width: 768px) {
  .hero::after {
    top: 20px;
    right: -200px;
    width: 480px;
    height: 480px;
    opacity: 0.08;
  }
}

/* -----------------------------------------------------------
   Code block (Terminal Black)
   ----------------------------------------------------------- */
.code-block {
  background: var(--color-code-bg);
  color: var(--color-on-surface);
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-on-surface-muted);
  letter-spacing: 0.02em;
}

.code-block__dots {
  display: inline-flex;
  gap: 6px;
  margin-right: var(--space-sm);
}
.code-block__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.code-block__filename {
  font-family: var(--font-mono);
  color: var(--color-on-surface);
}

.code-block__body {
  padding: 20px;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

.code-block__body code {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

/* Syntax tokens */
.tok-keyword  { color: var(--color-code-keyword); }
.tok-string   { color: var(--color-code-string); }
.tok-comment  { color: var(--color-code-comment); font-style: italic; }
.tok-function { color: var(--color-code-function); }
.tok-class    { color: var(--color-code-function); }
.tok-number   { color: var(--color-warning); }

/* -----------------------------------------------------------
   Badges
   ----------------------------------------------------------- */
.badge-tech,
.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-tech {
  background: var(--color-primary-container);
  color: var(--color-secondary);
}

.badge-tag {
  background: var(--color-surface);
  color: var(--color-on-surface-muted);
  border: 1px solid var(--color-border);
}

/* -----------------------------------------------------------
   "Para quién es" — bullet list
   ----------------------------------------------------------- */
.audience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  max-width: var(--measure);
}

.audience-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.audience-not {
  color: var(--color-on-surface-muted);
  font-size: 0.9375rem;
  font-style: italic;
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
  margin: 0;
  max-width: var(--measure);
}

/* -----------------------------------------------------------
   Outcomes — checked list
   ----------------------------------------------------------- */
.outcomes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .outcomes-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-xl);
  }
}

.outcomes-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.55;
}

.outcomes-list li strong {
  color: var(--color-on-background);
  font-weight: 600;
}

.outcome-check {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-primary-container);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.outcome-check svg {
  width: 12px;
  height: 12px;
}

/* -----------------------------------------------------------
   Curriculum
   ----------------------------------------------------------- */
.curriculum {
  display: grid;
  gap: var(--space-xl);
}

.curriculum-week {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
}

.curriculum-week__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 var(--space-xs) 0;
}

.curriculum-week__title {
  margin: 0 0 var(--space-md) 0;
}

.curriculum-sessions {
  display: grid;
  gap: var(--space-md);
}

.curriculum-session {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: baseline;
}

.curriculum-session:last-child {
  border-bottom: 0;
}

.curriculum-session__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-secondary);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.curriculum-session__body {
  color: var(--color-on-surface);
}

.curriculum-session__body strong {
  color: var(--color-on-background);
  font-weight: 600;
}

.curriculum-meta {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-on-surface-muted);
  font-family: var(--font-mono);
}

/* -----------------------------------------------------------
   Credibility section
   ----------------------------------------------------------- */
.credibility-block {
  max-width: var(--measure);
}

.credibility-block p {
  margin: 0 0 var(--space-md) 0;
  line-height: 1.7;
}

.credibility-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.credibility-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.credibility-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

/* "Lo que NO te prometo" — soft frame, no shouting */
.honest-block {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
}

.honest-block__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-surface-muted);
  margin: 0 0 var(--space-sm) 0;
}

.honest-block p {
  margin: 0;
  color: var(--color-on-surface);
  line-height: 1.7;
}

.honest-block p + p {
  margin-top: var(--space-md);
}

/* -----------------------------------------------------------
   Pricing block
   ----------------------------------------------------------- */
.pricing {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
}

/* Conversion-moment halo — soft and broad, behind the card */
.pricing::before {
  content: '';
  position: absolute;
  inset: -80px -120px;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.05) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.pricing__amount {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-on-background);
  margin: 0;
}

.pricing__amount sup {
  font-size: 0.45em;
  font-weight: 600;
  vertical-align: super;
  color: var(--color-on-surface-muted);
  margin-right: var(--space-xs);
}

.pricing__details {
  margin: var(--space-lg) 0 0 0;
  color: var(--color-on-surface);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pricing__extras {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-on-surface-muted);
  line-height: 1.55;
}

.pricing__currency {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--color-on-surface-muted);
  letter-spacing: 0.05em;
}

/* -----------------------------------------------------------
   Locale-aware pricing — :root.is-mx set by inline <head> script
   ----------------------------------------------------------- */
.price-mxn { display: none; }
.price-usd { display: inline; }

:root.is-mx .price-usd { display: none; }
:root.is-mx .price-mxn { display: inline; }

/* -----------------------------------------------------------
   FAQ accordion
   ----------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-on-background);
  text-align: left;
  line-height: 1.4;
  transition: color var(--dur-base) var(--ease-out-quart);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out-quart);
}

.faq-icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out-quart);
}

.faq-answer__inner {
  padding-bottom: var(--space-lg);
  padding-right: var(--space-2xl);
  color: var(--color-on-surface);
  line-height: 1.7;
}

.faq-answer__inner p {
  margin: 0;
}

.faq-answer__inner p + p {
  margin-top: var(--space-md);
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

/* -----------------------------------------------------------
   Waitlist form
   ----------------------------------------------------------- */
.waitlist-section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
    var(--color-background);
}

@media (min-width: 768px) {
  .waitlist-section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

.waitlist-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-inner h2 {
  margin: 0 0 var(--space-md) 0;
}

.waitlist-inner > p {
  color: var(--color-on-surface);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 var(--space-xl) 0;
}

.waitlist-form {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
  width: 100%;
  background: var(--color-background);
  color: var(--color-on-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color var(--dur-base) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-quart);
}

.waitlist-form input[type="text"]::placeholder,
.waitlist-form input[type="email"]::placeholder {
  color: var(--color-code-comment);
}

.waitlist-form input[type="text"]:hover,
.waitlist-form input[type="email"]:hover {
  border-color: var(--color-border-strong);
}

.waitlist-form input[type="text"]:focus-visible,
.waitlist-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-input-focus);
}

.waitlist-form input.is-error {
  border-color: var(--color-error);
}

.waitlist-form button[type="submit"] {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-quart);
}

.waitlist-form button[type="submit"]:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-hero-glow);
}

.waitlist-form button[type="submit"]:active {
  background: var(--color-primary-pressed);
}

.waitlist-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.waitlist-note {
  font-size: 0.8125rem;
  color: var(--color-on-surface-muted);
  margin: 0;
}

/* Honeypot — invisible to humans */
.ohnohoney {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

/* Form helper line (under field on error) */
.form-helper {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin: -8px 0 0 0;
  text-align: left;
}

/* Success panel */
.waitlist-success {
  padding: var(--space-xl) var(--space-md);
}

.check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-container);
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg) auto;
  box-shadow: var(--shadow-hero-glow);
}

.check-circle svg {
  width: 28px;
  height: 28px;
}

.waitlist-success h3 {
  margin: 0 0 var(--space-md) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-on-background);
}

.waitlist-success p {
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-on-surface);
  line-height: 1.6;
}

.waitlist-success p:last-child {
  margin-bottom: 0;
}

.wl-position {
  font-family: var(--font-mono);
  color: var(--color-secondary);
  font-weight: 600;
}

.wl-email {
  color: var(--color-on-background);
  font-weight: 600;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-sig {
  font-size: 0.875rem;
  color: var(--color-on-surface);
  margin: 0;
}

.footer-sig strong {
  color: var(--color-on-background);
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--color-on-surface-muted);
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.footer-socials a {
  color: var(--color-on-surface-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  transition:
    color var(--dur-base) var(--ease-out-quart),
    background var(--dur-base) var(--ease-out-quart),
    transform var(--dur-base) var(--ease-out-quart);
}

.footer-socials a:hover {
  color: var(--color-secondary);
  background: var(--color-surface);
  transform: translateY(-1px);
}

.footer-socials a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-input-focus);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* -----------------------------------------------------------
   Fade-up entrance (IntersectionObserver hooks)
   ----------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms var(--ease-out-quart),
    transform 600ms var(--ease-out-quart);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------
   Disruptive markers — hand-drawn vector annotations
   ----------------------------------------------------------- */

/* Marker underline — emphasizes a phrase like print mark-up */
.marked {
  position: relative;
  display: inline-block;
}

.marked::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.14em;
  height: 0.2em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none' fill='none'><path d='M 5 9 Q 50 4, 100 7 T 195 5' stroke='%2322D3EE' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Hand-drawn open circle — annotates a number/phrase like instructor mark-up */
.circled {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.circled::before {
  content: '';
  position: absolute;
  inset: -10px -32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120' fill='none' preserveAspectRatio='none'><g transform='rotate(-3 120 60)'><path d='M 40 72 C 40 32, 112 22, 178 30 C 220 38, 220 75, 198 92 C 168 108, 98 108, 54 95 C 26 85, 30 76, 38 62' stroke='%2322D3EE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.72'/></g></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* -----------------------------------------------------------
   Reduced motion
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn--hero {
    animation: none;
    box-shadow: var(--shadow-hero-glow);
  }

  .hero-eyebrow .dot {
    animation: none;
  }
}

/* -----------------------------------------------------------
   Branches — Paso 2 del home. Cada rama lista cursos reales.
   ----------------------------------------------------------- */
.branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .branches {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .branches {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.branch {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: 4px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.branch:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.branch__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.branch__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-on-surface-muted);
  text-transform: uppercase;
}

.branch__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.branch__list li {
  margin-bottom: 2px;
}

.branch__list li:last-child {
  margin-bottom: 0;
}

.branch__list a {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--color-on-surface);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, padding-left 160ms ease;
}

.branch__list a:hover,
.branch__list a:focus-visible {
  color: var(--color-secondary);
  padding-left: var(--space-sm);
  border-bottom-color: var(--color-border);
}

/* -----------------------------------------------------------
   Auth shell + card (login / registro / password-reset)
   ----------------------------------------------------------- */
.auth-shell {
  min-height: calc(100vh - 64px - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

@media (min-width: 768px) {
  .auth-card { padding: var(--space-2xl); }
}

.auth-card__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.auth-card__title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-on-background);
  margin: 0 0 var(--space-sm) 0;
}

.auth-card__sub {
  font-size: 0.9375rem;
  color: var(--color-on-surface-muted);
  margin: 0 0 var(--space-xl) 0;
  line-height: 1.5;
}

.auth-card__foot {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-divider);
  font-size: 0.875rem;
  color: var(--color-on-surface-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}

.auth-card__foot a { color: var(--color-primary); }
.auth-card__foot a:hover { color: #3B82F6; }

/* -----------------------------------------------------------
   Forms (generic)
   ----------------------------------------------------------- */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row__label,
.form-row label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-on-surface);
}

.form-input,
.form-textarea,
.form-select,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="date"].form-control,
textarea.form-control,
select.form-control {
  width: 100%;
  background: var(--color-background);
  color: var(--color-on-background);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--dur-base) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-quart);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-input-focus);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-on-surface-muted); }

.form-textarea {
  min-height: 96px;
  resize: vertical;
  font-family: var(--font-sans);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-file {
  width: 100%;
  font-size: 0.875rem;
  color: var(--color-on-surface);
}

.form-file::file-selector-button {
  background: var(--color-surface);
  color: var(--color-on-surface);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  margin-right: var(--space-md);
  cursor: pointer;
}

.form-file::file-selector-button:hover {
  background: var(--color-surface-alt);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-on-surface-muted);
  margin: 0;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin: 0;
}

.form-row--error .form-input,
.form-row--error .form-textarea,
.form-row--error .form-select {
  border-color: var(--color-error);
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.form-submit-row .btn { width: 100%; }

@media (min-width: 480px) {
  .form-submit-row .btn { width: auto; }
}

/* -----------------------------------------------------------
   Alerts
   ----------------------------------------------------------- */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.alert--error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #FCA5A5;
}

.alert--success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #6EE7B7;
}

.alert--info {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.06);
  color: var(--color-secondary);
}

/* -----------------------------------------------------------
   Page hero — small compact hero for legal / contact / stripe / webinar
   ----------------------------------------------------------- */
.page-hero {
  padding-top: calc(64px + var(--space-2xl));
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: calc(64px + var(--space-3xl));
    padding-bottom: var(--space-2xl);
  }
}

.page-hero__inner {
  max-width: 720px;
}

.page-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-on-background);
  margin: 0 0 var(--space-md) 0;
}

.page-hero__sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-on-surface-muted);
  max-width: var(--measure);
  margin: 0;
}

/* -----------------------------------------------------------
   Prose — long-form text (legal pages, etc.)
   ----------------------------------------------------------- */
.prose {
  max-width: var(--measure);
  color: var(--color-on-surface);
  font-size: 1rem;
  line-height: 1.7;
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--color-on-background);
  margin: var(--space-2xl) 0 var(--space-md) 0;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-on-background);
  margin: var(--space-xl) 0 var(--space-sm) 0;
}

.prose p {
  margin: 0 0 var(--space-md) 0;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-lg);
}

.prose li { margin-bottom: var(--space-xs); }

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: #3B82F6; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--color-surface-alt);
  color: var(--color-on-background);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* -----------------------------------------------------------
   Dashboard layout (cuenta, perfil)
   ----------------------------------------------------------- */
.dashboard {
  padding-top: calc(64px + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .dashboard { padding-top: calc(64px + var(--space-3xl)); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 240px 1fr;
    gap: var(--space-2xl);
  }
}

.dashboard-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* -----------------------------------------------------------
   Aside identity block — avatar + email + status pill
   ----------------------------------------------------------- */
.aside-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.aside-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
}

.aside-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aside-avatar__initials {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}

.aside-identity__email {
  font-size: 0.8125rem;
  color: var(--color-on-surface);
  font-weight: 500;
  margin: 0;
  word-break: break-all;
}

.dashboard-aside__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-aside__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-surface-muted);
  margin: 0 0 var(--space-xs) 0;
}

.dashboard-aside__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--color-on-surface);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-base) var(--ease-out-quart),
    border-color var(--dur-base) var(--ease-out-quart);
}

.dashboard-aside__link:hover {
  color: var(--color-on-background);
  border-bottom-color: var(--color-border);
}

.dashboard-aside__link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* -----------------------------------------------------------
   Panel — generic content card for account / stripe / webinar
   ----------------------------------------------------------- */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-divider);
}

.panel__head--bare {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--space-lg);
}

.panel__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-on-background);
  margin: 0 0 var(--space-xs) 0;
}

.panel__sub {
  font-size: 0.875rem;
  color: var(--color-on-surface-muted);
  margin: 0;
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.panel__empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-on-surface-muted);
}

.panel__empty p {
  margin: 0 0 var(--space-lg) 0;
  font-size: 0.9375rem;
}

/* -----------------------------------------------------------
   Account meta — key/value list (email, fecha registro, etc)
   ----------------------------------------------------------- */
.account-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .account-meta {
    grid-template-columns: 140px 1fr;
    gap: var(--space-md) var(--space-lg);
    align-items: center;
  }
}

.account-meta__key {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-on-surface-muted);
  letter-spacing: 0.02em;
}

.account-meta__val {
  font-size: 0.9375rem;
  color: var(--color-on-background);
  word-break: break-word;
}

.account-meta__val--mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* -----------------------------------------------------------
   Status pill — Acceso pro / Sin acceso pro
   ----------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid transparent;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--ok {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--color-success);
}

.status-pill--off {
  background: var(--color-surface-alt);
  border-color: var(--color-border);
  color: var(--color-on-surface-muted);
}

/* -----------------------------------------------------------
   Course row — list item for "Mis cursos"
   ----------------------------------------------------------- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-on-surface);
  text-decoration: none;
  transition:
    color var(--dur-base) var(--ease-out-quart),
    padding-left var(--dur-base) var(--ease-out-quart);
}

.course-row:last-child { border-bottom: 0; }

.course-row:hover {
  color: var(--color-secondary);
  padding-left: var(--space-sm);
}

.course-row__title {
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: inherit;
}

.course-row__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--color-on-surface-muted);
}

.course-row__arrow {
  flex-shrink: 0;
  color: var(--color-on-surface-muted);
  transition: transform var(--dur-base) var(--ease-out-quart);
}

.course-row:hover .course-row__arrow {
  transform: translateX(4px);
  color: var(--color-secondary);
}

/* -----------------------------------------------------------
   Stats strip — 3 columnas con contadores en perfil
   ----------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: 0 0 var(--space-lg) 0;
}

.stat-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.stat-card__num {
  font-family: var(--font-mono-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-secondary);
  margin: 0 0 4px 0;
}

.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-surface-muted);
  margin: 0;
}

@media (max-width: 540px) {
  .stat-card__num { font-size: 1.375rem; }
  .stat-card { padding: var(--space-sm) var(--space-md); }
}

/* -----------------------------------------------------------
   Course progress card — card de curso con barra de progreso
   y CTA "continuar". Usado en perfil del estudiante.
   ----------------------------------------------------------- */
.progress-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.progress-card {
  display: block;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-on-surface);
  transition:
    border-color var(--dur-base) var(--ease-out-quart),
    transform var(--dur-base) var(--ease-out-quart);
}

.progress-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-1px);
}

.progress-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.progress-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-on-background);
}

.progress-card__pct {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-secondary);
  white-space: nowrap;
}

.progress-bar {
  height: 6px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width var(--dur-base) var(--ease-out-quart);
}

.progress-bar__fill--done {
  background: var(--color-success);
}

.progress-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-on-surface-muted);
}

.progress-card__next {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.progress-card__cta {
  font-size: 0.75rem;
  color: var(--color-secondary);
  white-space: nowrap;
}

.progress-card:hover .progress-card__cta {
  text-decoration: underline;
}

/* -----------------------------------------------------------
   Contact card — for /contacto/
   ----------------------------------------------------------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-on-surface);
  transition:
    border-color var(--dur-base) var(--ease-out-quart),
    transform var(--dur-base) var(--ease-out-quart);
}

.contact-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: var(--color-on-background);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-container);
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon svg { width: 24px; height: 24px; }

.contact-card__body { flex: 1; min-width: 0; }

.contact-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--color-on-background);
}

.contact-card__sub {
  font-size: 0.875rem;
  color: var(--color-on-surface-muted);
  margin: 0;
}

/* -----------------------------------------------------------
   Print (defensive — these pages aren't print-first)
   ----------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .waitlist-section { display: none; }
}
