/* ═══════════════════════════════════════════════════════
   FAROMETRICA — Landing Page
   Inspired by freebuff.com clean aesthetic
   Brand: #2563EB (blue)
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --spotlight-opacity: 0;
  --spotlight-color-1: rgba(255, 255, 255, 0);
  --spotlight-color-2: rgba(255, 255, 255, 0);
  --spotlight-color-3: transparent;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-dark: #1E40AF;
  --accent-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --accent-glow: rgba(37, 99, 235, 0.25);

  --bg-base: #FAFBFC;
  --bg-card: #FFFFFF;
  --bg-elevated: #F8FAFC;
  --bg-nav: rgba(255, 255, 255, 0.88);

  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 20px rgba(37,99,235,0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.5); }

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ══════════════════════════════════════════════════════════
   CURSOR SPOTLIGHT (global — se adapta al fondo)
   ══════════════════════════════════════════════════════════ */

.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1001;
  background: radial-gradient(
    350px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color-1) 0%,
    var(--spotlight-color-2) 25%,
    var(--spotlight-color-3) 55%
  );
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.45s ease;
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .cursor-spotlight {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(28px) saturate(250%);
  -webkit-backdrop-filter: blur(28px) saturate(250%);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 0.8; }

.nav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(37,99,235,0.35);
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #2563EB;
  padding: 6rem 1.5rem 3rem;
  color: white;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Grid pattern overlay — más visible */
.hero-bg-shapes::after {
  content: '';
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.hero-shape.shape-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(147,197,253,0.5) 0%, transparent 65%);
  top: -250px;
  right: -120px;
  animation: float-slow 20s ease-in-out infinite;
}

.hero-shape.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(191,219,254,0.4) 0%, transparent 65%);
  bottom: -120px;
  left: -100px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.hero-shape.shape-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 65%);
  top: 35%;
  right: 15%;
  animation: float-slow 15s ease-in-out infinite 2s;
}

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

/* ── Farol (Beacon Glow) ────────────────────────── */
.hero-farol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.12) 0%,
    rgba(147,197,253,0.08) 20%,
    rgba(37,99,235,0.04) 40%,
    transparent 65%
  );
  animation: farol-pulse 6s ease-in-out infinite;
  border-radius: 50%;
  mix-blend-mode: screen;
}

@keyframes farol-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* ── Radar Container ── */
.hero-radar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

/* ── Radar Dots ── */
.hero-radar-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 6px rgba(147, 197, 253, 0.15);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ── Movimiento de dots por la malla (solo horizontal o vertical) ── */
.dot-move-a { animation: dot-move-a 12s ease-in-out infinite; }
.dot-move-b { animation: dot-move-b 14s ease-in-out infinite; }
.dot-move-c { animation: dot-move-c 10s ease-in-out infinite; }
.dot-move-d { animation: dot-move-d 16s ease-in-out infinite; }
.dot-move-e { animation: dot-move-e 18s ease-in-out infinite; }
.dot-move-f { animation: dot-move-f 13s ease-in-out infinite; }

/* Horizontal: oscila derecha (solo X) */
@keyframes dot-move-a {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(45px, 0); }
  50% { transform: translate(90px, 0); }
  75% { transform: translate(45px, 0); }
}

/* Horizontal: oscila izquierda (solo X) */
@keyframes dot-move-b {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-45px, 0); }
  50% { transform: translate(-90px, 0); }
  75% { transform: translate(-45px, 0); }
}

/* Vertical: oscila abajo (solo Y) */
@keyframes dot-move-c {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(0, 45px); }
  50% { transform: translate(0, 90px); }
  75% { transform: translate(0, 45px); }
}

/* Vertical: oscila arriba (solo Y) */
@keyframes dot-move-d {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(0, -45px); }
  50% { transform: translate(0, -90px); }
  75% { transform: translate(0, -45px); }
}

/* L shape: derecha → abajo → izquierda → arriba (recorre líneas) */
@keyframes dot-move-e {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(45px, 0); }    /* → derecha */
  40% { transform: translate(45px, 45px); } /* ↓ abajo */
  60% { transform: translate(0, 45px); }    /* ← izquierda */
  80% { transform: translate(0, 0); }       /* ↑ arriba */
}

