/* =====================================================================
   APRENDE.EDU.PE — Premium Design System
   Senior Frontend Engineer · Apple-level craftsmanship
   ===================================================================== */

/* ── Minimal Utilities (sin Tailwind CDN) ──────────────────────────── */
/* Icon sizing — coincide con clases w-X / h-X del HTML */
[class~="w-3.5"] { width: 0.875rem; }
[class~="h-3.5"] { height: 0.875rem; }
[class~="w-4"]   { width: 1rem; }
[class~="h-4"]   { height: 1rem; }
[class~="w-5"]   { width: 1.25rem; }
[class~="h-5"]   { height: 1.25rem; }
/* Text colors */
.text-white    { color: #FFFFFF !important; }
.text-electric { color: var(--c-electric) !important; }
.text-indigo   { color: var(--c-indigo) !important; }
/* Layout helpers */
.inline-block  { display: inline-block; }
.mr-1          { margin-right: 0.25rem; }

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-white:        #FFFFFF;
  --c-gray:         #F5F5F7;
  --c-gray-200:     #E8E8ED;
  --c-gray-400:     #AEAEB2;
  --c-gray-600:     #6E6E73;
  --c-graphite:     #1D1D1F;
  --c-electric:     #0071E3;
  --c-electric-40:  rgba(0, 113, 227, 0.4);
  --c-electric-10:  rgba(0, 113, 227, 0.1);
  --c-indigo:       #5E5CE6;
  --c-indigo-10:    rgba(94, 92, 230, 0.1);
  --c-cyan:         #64D2FF;

  /* Typography */
  --font:           'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing (8px system) */
  --sp-1: 0.5rem;   /* 8px  */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-6: 3rem;     /* 48px */
  --sp-8: 4rem;     /* 64px */
  --sp-10: 5rem;    /* 80px */
  --sp-12: 6rem;    /* 96px */

  /* Radius */
  --r-sm:  0.5rem;  /* 8px  */
  --r-md:  0.75rem; /* 12px */
  --r-lg:  1rem;    /* 16px */
  --r-xl:  1.5rem;  /* 24px */
  --r-2xl: 2rem;    /* 32px */
  --r-3xl: 2.5rem;  /* 40px */

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-xl:   0 40px 80px rgba(0,0,0,0.12), 0 16px 40px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(0,113,227,0.25);

  /* Transitions */
  --t-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   0.4s  cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.5s  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Glassmorphism */
  --glass-bg:     rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-blur:   saturate(180%) blur(20px);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--c-graphite);
  background: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Typography ────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--c-electric) 0%, var(--c-indigo) 50%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cursor Glow ───────────────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* ── NAVBAR ────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--t-base);
  padding: 0 var(--sp-4);
}

#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-graphite);
}

.logo-accent {
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0 auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-gray-600);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--c-graphite);
  background: rgba(0,0,0,0.04);
}

/* Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.nav-link-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-gray-600);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-md);
  transition: color var(--t-fast);
}

.nav-link-ghost:hover { color: var(--c-graphite); }

/* Glass CTA button */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-electric) 0%, var(--c-indigo) 100%);
  border-radius: 980px;
  transition: all var(--t-base);
  box-shadow: 0 2px 8px rgba(0,113,227,0.35);
  white-space: nowrap;
}

.btn-glass:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,113,227,0.45);
}

.btn-icon { font-size: 0.9rem; line-height: 1; }

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-graphite);
  border-radius: 2px;
  transition: all var(--t-base);
}

.mobile-menu {
  display: none;
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav-link, .mobile-cta {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-graphite);
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}

.mobile-nav-link:hover { background: rgba(0,0,0,0.04); }

.mobile-cta {
  margin-top: var(--sp-1);
  text-align: center;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  color: white;
  font-weight: 600;
}

/* ── HERO ──────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(68px + var(--sp-10)) var(--sp-4) var(--sp-12);
  overflow: hidden;
}

/* Hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,113,227,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,113,227,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(94,92,230,0.18) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,113,227,0.15) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation-delay: -3s;
}

.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(100,210,255,0.12) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero container */
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

