/* ==========================================
   EDU21.AI — ESTILOS GLOBALES
   ========================================== */

/* === PRICING SECTION === */
.pricing-section { padding: 80px 0; background: transparent; }
.pricing-section .section-header { text-align: center; margin-bottom: 48px; }
.pricing-section .section-sub { color: var(--text-muted); margin-top: 12px; font-size: 1rem; }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 640px) { .pricing-cards { grid-template-columns: 1fr; } }

.pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.pricing-card-featured {
  background: linear-gradient(145deg, rgba(124,79,240,0.25) 0%, rgba(124,79,240,0.08) 100%);
  border-color: rgba(124,79,240,0.5);
  box-shadow: 0 0 40px rgba(124,79,240,0.15);
}
.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7c4ff0, #a855f7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.pricing-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.pricing-badge-free { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.pricing-badge-pro  { background: rgba(124,79,240,0.3); color: #a78bfa; }
.pricing-price { display: flex; flex-direction: column; gap: 2px; }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-period { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.pricing-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { font-size: 0.9rem; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.pf-check { color: #22c55e; font-weight: 700; flex-shrink: 0; }
.pf-highlight { color: #a78bfa !important; }
.pf-x { color: rgba(255,255,255,0.2); flex-shrink: 0; }
.pf-disabled { color: rgba(255,255,255,0.25) !important; }
.btn-block { display: block; width: 100%; text-align: center; }
.pricing-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin: 0; }

/* === TICKER BANNER === */
.ticker-wrap {
  width: 100%;
  background: #07071a;
  border-bottom: 1px solid rgba(124,79,240,0.15);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
  z-index: 200;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-block;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0 2rem;
  letter-spacing: 0.01em;
}
.ticker-item strong { color: #fde68a; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === VARIABLES === */
:root {
  --purple:       #7c4ff0;
  --purple-light: #a78bfa;
  --purple-dark:  #5b21b6;
  --orange:       #f97316;
  --orange-light: #fb923c;
  --dark:         #07071a;
  --dark-2:       #0d0d24;
  --dark-3:       #13132e;
  --dark-4:       #1a1a3a;
  --text:         #e8e8f8;
  --text-muted:   #8888b0;
  --border:       rgba(124, 79, 240, 0.18);
  --white:        #ffffff;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(124, 79, 240, 0.18);
  --shadow-lg:    0 8px 48px rgba(124, 79, 240, 0.28);
  --transition:   0.3s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
details { cursor: pointer; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn-primary:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--white);
  background: rgba(103, 61, 230, 0.1);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* === TIPOGRAFÍA ESPECIAL === */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-block;
  background: rgba(103, 61, 230, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(103, 61, 230, 0.3);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.logo-icon { height: 36px; width: auto; display: block; }
.logo-text {
  background: linear-gradient(90deg, #4060e0 0%, #00d4c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-edu, .logo-21, .logo-ai { -webkit-text-fill-color: inherit; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  top: -200px;
  right: -100px;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  bottom: -100px;
  left: -100px;
  opacity: 0.2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 61, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 61, 230, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}
/* === HERO TEXT ROTATOR === */
.gradient-text {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gradient-text.tw-out {
  opacity: 0;
  transform: translateY(-6px);
}
.gradient-text.tw-in {
  animation: tw-slide-in 0.4s ease forwards;
}
@keyframes tw-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HERO — SPLIT 2 COLUMNAS ===== */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(103, 61, 230, 0.12);
  border: 1px solid rgba(103, 61, 230, 0.25);
  color: var(--purple-light);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
/* "Enseña con" — más pequeño y apagado */
.hero-title-sup {
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.5px;
}
/* Gradiente rotante — protagonista, siempre en 1 línea */
.hero-title .gradient-text {
  font-size: clamp(34px, 5vw, 64px);
  white-space: normal;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 36px 0;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  flex-wrap: wrap;
  width: 100%;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== HERO — MOCKUP APP WINDOW ===== */
.hero-mockup {
  position: relative;
  animation: mockup-float 4s ease-in-out infinite;
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.mockup-window {
  background: var(--dark-2);
  border: 1px solid rgba(124,79,240,0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.mockup-chrome {
  background: var(--dark-3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.mockup-body { padding: 16px; }

/* Mockup: top bar */
.m-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.m-logo {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.m-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.m-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}

/* Mockup: progress bar */
.m-progress-box {
  background: rgba(124,79,240,0.1);
  border: 1px solid rgba(124,79,240,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.m-progress-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.m-progress-label span { color: var(--purple-light); font-weight: 700; }
.m-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.m-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  border-radius: 99px;
  width: 65%;
  animation: fill-progress 1.8s ease forwards;
}
@keyframes fill-progress {
  from { width: 0; }
  to   { width: 65%; }
}

/* Mockup: course rows */
.m-course {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.m-course-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.m-course-icon.done   { background: rgba(34,197,94,0.15); }
.m-course-icon.active { background: rgba(124,79,240,0.2); }
.m-course-info { flex: 1; min-width: 0; }
.m-course-title {
  font-size: 11px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-course-sub { font-size: 10px; color: var(--text-muted); }
.m-course-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  flex-shrink: 0;
}
.m-course-badge.done   { background: rgba(34,197,94,0.15); color: #22c55e; }
.m-course-badge.active { background: rgba(249,115,22,0.2); color: var(--orange); }

/* Mockup: prompt chips */
.m-prompts-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 12px 0 7px;
}
.m-prompt-chip {
  background: rgba(124,79,240,0.1);
  border: 1px solid rgba(124,79,240,0.25);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.m-prompt-chip::before { content: '💡'; font-size: 12px; }

/* glow detrás del mockup */
.hero-mockup::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(124,79,240,0.25) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

/* ==========================================
   TRUST BAR
   ========================================== */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
}
.trust-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.trust-logo {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.trust-logo:hover { opacity: 1; }

/* ==========================================
   FOR WHO
   ========================================== */
.for-who {
  padding: 100px 0;
  background: var(--dark);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.who-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
}
.who-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.who-card--featured {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.15), rgba(139, 92, 246, 0.08));
  border-color: rgba(103, 61, 230, 0.4);
}
.who-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.who-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.who-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ==========================================
   COURSES
   ========================================== */
.courses {
  padding: 100px 0;
  background: var(--dark-2);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.course-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(103, 61, 230, 0.4);
}
.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.course-badge--free {
  background: #22c55e;
  color: var(--white);
}
.course-badge--premium {
  background: var(--orange);
  color: var(--white);
}
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--dark-4);
  overflow: hidden;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-locked {
  position: relative;
}
.course-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.4);
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}
.lock-icon {
  font-size: 36px;
}
.lock-overlay p {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.course-info {
  padding: 24px;
}
.course-tag {
  display: inline-block;
  background: rgba(103, 61, 230, 0.12);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.course-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.course-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.course-meta span {
  font-size: 13px;
  color: var(--text-muted);
}
.courses-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.courses-cta p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ==========================================
   INSTRUCTOR
   ========================================== */
.instructor {
  padding: 100px 0;
  background: var(--dark);
}
.instructor-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}
.instructor-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.instructor-photo-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
}
.instructor-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--purple);
  color: var(--white);
}
.instructor-bio {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.instructor-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.i-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.i-stat strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}
.i-stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  padding: 100px 0;
  background: var(--dark-2);
}

/* Contador de satisfacción global */
.testimonials-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.t-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.t-meta-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}
.t-meta-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.t-meta-stars {
  color: #f59e0b;
  font-size: 22px;
  letter-spacing: 3px;
}
.t-meta-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Grid masonry con columnas CSS */
.testimonials-grid {
  columns: 3;
  column-gap: 24px;
}
.testimonial-card {
  break-inside: avoid;
  display: block;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 18px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(124,79,240,0.12);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(103, 61, 230, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial-card--featured {
  background: linear-gradient(135deg, rgba(124,79,240,0.14), rgba(139,92,246,0.06));
  border-color: rgba(103, 61, 230, 0.4);
}
.testimonial-card--featured::after {
  content: '⭐ Destacado';
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(124,79,240,0.2);
  color: var(--purple-light);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(124,79,240,0.3);
}
.stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.author-info { flex: 1; }
.testimonial-author strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.testimonial-author span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.author-badge.premium {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.25);
}
.author-badge.free {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
}
.author-badge.inst {
  background: rgba(124,79,240,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124,79,240,0.25);
}

@media (max-width: 900px) {
  .testimonials-grid { columns: 2; }
}
@media (max-width: 560px) {
  .testimonials-grid { columns: 1; }
  .t-meta-divider { display: none; }
}

/* ==========================================
   PRICING
   ========================================== */
.pricing {
  padding: 100px 0;
  background: var(--dark);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: rgba(103, 61, 230, 0.4);
  transform: translateY(-4px);
}
.pricing-card--featured {
  background: linear-gradient(160deg, rgba(103, 61, 230, 0.18), rgba(139, 92, 246, 0.08));
  border-color: var(--purple);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-header {
  margin-bottom: 28px;
}
.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price-amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
}
.price-period {
  font-size: 15px;
  color: var(--text-muted);
}
.price-saving {
  font-size: 13px;
  color: #22c55e;
  font-weight: 500;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0;
}
.feature--yes { color: var(--text); }
.feature--no { opacity: 0.4; }
.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Selector de región en pricing */
.pricing-region-selector {
  display: flex;
  gap: 6px;
  margin: 12px 0 16px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 4px;
}
.pricing-region-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.pricing-region-btn.active {
  background: #7c4ff0;
  color: #fff;
}
.pricing-region-btn:not(.active):hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}
.pricing-amount { transition: opacity .2s; }

/* ==========================================
   FAQ
   ========================================== */
.faq {
  padding: 100px 0;
  background: var(--dark-2);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: rgba(103, 61, 230, 0.4);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--purple-light);
  transition: transform var(--transition);
  flex-shrink: 0;
}
details[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================
   FINAL CTA
   ========================================== */
.final-cta {
  padding: 120px 0;
  background: var(--dark);
  overflow: hidden;
}
.final-cta-inner {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.12), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(103, 61, 230, 0.25);
  border-radius: 28px;
  padding: 80px 40px;
  overflow: hidden;
}
.final-cta-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(103, 61, 230, 0.25), transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.final-cta-inner h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: var(--white);
  margin: 16px 0 24px;
  line-height: 1.15;
}
.final-cta-inner p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--purple);
  color: var(--white);
  background: rgba(103, 61, 230, 0.1);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================
   LIBRO
   ========================================== */
.book-section {
  padding: 100px 0;
  background: var(--dark);
}
.book-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.book-cover-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.book-cover-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.book-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(103, 61, 230, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.book-cover-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(103, 61, 230, 0.25);
  transition: transform var(--transition);
}
.book-cover-img:hover { transform: scale(1.02) rotate(-1deg); }
.book-cover-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 64px;
  color: var(--text-muted);
  z-index: 1;
  position: relative;
}
.book-cover-fallback p {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  padding: 0 16px;
}
.book-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  padding: 16px;
}
.guarantee-icon { font-size: 24px; flex-shrink: 0; }
.book-guarantee strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
}
.book-guarantee span {
  font-size: 13px;
  color: var(--text-muted);
}
.book-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.book-author {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.book-author strong { color: var(--purple-light); }
.book-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.book-topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.book-topics li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.book-format-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.book-format-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.book-format--digital {
  border-color: rgba(103, 61, 230, 0.35);
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.1), rgba(139, 92, 246, 0.05));
}
.format-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.format-icon { font-size: 28px; }
.format-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.format-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.format-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.format-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.format-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.format-note {
  font-size: 12px;
  color: var(--text-muted);
}
.book-cta-btn {
  margin-top: 8px;
  align-self: flex-start;
}

/* Nombre + badge verificado */
.instructor-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0a66c2, #0d7fd6);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.instructor-headline {
  font-size: 14px;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 20px;
}
.instructor-quote {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--purple);
  padding-left: 16px;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* Credenciales del instructor */