/* L shape: izquierda → abajo → derecha → arriba (recorre líneas) */
@keyframes dot-move-f {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-45px, 0); }   /* ← izquierda */
  40% { transform: translate(-45px, 45px); } /* ↓ abajo */
  60% { transform: translate(0, 45px); }     /* → derecha */
  80% { transform: translate(0, 0); }        /* ↑ arriba */
}

/* Anillo expansivo (se activa con ::after en detected) */
.radar-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: none;
}

/* Estado DETECTADO: el haz pasó sobre este punto */
.radar-dot.detected {
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 12px rgba(147, 197, 253, 0.8),
    0 0 30px rgba(147, 197, 253, 0.4);
  animation: dot-flash 0.3s ease-out;
}

.radar-dot.detected::after {
  border-color: rgba(147, 197, 253, 0.5);
  animation: dot-ring 1.8s ease-out forwards;
}

@keyframes dot-flash {
  0% {
    background: rgba(255, 255, 255, 1);
    box-shadow:
      0 0 20px rgba(147, 197, 253, 1),
      0 0 50px rgba(147, 197, 253, 0.6);
  }
  100% {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 0 12px rgba(147, 197, 253, 0.8),
      0 0 30px rgba(147, 197, 253, 0.4);
  }
}

@keyframes dot-ring {
  0% {
    transform: scale(1);
    opacity: 1;
    border-width: 2px;
  }
  60% {
    opacity: 0.6;
  }
  100% {
    transform: scale(6);
    opacity: 0;
    border-width: 1px;
  }
}

/* ── Section Farol (reusable glow for dark sections) ── */
.section-farol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.12) 0%,
    rgba(147,197,253,0.08) 20%,
    rgba(37,99,235,0.04) 40%,
    transparent 65%
  );
  animation: farol-pulse 6s ease-in-out infinite;
  border-radius: 50%;
  mix-blend-mode: screen;
}

/* ── Section Sonar (reusable pulse rings for dark sections) ── */
.section-sonar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 197, 253, 0.35);
  animation: sonar-ping 5.2s cubic-bezier(0.25, 0, 0.15, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

/* ── Stats Radar Dots ── */
.stats-radar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.stats-radar-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── CTA Radar Dots ── */
.cta-radar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.cta-radar-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Section Grid (full-width, reusable for white/light sections) ── */
.section-grid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.section-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.055) 1px, transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
}

.section-grid-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Light dots for white backgrounds ── */
.radar-dot-light {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.06);
}

.radar-dot-light.detected {
  background: rgba(37, 99, 235, 0.9);
  box-shadow:
    0 0 12px rgba(37, 99, 235, 0.4),
    0 0 30px rgba(37, 99, 235, 0.2);
}

.radar-dot-light.detected::after {
  border-color: rgba(37, 99, 235, 0.35);
}

/* ── Section Gray (alternada, fondo gris #F1F5F9) ── */
.section-dark {
  background: #F1F5F9;
}

/* ── Sonar Pings (ondas expansivas desde el centro) ── */
.hero-sonar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 197, 253, 0.35);
  animation: sonar-ping 5.2s cubic-bezier(0.25, 0, 0.15, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes sonar-ping {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  30% {
    transform: scale(25);
    opacity: 0.2;
  }
  60% {
    transform: scale(70);
    opacity: 0.05;
  }
  100% {
    transform: scale(120);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(135deg, #93C5FD 0%, #BFDBFE 40%, #E0F2FE 70%, #93C5FD 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(147,197,253,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(147,197,253,0.3);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-top: 0.25rem;
  display: block;
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

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

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.35s ease;
  text-decoration: none;
  border: none;
  filter: saturate(0.45) brightness(0.75);
}

.btn:hover {
  filter: saturate(1) brightness(1);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: white;
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.25), 0 0 30px rgba(37,99,235,0.12);
}
.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255,255,255,0.08);
}