/* Hero left */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(0,113,227,0.08);
  border: 1px solid rgba(0,113,227,0.15);
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-electric);
  width: fit-content;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-electric);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Hero H1 */
.hero-h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--c-graphite);
}

/* Hero sub */
.hero-sub {
  font-size: 1.125rem;
  color: var(--c-gray-600);
  line-height: 1.7;
  max-width: 520px;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-electric) 0%, var(--c-indigo) 100%);
  border-radius: 980px;
  transition: all var(--t-spring);
  box-shadow: 0 4px 16px rgba(0,113,227,0.4), 0 1px 3px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,113,227,0.5), 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary:active { transform: translateY(0); }

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-graphite);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-gray-200);
  border-radius: 980px;
  transition: all var(--t-spring);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.08);
}

/* Trust */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  margin-right: -10px;
  box-shadow: var(--shadow-xs);
}

.trust-text { padding-left: 18px; }

.trust-stars {
  font-size: 0.875rem;
  color: #F59E0B;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.trust-text span {
  font-size: 0.8125rem;
  color: var(--c-gray-600);
}

.trust-text strong { color: var(--c-graphite); }

/* ── HERO RIGHT: Dashboard Mockup ──────────────────────────────────── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* Main dashboard card */
.dashboard-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-3xl);
  padding: var(--sp-3);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform var(--t-slow);
}

.dashboard-card:hover {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

/* Dash header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-gray-200);
}

.dash-header-left { display: flex; align-items: center; gap: 0.625rem; }

.dash-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; color: white;
}

.dash-title { font-size: 0.875rem; font-weight: 600; color: var(--c-graphite); }
.dash-sub   { font-size: 0.6875rem; color: var(--c-gray-600); }

.dash-header-right { display: flex; align-items: center; gap: 0.625rem; }

.dash-notif {
  position: relative;
  width: 32px; height: 32px;
  background: var(--c-gray);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-graphite);
}

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: var(--c-electric);
  color: white;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid white;
}

.dash-streak {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(247,151,30,0.1), rgba(255,210,0,0.08));
  border: 1px solid rgba(247,151,30,0.2);
  border-radius: 980px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #B45309;
}

/* Stats row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.75rem;
  margin-bottom: var(--sp-3);
}

.dash-stat-card {
  background: var(--c-gray);
  border-radius: var(--r-lg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-lbl {
  font-size: 0.625rem;
  color: var(--c-gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Courses */
.dash-courses { margin-bottom: var(--sp-3); }

.dash-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--c-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.course-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.course-info { flex: 1; min-width: 0; }
.course-name { font-size: 0.75rem; font-weight: 600; color: var(--c-graphite); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress-bar {
  width: 100%; height: 4px;
  background: var(--c-gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

.course-pct {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--c-gray-600);
  flex-shrink: 0;
}

/* Mini chart */
.dash-chart {}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.chart-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: height 1s ease;
}

.chart-lbl {
  font-size: 0.5625rem;
  color: var(--c-gray-600);
  font-weight: 500;
}

/* ── Floating Cards ─────────────────────────────────────────────────── */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: floatCards 6s ease-in-out infinite;
}

.float-card--learners { top: -28px; right: -32px; animation-delay: 0s; }
.float-card--ai       { bottom: 100px; right: -40px; animation-delay: -2s; }
.float-card--cert     { top: 50%; left: -48px; transform: translateY(-50%); animation-delay: -4s; }
.float-card--time     { bottom: -20px; left: 32px; animation-delay: -1s; }

@keyframes floatCards {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-card--cert { animation-name: floatCardsCenter; }

@keyframes floatCardsCenter {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 8px)); }
}

.float-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.float-val {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-graphite);
  line-height: 1.2;
}

.float-lbl {
  font-size: 0.625rem;
  color: var(--c-gray-600);
  font-weight: 500;
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--c-gray-600);
  font-weight: 500;
}

.scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--c-gray-400), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { width: 40px; opacity: 1; }
  50%       { width: 60px; opacity: 0.5; }
}

/* ── BRANDS ────────────────────────────────────────────────────────── */
#brands {
  padding: var(--sp-8) 0 var(--sp-10);
  overflow: hidden;
  position: relative;
}

.brands-header {
  text-align: center;
  margin-bottom: var(--sp-4);
}