.instructor-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.credential-tag {
  background: rgba(103, 61, 230, 0.12);
  border: 1px solid rgba(103, 61, 230, 0.25);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
}

/* Banner del libro en el hero */
.hero-book-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 32px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.hero-book-banner:hover {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}
.hbb-icon { font-size: 28px; }
.hbb-text { text-align: left; }
.hbb-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hbb-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.hbb-arrow {
  font-size: 18px;
  color: var(--orange-light);
  margin-left: 4px;
}

/* ==========================================
   SELECTOR DE MONEDA / REGIÓN
   ========================================== */
.currency-toggle {
  display: inline-flex;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-top: 20px;
}
.currency-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.currency-btn.active {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(124,79,240,0.4);
}
.currency-btn:not(.active):hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.payment-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================
   ANIMACIONES DE SCROLL
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.who-card:nth-child(2) { transition-delay: 0.1s; }
.who-card:nth-child(3) { transition-delay: 0.2s; }
.course-card:nth-child(2) { transition-delay: 0.1s; }
.course-card:nth-child(3) { transition-delay: 0.2s; }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }
.pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-card:nth-child(3) { transition-delay: 0.2s; }

/* Estilos nav móvil */
.nav-links.mobile-open,
.nav-actions.mobile-open {
  display: flex;
}
@media (max-width: 768px) {
  .nav-links.mobile-open {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.mobile-open a {
    padding: 14px 16px;
    font-size: 16px;
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-mockup { display: none; }

  .cards-grid,
  .courses-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .instructor-inner,
  .book-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .book-cover-img {
    max-width: 320px;
    margin: 0 auto;
  }
  .instructor-photo-placeholder {
    aspect-ratio: 16/9;
    max-height: 360px;
  }
  .pricing-card--featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-ghost { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { font-size: 13px; padding: 10px 16px; }

  .hero-stats {
    padding: 20px;
    gap: 0;
  }
  .stat { padding: 12px 16px; }
  .stat-number { font-size: 22px; }

  .cards-grid,
  .courses-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .instructor-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .btn-lg { width: 100%; max-width: 360px; }
  .book-formats { grid-template-columns: 1fr; }
  .hero-book-banner { text-align: left; width: 100%; max-width: 420px; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
  }
  .stat-divider { width: 40px; height: 1px; }
  .footer-links { grid-template-columns: 1fr; }
  .trust-logos { gap: 24px; }
}

/* ==========================================
   CÓMO FUNCIONA — 3 PASOS
   ========================================== */
.how-it-works {
  padding: 100px 0;
  background: var(--dark-3);
}
.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.step-num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  font-size: 28px;
  color: var(--purple);
  margin: 0 20px;
  display: flex;
  align-items: center;
  opacity: 0.5;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .steps-grid { flex-direction: column; align-items: stretch; gap: 12px; }
  .step-card  { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); justify-content: center; margin: 4px 0; }
}

/* ==========================================
   YOUTUBE FACADE
   ========================================== */
.yt-facade {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #13132e 0%, #2d1b69 100%);
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.yt-facade:hover img { transform: scale(1.04); }
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(220, 38, 38, 0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  pointer-events: none;
}
.yt-facade:hover .yt-play-btn {
  background: #dc2626;
  transform: translate(-50%, -50%) scale(1.1);
}
.yt-play-btn svg { width: 26px; height: 26px; margin-left: 4px; }

/* Gradient background for locked course thumbnails */
.video-locked {
  background: linear-gradient(135deg, #13132e 0%, #1a1a3a 50%, #2d1b69 100%);
}

/* ==========================================
   COURSE RATINGS
   ========================================== */
.course-ratings {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.course-stars    { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.course-rating-num { font-size: 13px; font-weight: 700; color: var(--white); }
.course-students { font-size: 12px; color: var(--text-muted); }

/* ==========================================
   BILLING TOGGLE — MENSUAL / ANUAL
   ========================================== */
.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.billing-toggle {
  display: inline-flex;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.billing-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-btn.active {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(124,79,240,0.4);
}
.billing-btn:not(.active):hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.billing-save-tag {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(34,197,94,0.3);
}

/* ==========================================
   STICKY CTA BAR (below navbar)
   ========================================== */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, rgba(76,29,149,0.98) 0%, rgba(124,79,240,0.98) 50%, rgba(139,92,246,0.98) 100%);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  transform: translateY(-110%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(124,79,240,0.4);
}
/* Slides in just below the fixed navbar (~65px tall) */
.sticky-cta.visible { transform: translateY(65px); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.sticky-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.sticky-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.sticky-text {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-text strong { color: #fff; }
.sticky-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color 0.2s;
  line-height: 1;
}
.sticky-close:hover { color: #fff; }
@media (max-width: 480px) {
  .sticky-text { font-size: 12px; }
  .sticky-cta-inner { gap: 10px; }
}

/* ==========================================
   FOMO TOAST NOTIFICATIONS
   ========================================== */
.fomo-toast {
  position: fixed;
  bottom: 70px;
  left: 20px;
  background: rgba(17,17,37,0.97);
  border: 1px solid rgba(124,79,240,0.35);
  border-radius: 14px;
  padding: 12px 18px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  z-index: 9000;
  transform: translateX(calc(-100% - 28px));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 290px;
  pointer-events: none;
}
.fomo-toast.fomo-visible { transform: translateX(0); }


/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
/* wa-float desactivado — reemplazado por contact-float */
.wa-float { display: none; }

/* ===== BOTÓN FLOTANTE DE CONTACTO ===== */
.contact-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 8900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(124,79,240,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, max-width 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 56px;
}
.contact-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(124,79,240,0.6);
  max-width: 200px;
}
.contact-float svg { flex-shrink: 0; }
.contact-float-label { opacity: 0; transition: opacity 0.2s 0.1s ease; white-space: nowrap; }
.contact-float:hover .contact-float-label { opacity: 1; }

@media (max-width: 600px) {
  .contact-float { max-width: 52px; padding: 13px; }
  .contact-float:hover { max-width: 52px; }
  .contact-float-label { display: none; }
}

/* ==========================================
   TABLA COMPARATIVA — PRECIOS
   ========================================== */
.compare-section {
  padding: 60px 0 80px;
  background: var(--dark-2);
}
.compare-section .section-title { margin-bottom: 40px; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table thead th {
  padding: 18px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}
.compare-table thead th:first-child { text-align: left; color: var(--text-muted); }
.compare-table thead th.col-free    { color: var(--text); }
.compare-table thead th.col-premium {
  background: linear-gradient(135deg, rgba(124,79,240,0.25), rgba(249,115,22,0.15));
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--purple-light);
  border: 1px solid rgba(124,79,240,0.35);
  border-bottom: none;
  position: relative;
}
.compare-table thead th.col-premium::before {
  content: '⭐ Más popular';
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--purple), var(--orange));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.compare-table thead th.col-inst { color: var(--text-muted); }

.compare-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.compare-table tbody tr:hover { background: rgba(124,79,240,0.06); }

.compare-table tbody td {
  padding: 14px 20px;
  text-align: center;
  vertical-align: middle;
}
.compare-table tbody td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}
.compare-table tbody td.col-premium {
  background: rgba(124,79,240,0.08);
  border-left: 1px solid rgba(124,79,240,0.2);
  border-right: 1px solid rgba(124,79,240,0.2);
}
.compare-table tbody tr:last-child td.col-premium {
  border-bottom: 1px solid rgba(124,79,240,0.35);
  border-radius: 0 0 var(--radius) var(--radius);
}

.ct-check { color: #22c55e; font-size: 18px; }
.ct-cross  { color: var(--text-muted); font-size: 18px; opacity: 0.5; }
.ct-num    { color: var(--orange); font-weight: 700; }

.compare-cta {
  text-align: center;
  margin-top: 36px;
}
.compare-cta p { color: var(--text-muted); font-size: 14px; margin-top: 12px; }

@media (max-width: 640px) {
  .compare-table { font-size: 13px; }
  .compare-table thead th,
  .compare-table tbody td { padding: 12px 10px; }
  .compare-table tbody td:first-child { font-size: 12px; }
}
.fomo-icon { font-size: 18px; flex-shrink: 0; }

/* ===== SECCIÓN PRÓXIMAS CLASES ===== */
.events-section {
  padding: 100px 0 80px;
  position: relative;
}
.events-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(74,222,128,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid de cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* Card individual */
.event-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.event-card:hover {
  border-color: rgba(74,222,128,.35);
  transform: translateY(-4px);
}

.event-card-top {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-nivel {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 3px 8px;
  border-radius: 20px;
}
.event-free-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #4ade80;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.25);
  padding: 3px 8px;
  border-radius: 20px;
}
.event-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.event-date-icon { flex-shrink: 0; }
.event-duration {
  font-size: 12px;
  color: var(--text-muted);
}

.event-card-body {
  padding: 16px 20px;
  flex: 1;
}
.event-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}
.event-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.event-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.event-platform {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 4px;
  align-items: center;
}
.event-cupos { color: var(--orange); font-weight: 600; }
.event-cta { white-space: nowrap; }

/* Estado vacío (sin sesiones) */
.events-empty {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.events-empty-inner {
  text-align: center;
  max-width: 560px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
}
.events-empty-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: grayscale(.3);
}
.events-empty-inner h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.events-empty-inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.events-empty-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.eef-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
}
.eef-item span {
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
}

/* Nota al pie */
.events-footer-note {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.events-footer-note a {
  color: var(--purple-light);
  text-decoration: none;
}
.events-footer-note a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
  .events-empty-features { grid-template-columns: 1fr; }
  .events-empty-inner { padding: 40px 24px; }
}

/* ===== SECCIÓN CLASE EN VIVO ===== */
.live-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124,79,240,.04) 50%, transparent 100%);
  position: relative;
}
.live-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Info */
.live-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.live-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}
.live-dot-anim {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  display: inline-block;
  animation: live-pulse 2s ease-in-out infinite;
}
.live-free-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #4ade80;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.25);
  padding: 3px 9px;
  border-radius: 20px;
}
.live-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.live-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.live-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.live-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.lf-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.live-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.live-cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Card visual */
.live-card-wrap { position: relative; }
.live-card {
  background: var(--dark-2);
  border: 1px solid rgba(124,79,240,.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(124,79,240,.12);
}
.live-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,79,240,.06) 0%, transparent 60%);
  pointer-events: none;
}
.live-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lc-pulse {
  width: 10px;
  height: 10px;
  position: relative;
  flex-shrink: 0;
}
.lc-pulse span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f97316;
  animation: live-pulse 2s ease-in-out infinite;
}
.lc-pulse span::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(249,115,22,.4);
  animation: live-pulse 2s ease-in-out infinite .5s;
}
.lc-status {
  font-size: 12px;
  font-weight: 600;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.lc-course-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.lc-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
}
.lc-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.lc-instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.lc-instructor-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.lc-instructor-role {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.lc-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.lc-topic-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(124,79,240,.12);
  border: 1px solid rgba(124,79,240,.2);
  padding: 3px 10px;
  border-radius: 20px;
}
.lc-btn { font-size: 15px; }