.btn-cta {
  background: white;
  color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(37,99,235,0.3), 0 0 35px rgba(37,99,235,0.15);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  border: 1px solid rgba(37,99,235,0.1);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   CARD BORDER ANIMATION (dot circulando por el perímetro)
   ══════════════════════════════════════════════════════════ */

/* ── Base compartida (todos los cards azules) ── */
.feature-card::after,
.modulo-card::after,
.step::after,
.testimonio-card::after,
.faq-item::after {
  --card-border-base: rgba(37, 99, 235, 0.06);
  --card-border-dot: rgba(37, 99, 235, 0.45);
  --card-border-trail: rgba(37, 99, 235, 0.08);

  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    var(--card-border-base) 0deg,
    var(--card-border-dot) 1.5deg 4deg,
    var(--card-border-trail) 5deg 12deg,
    var(--card-border-base) 13deg 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* ── Velocidad y dirección ÚNICA por cada card individual ── */

/* Features — 6 cards en grid de 3 */
.features-grid .feature-card:nth-child(1)::after { animation: spin-rapido-cw 2.5s linear infinite; animation-delay: 0s; }
.features-grid .feature-card:nth-child(2)::after { animation: spin-medio-ccw 4s linear infinite; animation-delay: -0.6s; }
.features-grid .feature-card:nth-child(3)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1.2s; }
.features-grid .feature-card:nth-child(4)::after { animation: spin-normal-cw 3.5s linear infinite; animation-delay: -0.3s; }
.features-grid .feature-card:nth-child(5)::after { animation: spin-medio-ccw 4s linear infinite; animation-delay: -1.8s; }
.features-grid .feature-card:nth-child(6)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -0.9s; }

/* Módulos — ~14+ cards en grid de 4, patrón cíclico */
.modulos-grid .modulo-card:nth-child(1)::after  { animation: spin-normal-cw 3.5s linear infinite; animation-delay: 0s; }
.modulos-grid .modulo-card:nth-child(2)::after  { animation: spin-rapido-ccw 3s linear infinite; animation-delay: -0.5s; }
.modulos-grid .modulo-card:nth-child(3)::after  { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1s; }
.modulos-grid .modulo-card:nth-child(4)::after  { animation: spin-medio-ccw 4s linear infinite; animation-delay: -0.2s; }
.modulos-grid .modulo-card:nth-child(5)::after  { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1.5s; }
.modulos-grid .modulo-card:nth-child(6)::after  { animation: spin-normal-cw 3.5s linear infinite; animation-delay: -0.7s; }
.modulos-grid .modulo-card:nth-child(7)::after  { animation: spin-rapido-ccw 3s linear infinite; animation-delay: -1.3s; }
.modulos-grid .modulo-card:nth-child(8)::after  { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -0.4s; }
.modulos-grid .modulo-card:nth-child(9)::after  { animation: spin-medio-ccw 4s linear infinite; animation-delay: -1.1s; }
.modulos-grid .modulo-card:nth-child(10)::after { animation: spin-normal-cw 3.5s linear infinite; animation-delay: -0.8s; }
.modulos-grid .modulo-card:nth-child(11)::after { animation: spin-rapido-ccw 3s linear infinite; animation-delay: -0.1s; }
.modulos-grid .modulo-card:nth-child(12)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1.6s; }
.modulos-grid .modulo-card:nth-child(13)::after { animation: spin-medio-ccw 4s linear infinite; animation-delay: -0.3s; }
.modulos-grid .modulo-card:nth-child(14)::after { animation: spin-normal-cw 3.5s linear infinite; animation-delay: -1.4s; }

/* Steps — 3 pasos (con step-connector entre medio, por eso nth-of-type) */
.steps .step:nth-of-type(1)::after { animation: spin-rapido-cw 2.5s linear infinite; animation-delay: 0s; }
.steps .step:nth-of-type(2)::after { animation: spin-medio-ccw 4s linear infinite; animation-delay: -0.5s; }
.steps .step:nth-of-type(3)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1.2s; }

/* Testimonios — 3 cards */
.testimonios-grid .testimonio-card:nth-child(1)::after { animation: spin-normal-cw 3.5s linear infinite; animation-delay: 0s; }
.testimonios-grid .testimonio-card:nth-child(2)::after { animation: spin-rapido-ccw 3s linear infinite; animation-delay: -0.8s; }
.testimonios-grid .testimonio-card:nth-child(3)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -0.3s; }