.brands-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Marquee */
.marquee-container {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-items {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  opacity: 0.35;
  transition: opacity var(--t-base);
  cursor: default;
}

.brand-logo:hover { opacity: 0.7; }

.brand-svg {
  height: 24px;
  width: auto;
  color: var(--c-graphite);
}

/* ── SECTION COMMONS ───────────────────────────────────────────────── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-4);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-8);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.875rem;
  background: rgba(0,113,227,0.07);
  border: 1px solid rgba(0,113,227,0.12);
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-electric);
  margin-bottom: var(--sp-2);
}

.section-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--c-graphite);
  margin-bottom: var(--sp-2);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--c-gray-600);
  line-height: 1.7;
  text-align: center;
}

/* ── FEATURES ──────────────────────────────────────────────────────── */
#features { background: var(--c-gray); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Feature card */
.feature-card {
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--r-2xl);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: all var(--t-spring);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,113,227,0.03), rgba(94,92,230,0.03));
  opacity: 0;
  transition: opacity var(--t-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,113,227,0.06);
  border-color: rgba(0,113,227,0.08);
}

.feature-card:hover::before { opacity: 1; }

.feature-card--large {
  grid-column: span 1;
  background: linear-gradient(135deg, #FAFAFE, #F0F4FF);
}

.feature-card--accent {
  background: linear-gradient(135deg, var(--c-electric) 0%, var(--c-indigo) 100%);
  border-color: transparent;
}

/* Textos blancos en tarjeta accent — no depende de Tailwind */
.feature-card--accent .feature-title { color: #FFFFFF; }
.feature-card--accent .feature-desc  { color: rgba(255, 255, 255, 0.72); }

.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
}

.feature-icon { font-size: 22px; line-height: 1; }

.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-graphite);
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--c-gray-600);
  line-height: 1.6;
  flex: 1;
}

.feature-tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  background: rgba(0,0,0,0.05);
  border-radius: 980px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--c-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

/* ── PRODUCT SHOWCASE ──────────────────────────────────────────────── */
#showcase {
  background: var(--c-white);
}

/* Tabs */
.showcase-tabs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  background: var(--c-gray);
  border-radius: var(--r-xl);
  padding: 0.375rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-gray-600);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--c-graphite); }

.tab-btn.active {
  background: var(--c-white);
  color: var(--c-graphite);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Tab panels */
.showcase-content { position: relative; }

.tab-panel {
  display: none;
  animation: tabFadeIn 0.35s ease;
}

.tab-panel.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Showcase split layout */
.showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.showcase-text { display: flex; flex-direction: column; gap: var(--sp-3); }

.showcase-h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-graphite);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.showcase-p {
  font-size: 1rem;
  color: var(--c-gray-600);
  line-height: 1.7;
}

.showcase-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.showcase-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--c-graphite);
  font-weight: 500;
}

/* Showcase screen */
.showcase-visual {}

.showcase-screen {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.screen-top-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--c-gray);
  border-bottom: 1px solid var(--c-gray-200);
}

.screen-dots { display: flex; gap: 6px; }
.screen-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.screen-dots span:nth-child(1) { background: #FF5F57; }
.screen-dots span:nth-child(2) { background: #FFBD2E; }
.screen-dots span:nth-child(3) { background: #28CA41; }

.screen-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-gray-600);
  background: var(--c-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-gray-200);
}

/* LMS dashboard screen */
.screen-body {
  display: flex;
  min-height: 280px;
}

.screen-sidebar {
  width: 120px;
  background: var(--c-gray);
  border-right: 1px solid var(--c-gray-200);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--c-gray-600);
  border-radius: var(--r-sm);
  cursor: default;
  transition: all var(--t-fast);
}