/* ===== SECCIÓN CERTIFICADO ===== */
.cert-section {
  padding: 100px 0;
}
.cert-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Preview del certificado */
.cert-preview {
  position: relative;
  display: flex;
  justify-content: center;
}
.cert-card {
  background: linear-gradient(135deg, #1a1030 0%, #0f0a20 100%);
  border: 1px solid rgba(167,139,250,.3);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 340px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 80px rgba(124,79,240,.15);
}
.cert-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(124,79,240,.15) 0%, transparent 70%);
  z-index: 0;
}
.cert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(167,139,250,.15);
}
.cert-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(90deg, #4060e0 0%, #00d4c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cert-seal { font-size: 28px; }
.cert-card-body {
  text-align: center;
  padding: 16px 0;
}
.cert-card-label {
  font-size: 12px;
  color: rgba(167,139,250,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.cert-card-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  font-style: italic;
}
.cert-card-course {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.cert-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1.4;
}
.cert-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(167,139,250,.15);
  font-size: 11px;
  color: rgba(255,255,255,.4);
}
.cert-card-code {
  font-family: monospace;
  color: rgba(167,139,250,.6);
  font-size: 12px;
}

/* Texto */
.cert-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 12px 0 16px;
  letter-spacing: -1px;
}
.cert-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.cert-list li span {
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .live-inner  { grid-template-columns: 1fr; gap: 48px; }
  .live-card-wrap { display: none; }
  .cert-inner  { grid-template-columns: 1fr; gap: 48px; }
  .cert-preview { order: -1; }
}
@media (max-width: 640px) {
  .live-cta-row { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   Sección Certificados — Landing
══════════════════════════════════════ */
.cert-landing-section {
  padding: 100px 0;
  background: var(--darker, #080810);
}
.cert-landing-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.cert-landing-text {
  flex: 1;
  min-width: 260px;
}
.cert-landing-tag {
  display: inline-block;
  background: rgba(124,79,240,.15);
  border: 1px solid rgba(124,79,240,.3);
  color: #a78bfa;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.cert-landing-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 14px;
}
.cert-landing-text h2 span {
  background: linear-gradient(135deg, #7c4ff0, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cert-landing-text p {
  color: var(--text-muted, #9ca3af);
  font-size: .95rem;
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 480px;
}
.cert-landing-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,79,240,.1);
  border: 1px solid rgba(124,79,240,.22);
  color: #c4b5fd;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  transition: background .2s;
}
.cert-landing-chip:hover { background: rgba(124,79,240,.2); }

.cert-landing-widget { flex-shrink: 0; }

/* ── Mini tarjeta (compartida landing + dashboard) ── */
.cw-card {
  width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(124,79,240,.45);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.cw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(124,79,240,.55);
}
.cw-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  border: 1.5px solid rgba(124,79,240,.18);
  pointer-events: none;
}
.cw-card-orb { position: absolute; border-radius: 50%; filter: blur(35px); pointer-events: none; }
.cw-orb1 { width: 120px; height: 120px; background: rgba(124,79,240,.07); top: -35px; right: -35px; }
.cw-orb2 { width: 90px; height: 90px; background: rgba(168,85,247,.05); bottom: -25px; left: -25px; }
.cw-card-body { position: relative; z-index: 1; color: #1a1a2e; }
.cw-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; }
.cw-logo img { height: 36px; width: auto; }
.cw-logo-text { font-size: .95rem; font-weight: 800; letter-spacing: -.4px; line-height: 1; }
.cw-logo-text {
  background: linear-gradient(90deg, #4060e0 0%, #00d4c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cw-edu, .cw-n21, .cw-ai { color: inherit; }
.cw-logo-sub { font-size: .55rem; color: #9ca3af; letter-spacing: .4px; margin-top: 2px; }
.cw-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c4ff0, #a855f7);
  color: #fff;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin: 12px 0 14px;
}
.cw-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #7c4ff0, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cw-course {
  font-family: 'Playfair Display', serif;
  font-size: .78rem;
  font-style: italic;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 12px;
}
.cw-divider { width: 40px; height: 2px; background: linear-gradient(90deg, #7c4ff0, #a855f7); border-radius: 2px; margin: 0 auto 12px; }
.cw-footer { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cw-seal { height: 24px; width: auto; }
.cw-seal-name { font-weight: 700; font-size: .68rem; color: #374151; text-align: left; }
.cw-seal-title { font-size: .58rem; color: #9ca3af; text-align: left; }

@media (max-width: 760px) {
  .cert-landing-inner { flex-direction: column; gap: 40px; }
  .cw-card { width: 100%; max-width: 300px; margin: 0 auto; }
}

/* === MOBILE OVERFLOW FIX === */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .hero-orb, .hero-orb-1, .hero-orb-2, .final-cta-orb { display: none; }
  .hero-book-banner { width: 100%; max-width: 100%; box-sizing: border-box; }
  .hbb-title { font-size: 0.85rem; white-space: normal; word-break: break-word; }
  .instructor-photo { max-height: 300px; width: auto; max-width: 100%; margin: 0 auto; aspect-ratio: unset; }
  select { max-width: 100%; box-sizing: border-box; }
  #demo-nivel { width: 100% !important; }
  div:has(#demo-tema) { grid-template-columns: 1fr !important; }
}

/* === NAVBAR + TICKER FIX mobile === */
@media (max-width: 768px) {
  html { overflow-x: hidden !important; }
  body { overflow-x: hidden !important; max-width: 100vw !important; }
  .nav-links { display: none !important; }
  .nav-links.mobile-open { display: flex !important; }
  .ticker-wrap { overflow: hidden !important; max-width: 100vw !important; }
}

/* === TICKER + NAVBAR FIX (v39) === */
.ticker-wrap {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001 !important;
}
.navbar {
  top: 41px !important;
}
.hero {
  padding-top: 170px !important;
}

/* === GLOBAL OVERFLOW FIX (v40) === */
html, body {
  overflow-x: hidden;
}
.nav-links {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-inner {
  flex-wrap: nowrap;
}

/* === QA FIX v41 — orbs decorativos + wa-label === */
.cw-card-orb, .cw-orb1, .cw-orb2 { overflow: hidden; max-width: 100%; }
.hero-orb-1 { overflow: hidden; }
.wa-label { max-width: calc(100vw - 80px); overflow: hidden; }

/* === QA FIX v42 — orbes decorativos desktop === */
.hero-orb-1, .hero-orb-2 {
  right: -100px;
  overflow: hidden;
  max-width: calc(100vw - 50px);
}
.cw-card-orb {
  right: -20px;
  overflow: hidden;
}