/* FAQ — ~6+ items */
.faq-list .faq-item:nth-child(1)::after { animation: spin-rapido-cw 2.5s linear infinite; animation-delay: 0s; }
.faq-list .faq-item:nth-child(2)::after { animation: spin-medio-ccw 4s linear infinite; animation-delay: -0.7s; }
.faq-list .faq-item:nth-child(3)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1.5s; }
.faq-list .faq-item:nth-child(4)::after { animation: spin-normal-cw 3.5s linear infinite; animation-delay: -0.4s; }
.faq-list .faq-item:nth-child(5)::after { animation: spin-rapido-ccw 3s linear infinite; animation-delay: -1.1s; }
.faq-list .faq-item:nth-child(6)::after { animation: spin-medio-ccw 4s linear infinite; animation-delay: -0.2s; }
.faq-list .faq-item:nth-child(7)::after { animation: spin-lento-cw 6.5s linear infinite; animation-delay: -1.8s; }
.faq-list .faq-item:nth-child(8)::after { animation: spin-normal-cw 3.5s linear infinite; animation-delay: -0.9s; }

/* Pricing Early (dorado): único, así que velocidad fija */
.pricing-card-early::after {
  --card-border-base: rgba(245, 158, 11, 0.08);
  --card-border-dot: rgba(245, 158, 11, 0.45);
  --card-border-trail: rgba(245, 158, 11, 0.1);

  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    var(--card-border-base) 0deg,
    var(--card-border-dot) 1.5deg 4deg,
    var(--card-border-trail) 5deg 12deg,
    var(--card-border-base) 13deg 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spin-medio-ccw 4.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Horario (sentido del reloj) */
@keyframes spin-rapido-cw { to { --border-angle: 360deg; } }
@keyframes spin-normal-cw  { to { --border-angle: 360deg; } }
@keyframes spin-lento-cw   { to { --border-angle: 360deg; } }

/* Antihorario */
@keyframes spin-rapido-ccw { to { --border-angle: -360deg; } }
@keyframes spin-medio-ccw  { to { --border-angle: -360deg; } }

/* ══════════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════════ */

.features {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(226,232,240,0.6);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.15);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--icon-bg);
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   STATS BANNER
   ══════════════════════════════════════════════════════════ */

.stats-banner {
  background: var(--accent-gradient);
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay */
.stats-banner::before {
  content: '';
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
  z-index: 1;
}

.stats-banner::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stats-banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   MOCKUP / PLATAFORMA (SVG Dashboard)
   ══════════════════════════════════════════════════════════ */

.mockup-section {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.mockup-container {
  background: #0F172A;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-xl);
  transition: box-shadow 0.4s ease;
}

.mockup-container:hover {
  box-shadow: 0 0 0 1px rgba(37,99,235,0.15), 0 24px 60px rgba(0,0,0,0.15);
}

.mockup-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mockup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════ */

.how-it-works {
  padding: 6rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226,232,240,0.6);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.step:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.12);
}

.step-number {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.4;
  letter-spacing: -0.04em;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--accent);
  opacity: 0.3;
}

/* ══════════════════════════════════════════════════════════
   MÓDULOS
   ══════════════════════════════════════════════════════════ */

.modulos {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

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

.modulo-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226,232,240,0.6);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
}

.modulo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.modulo-card-bar {
  height: 4px;
  width: 100%;
}

.modulo-card-content {
  padding: 1.25rem;
}

.modulo-num {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.modulo-card-content h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.modulo-card-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIOS
   ══════════════════════════════════════════════════════════ */

.testimonios {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

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

.testimonio-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(226,232,240,0.6);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.12);
}

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