.sidebar-item.active {
  background: var(--c-white);
  color: var(--c-electric);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.screen-main {
  flex: 1;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.screen-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}

.screen-kpi {
  background: var(--c-gray);
  border-radius: var(--r-md);
  padding: 0.625rem;
  display: flex; flex-direction: column; gap: 2px;
}

.kpi-n {
  font-size: 1rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-l {
  font-size: 0.5625rem; color: var(--c-gray-600);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}

/* Screen chart */
.screen-chart-placeholder {
  flex: 1;
  background: var(--c-gray);
  border-radius: var(--r-md);
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.screen-chart-bars div {
  flex: 1;
  background: linear-gradient(180deg, var(--c-electric), var(--c-indigo));
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  min-height: 8px;
}

.chart-label {
  font-size: 0.625rem;
  color: var(--c-gray-600);
  font-weight: 500;
}

/* Analytics tab */
.analytics-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.analytics-card {
  background: var(--c-gray);
  border-radius: var(--r-md);
  padding: 0.75rem;
}

.analytics-label {
  font-size: 0.5625rem; color: var(--c-gray-600);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.analytics-value {
  font-size: 1.375rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 2px;
}

.analytics-trend {
  font-size: 0.5625rem; color: var(--c-gray-600); font-weight: 500;
}

.analytics-heatmap { padding: 0 0.875rem; }

.heatmap-label {
  font-size: 0.5625rem; color: var(--c-gray-600); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}

.heatmap-grid {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px;
}

.hm-cell {
  aspect-ratio: 1;
  background: rgba(0,113,227, var(--o, 0.1));
  border-radius: 2px;
}

/* AI Chat UI */
.ai-chat-ui {
  display: flex; flex-direction: column;
  min-height: 280px;
}

.ai-chat-header {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--c-gray-200);
  background: var(--c-gray);
}

.ai-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  display: flex; align-items: center; justify-content: center;
}

.ai-name { font-size: 0.875rem; font-weight: 600; color: var(--c-graphite); }
.ai-status { font-size: 0.6875rem; color: var(--c-electric); font-weight: 500; }

.ai-messages {
  flex: 1; padding: 0.875rem; display: flex; flex-direction: column; gap: 0.625rem;
}

.ai-msg {
  max-width: 85%; font-size: 0.75rem; line-height: 1.5; padding: 0.625rem 0.875rem;
  border-radius: var(--r-xl);
}

.ai-msg--bot {
  background: var(--c-gray);
  color: var(--c-graphite);
  border-radius: 4px var(--r-xl) var(--r-xl) var(--r-xl);
  align-self: flex-start;
}

.ai-msg--user {
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  color: white;
  border-radius: var(--r-xl) 4px var(--r-xl) var(--r-xl);
  align-self: flex-end;
}

.ai-highlight {
  color: var(--c-electric);
  font-weight: 600;
  cursor: pointer;
}

.ai-input-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--c-gray);
  border-top: 1px solid var(--c-gray-200);
  font-size: 0.75rem; color: var(--c-gray-600);
}

.ai-input-bar button {
  margin-left: auto;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Certificate preview */
.cert-preview {
  min-height: 280px; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.cert-card-mock {
  flex: 1; padding: 1rem;
  background: linear-gradient(135deg, #FAFAFE, #F0F4FF);
  border: 1px solid rgba(0,113,227,0.15);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
}

.cert-logo {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.625rem; font-weight: 700;
  color: var(--c-electric); text-transform: uppercase; letter-spacing: 0.08em;
}

.cert-logo-mark {
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  border-radius: 4px;
}

.cert-certifica { font-size: 0.5625rem; color: var(--c-gray-600); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.cert-name { font-size: 1rem; font-weight: 800; color: var(--c-graphite); letter-spacing: -0.02em; }
.cert-course { font-size: 0.6875rem; font-weight: 600; color: var(--c-electric); }

.cert-meta {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 0.5625rem; color: var(--c-gray-600);
}

.cert-qr { }
.qr-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; width: 32px; height: 32px;
}
.qr-grid div { background: rgba(0,0,0,0.06); border-radius: 1px; }

.cert-stats { display: flex; gap: 1rem; }
.cert-stat { text-align: center; }
.cs-n { display: block; font-size: 1.125rem; font-weight: 800; color: var(--c-electric); }
.cs-l { font-size: 0.625rem; color: var(--c-gray-600); font-weight: 500; }

/* ── WHY US ────────────────────────────────────────────────────────── */
#why {
  background: var(--c-white);
  position: relative;
  overflow: hidden;
}

#why::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(94,92,230,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: flex-start;
}

.why-left { display: flex; flex-direction: column; gap: var(--sp-4); }

.why-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
}

.why-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--sp-3);
  background: var(--c-gray);
  border-radius: var(--r-2xl);
}

.why-stat-n {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-stat-u {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-stat-l {
  font-size: 0.8125rem;
  color: var(--c-gray-600);
  font-weight: 500;
  line-height: 1.4;
}

/* Why features list */
.why-right {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding-top: var(--sp-4);
}

.why-feature {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  padding: var(--sp-3);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-2xl);
  transition: all var(--t-spring);
  background: var(--c-white);
}

.why-feature:hover {
  border-color: rgba(0,113,227,0.15);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.why-feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
}

.why-feature-title {
  font-size: 1rem; font-weight: 700; color: var(--c-graphite); margin-bottom: 4px;
}

.why-feature-desc {
  font-size: 0.875rem; color: var(--c-gray-600); line-height: 1.5;
}

/* ── TESTIMONIALS ──────────────────────────────────────────────────── */
#testimonials {
  background: var(--c-gray);
  overflow: hidden;
}

.testimonials-wrapper { position: relative; }

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile: show as slider */
.testimonial-card {
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--r-2xl);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-spring);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testi-stars { font-size: 0.875rem; color: #F59E0B; letter-spacing: 2px; }

.testi-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-graphite);
  flex: 1;
  font-style: italic;
}

.testi-author { display: flex; align-items: center; gap: 0.75rem; }

.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white; flex-shrink: 0;
}

.testi-name { font-size: 0.875rem; font-weight: 700; color: var(--c-graphite); }
.testi-role { font-size: 0.75rem; color: var(--c-gray-600); }

/* Controls */
.testimonials-controls {
  display: none; /* Hidden on desktop; show on mobile */
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.testi-btn {
  width: 44px; height: 44px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-graphite);
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}

.testi-btn:hover {
  background: var(--c-graphite);
  color: white; border-color: transparent;
  box-shadow: var(--shadow-md);
}

.testi-dots { display: flex; gap: 6px; }

.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-gray-400);
  transition: all var(--t-base);
}

.testi-dot.active {
  background: var(--c-electric);
  width: 24px; border-radius: 4px;
}

/* ── FINAL CTA ─────────────────────────────────────────────────────── */
#cta {
  position: relative;
  overflow: hidden;
  background: var(--c-graphite);
  padding: var(--sp-12) var(--sp-4);
}

.cta-container {
  max-width: 800px; margin: 0 auto;
  position: relative; z-index: 1;
}

.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
}

.cta-blob {
  position: absolute; border-radius: 50%; filter: blur(100px);
}

.cta-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,113,227,0.4) 0%, transparent 70%);
  top: -200px; left: -100px;
}

.cta-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(94,92,230,0.35) 0%, transparent 70%);
  bottom: -150px; right: -50px;
}

.cta-content { text-align: center; }

.cta-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 980px;
  font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-3);
}

.cta-h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.04em; color: white;
  margin-bottom: var(--sp-2);
}

.cta-sub {
  font-size: 1.0625rem; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: var(--sp-5); max-width: 560px; margin-left: auto; margin-right: auto;
}

/* CTA form */
.cta-form {
  display: flex; gap: 0.5rem;
  max-width: 520px; margin: 0 auto var(--sp-3);
}

.cta-input {
  flex: 1; padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 980px;
  font-size: 0.9375rem; color: white; font-family: var(--font);
  outline: none; transition: all var(--t-base);
}

.cta-input::placeholder { color: rgba(255,255,255,0.45); }

.cta-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.cta-submit {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--c-electric), var(--c-indigo));
  color: white; font-size: 0.9375rem; font-weight: 700;
  border-radius: 980px; white-space: nowrap;
  transition: all var(--t-spring);
  box-shadow: 0 4px 16px rgba(0,113,227,0.4);
}

.cta-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,113,227,0.6);
}

.cta-note {
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  margin-bottom: var(--sp-5);
}

.cta-trust { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

.cta-trust-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

.cta-certs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.cta-cert-badge {
  padding: 0.3125rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 980px;
  font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6);
}