.testimonio-texto {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.testimonio-nombre {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonio-cargo {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}

/* ══════════════════════════════════════════════════════════
   PRICING / PLANES
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   PRICING / PLANES
   ══════════════════════════════════════════════════════════ */

.pricing {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ── Argumento (Ley 21.809) ──────────────────────────── */
.pricing-argumento {
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.pricing-argumento blockquote {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(37,99,235,0.02));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
  font-style: italic;
}

.pricing-argumento blockquote strong {
  color: var(--accent);
}



/* ── Early Adopter Card ──────────────────────────────── */
.pricing-card-early {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 2px solid rgba(245,158,11,0.25);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.1), var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card-early:hover {
  box-shadow: 0 0 0 1px rgba(245,158,11,0.2), var(--shadow-xl);
  border-color: rgba(245,158,11,0.4);
  transform: translateY(-3px);
}

.pricing-badge-early {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.3rem 1.2rem;
  border-radius: 99px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.pricing-amount-early {
  color: #D97706;
}

.pricing-early-urgency {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: rgba(245,158,11,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245,158,11,0.1);
}

.pricing-early-urgency strong {
  color: #D97706;
  font-weight: 700;
}

.btn-early {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.btn-early:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.4), 0 0 30px rgba(245,158,11,0.15);
}

/* ── Shared Pricing utilities ────────────────────────── */
.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 4px;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.pricing-feature svg {
  flex-shrink: 0;
}

/* ── Precios Regulares (tabla) ───────────────────────── */
.pricing-regular {
  margin-bottom: 2rem;
}

.pricing-regular-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-regular-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-regular-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-table {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.6);
  box-shadow: var(--shadow-sm);
}

.pricing-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 1rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: background 0.15s ease;
}

.pricing-table-row:last-child {
  border-bottom: none;
}

.pricing-table-row:not(.pricing-table-header):hover {
  background: rgba(37,99,235,0.02);
}

.pricing-table-header {
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: none;
}

.pricing-table-row-sostenedor {
  background: rgba(37,99,235,0.03);
  border-top: 2px solid rgba(37,99,235,0.15);
}

.pricing-table-col {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.pricing-table-header .pricing-table-col {
  color: rgba(255,255,255,0.85);
}

.plan-col {
  font-weight: 600;
}

.alumnos-col {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.mensual-col {
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.anual-col {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}

.pricing-table-header .mensual-col,
.pricing-table-header .anual-col {
  color: rgba(255,255,255,0.85);
}

.pricing-table-row-sostenedor .anual-col {
  color: #D97706;
}

.pricing-table-row-sostenedor .mensual-col {
  color: var(--text-tertiary);
  font-style: italic;
  font-weight: 500;
}

/* ── IVA Notes ─────────────────────────────────────── */
.pricing-iva-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.pricing-iva-badge {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #10B981;
  padding: 0.2rem 0.6rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.pricing-iva-total {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.pricing-iva-total strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pricing-iva-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── CTA pricing ─────────────────────────────────────── */
.pricing-cta {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing-cta a:hover {
  color: var(--accent-hover);
}

/* ══════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════ */

.faq {
  padding: 6rem 1.5rem;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

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

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226,232,240,0.6);
  transition: all 0.3s ease;
  position: relative;
}

.faq-item:hover {
  border-color: rgba(37,99,235,0.12);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s ease;
  line-height: 1.4;
}

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════ */

.cta {
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: #2563EB;
  text-align: center;
}

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

/* Grid pattern on CTA section too */
.cta-bg-shapes::after {
  content: '';
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 45px 45px;
  pointer-events: none;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.cta-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, white 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.cta-shape.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

.footer {
  background: #0F172A;
  color: white;
  padding: 4rem 1.5rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-col a.footer-link-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.footer-col a.footer-link-disabled:hover {
  color: rgba(255,255,255,0.65);
  cursor: not-allowed;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-security {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */

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

/* Reveal on scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modulos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile large */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(226,232,240,0.8);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .nav-link:hover {
    background: var(--bg-elevated);
  }

  .nav-toggle {
    display: flex;
  }

  /* Desactivar radar y grid en mobile (performance) */
  .hero-radar,
  .stats-radar,
  .cta-radar,
  .section-grid { display: none; }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-banner-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .modulos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  .pricing-amount {
    font-size: 2.2rem;
  }
  .pricing-card-early {
    padding: 1.5rem;
  }
  .pricing-card-early .pricing-features {
    margin-bottom: 1.25rem;
  }
  .pricing-table-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1rem;
    padding: 0.85rem 1.25rem;
  }
  .pricing-table-header {
    display: none;
  }
  .plan-col {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }
  .alumnos-col {
    color: var(--text-tertiary);
    font-size: 0.82rem;
  }
  .mensual-col {
    text-align: right;
  }
  .anual-col {
    text-align: right;
  }
  .pricing-table-row-sostenedor {
    border-top: 1px solid rgba(37,99,235,0.15);
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero {
    padding: 5rem 1rem 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .modulos-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .stats-banner-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .step {
    flex-direction: column;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn {
    width: 100%;
  }
}