/* ── FOOTER ────────────────────────────────────────────────────────── */
#footer {
  background: var(--c-graphite);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
  max-width: 1280px; margin: 0 auto;
  padding: var(--sp-10) var(--sp-4) var(--sp-4);
}

.footer-top {
  display: grid; grid-template-columns: 280px 1fr;
  gap: var(--sp-8); margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-2); }

.footer-logo {
  display: flex; align-items: center; gap: 0.625rem;
}

.footer-logo .logo-text { color: white; }
.footer-logo .logo-accent { }

.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 240px; }

.footer-social { display: flex; gap: 0.5rem; }

.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--t-base);
}

.social-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.footer-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
}

.footer-col-title {
  font-size: 0.8125rem; font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  font-size: 0.875rem; color: rgba(255,255,255,0.45);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.8125rem; color: rgba(255,255,255,0.3);
  transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ── REVEAL ANIMATIONS ─────────────────────────────────────────────── */
/*
  Estrategia a prueba de fallos:
  - [data-reveal]            → VISIBLE por defecto (sin opacity:0)
  - [data-reveal].anim-ready → JS lo oculta SOLO si está bajo el fold
  - [data-reveal].revealed   → animado a visible con transición suave
  Si JS falla → todo sigue visible. Cero riesgo de secciones en blanco.
*/

/* Estado de preparación — JS añade esta clase solo a elementos OFF-SCREEN */
[data-reveal].anim-ready {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

/* Estado visible con transición.
   !important necesario para anular cualquier inline style que GSAP
   pudiera haber dejado en versiones anteriores del código. */
[data-reveal].revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: auto;
}

/* Split text lines */
.split-line {
  overflow: hidden;
  display: block;
}

/* ── MAGNETIC BUTTON EFFECT ────────────────────────────────────────── */
.magnetic { position: relative; transition: transform var(--t-spring); }

/* ── CARD TILT ─────────────────────────────────────────────────────── */
[data-card-tilt] { transform-style: preserve-3d; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-right { justify-content: center; }
  .dashboard-card { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
  .float-card--cert { left: -16px; }
  .float-card--ai { right: -16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-layout { grid-template-columns: 1fr; }
  .why-left .section-sub { text-align: left; }
  .testimonials-track { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-links, .navbar-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: block; }

  #hero { padding: calc(68px + var(--sp-8)) var(--sp-3) var(--sp-10); }
  .hero-h1 { font-size: 2.5rem; }
  .hero-sub { font-size: 1rem; }

  .float-card--learners { top: -20px; right: -8px; }
  .float-card--ai { display: none; }
  .float-card--time { bottom: -12px; left: 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .showcase-split { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .testimonials-track { grid-template-columns: 1fr; overflow: hidden; }
  .testimonials-controls { display: flex; }
  .cta-form { flex-direction: column; }
  .cta-input, .cta-submit { width: 100%; justify-content: center; }
  .section-h2 { font-size: 1.75rem; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  :root { --sp-12: 4rem; }
  .hero-h1 { font-size: 2rem; }
  .section-h2 { font-size: 1.625rem; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .why-stat-n { font-size: 2rem; }
  .testimonials-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
  .testimonial-card { min-width: 100%; }
}

/* ── Counter (JS-driven) ───────────────────────────────────────────── */
.counter { display: inline; }

/* ── Split-text ────────────────────────────────────────────────────── */
.split-text { overflow: visible; }

/* ── Keyboard navigation — visible focus ring ─────────────────────── */
.keyboard-nav *:focus {
  outline: 2px solid var(--c-electric);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Safety net ya no necesario — elementos visibles por defecto ────── */

/* ── Print ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Tabler Icons — iconografía premium ──────────────────────────── */
/* Webfont: tamaño via font-size, color via color, no stroke-width   */
.ti {
  line-height: 1;
  vertical-align: -0.125em; /* alineación óptica con texto */
  display: inline-block;
  font-size: 1em;            /* hereda por defecto */
}

/* Mapeo de clases de tamaño existentes → font-size */
.ti.w-3   { font-size: 12px; }
.ti.w-3\.5 { font-size: 14px; }
.ti.w-4   { font-size: 16px; }
.ti.w-5   { font-size: 20px; }
