/**
 * Emprender Después de los 50
 * Landing Page CSS
 * Dark Theme with Glassmorphism
 *
 * 🆕 VERSIÓN: v1.1.0-success-modal
 * 📅 FECHA: 2025-11-01 17:30 CLT (Santiago, Chile)
 * 🎨 CAMBIOS: Modal de éxito profesional con borde neón animado
 * ✨ FEATURES: Overlay, cruz de cierre, auto-cierre 5s, responsive
 */

/* ================================
   CSS VARIABLES & DESIGN SYSTEM
   ================================ */
:root {
  /* Brand Colors */
  --primary: #059cd8;
  --primary-dark: #047ba8;
  --primary-light: #1eb3ec;
  --secondary: #19619c;
  --secondary-dark: #134876;
  --secondary-light: #2178b8;
  
  /* Dark Theme Colors */
  --dark-bg: #0a0e27;
  --dark-surface: #131829;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-border: rgba(255, 255, 255, 0.1);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #059cd8 0%, #19619c 100%);
  --gradient-primary-hover: linear-gradient(135deg, #1eb3ec 0%, #2178b8 100%);
  --gradient-glow: linear-gradient(90deg, rgba(5,156,216,0.2) 0%, rgba(25,97,156,0.2) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(5,156,216,0.1) 0%, rgba(25,97,156,0.1) 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Effects */
  --shadow-glow: 0 0 40px rgba(5, 156, 216, 0.4);
  --shadow-glow-sm: 0 0 20px rgba(5, 156, 216, 0.3);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
  
  /* Typography - Jost (Display) + Inter (Text) */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing Scale - Sistema modular coherente */
  --space-1: 1rem;      /* 16px */
  --space-1-5: 1.5rem;  /* 24px */
  --space-2: 2rem;      /* 32px */
  --space-2-5: 2.5rem;  /* 40px */
  --space-3: 3rem;      /* 48px */
  --space-3-5: 3.5rem;  /* 56px */
  --space-4: 4rem;      /* 64px */
  --space-5: 5rem;      /* 80px */
  
  /* Spacing - Legacy */
  --section-padding: 70px 0;
  --section-padding-sm: 45px 0;
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ================================
   GRADIENT TEXT
   ================================ */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-text {
  color: var(--primary);
  font-weight: 600;
}

/* ================================
   GLASSMORPHISM CARD
   ================================ */
.glass-card {
  background: var(--dark-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-base);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 12px;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow-sm);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* ================================
   NAVBAR
   ================================ */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: white !important;
  text-decoration: none;
}

.brand-text {
  color: white;
}

.brand-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 300; /* Light - mejor legibilidad */
  font-size: 0.85rem; /* Tamaño óptimo */
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.btn-cta-nav {
  background: var(--gradient-primary);
  color: white !important;
  border-radius: 8px;
  padding: 0.5rem 1.5rem !important;
  margin-left: 1rem;
}

.btn-cta-nav:hover {
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-2px);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 15;
  pointer-events: none;
}

/* Gradient Overlay */
.hero-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--gradient-hero);
  z-index: 1;
  pointer-events: none;
}

/* Animated Blobs */
.hero-blobs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: 10%;
  right: -5%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Content - Split Layout */
.hero-split .row {
  min-height: 70vh;
}

.hero-content-left {
  position: relative;
  z-index: 10;
}

.hero-headline {
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.hero-subheadline {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  min-height: 80px;
  line-height: 1.6;
}

/* Hero Benefits List (visible on left) */
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-benefits li {
  display: flex;
  align-items: center; /* Centrado vertical perfecto */
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-benefits i {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Hero Form Container - Wrapper with Animated Gradient Border */
.hero-form-container {
  position: relative;
  z-index: 10;
  padding: 4px;
  max-width: none;
  border-radius: 22px;
}

/* Animated gradient border layers */
.hero-form-container::before,
.hero-form-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
    radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
    radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
    radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite alternate;
}

.hero-form-container::before {
  opacity: 0.6;
  filter: blur(20px);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.hero-form-container::after {
  opacity: 1;
  z-index: 2;
}

.hero-form-container:hover::before {
  opacity: 1;
}

/* Inner form content */
.hero-form-inner {
  position: relative;
  z-index: 10;
  background: rgb(10, 14, 39);
  border-radius: 18px;
  padding: 2.5rem;
}

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

.form-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Form Styles */
.lead-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition-base);
}

.lead-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 156, 216, 0.2);
  outline: none;
  color: white;
}

.lead-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-hint {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.875rem;
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

/* Spot Counter */
.spot-counter {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.counter-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

.counter-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 1rem;
}

.spots-available {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.counter-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Custom Progress Bar */
.progress-bar-custom {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Benefits List in Form */
.benefits-list {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.benefits-title {
  color: white;
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

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

.benefits-list li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.benefits-list i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ================================
   SECTIONS
   ================================ */
.section-padding {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.bg-gradient-subtle {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(25, 97, 156, 0.05) 50%,
    transparent 100%
  );
}

/* Respiración editorial entre "Una Nueva Etapa" y "Lo Que Descubrirás" */
#beneficios {
  padding-top: 120px; /* +50px adicional para transición suave */
  margin-top: 0; /* Anular cualquier margin-top para controlar separación desde quote-author */
}

/* ================================
   FEATURE CARDS (Por Qué Section)
   ================================ */
.manifesto-text p {
  font-size: 1.0625rem; /* Intermedio entre 1rem y 1.125rem */
  line-height: 1.8;
  font-weight: 300; /* Light - mejor balance */
  color: var(--text-secondary);
}

.feature-card {
  height: 100%;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-insight {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.quote-section {
  margin: var(--space-3) 0 var(--space-1-5) 0; /* 48px arriba, 24px abajo hacia frase-puente */
  text-align: center;
}

.hero-quote {
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
  color: white;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 1rem; /* Zona 2: Peso reducido */
  font-weight: 400; /* Zona 2: Weight 400 según spec */
  line-height: 1.3; /* Zona 2: Compacto pero legible */
  margin-top: var(--space-1-5); /* 24px - cerca de la quote */
  margin-bottom: var(--space-4); /* 64px - hacia siguiente sección (dentro del rango 60-70px) */
}

/* ================================
   BENEFIT CARDS
   ================================ */
.benefit-card {
  text-align: center;
  height: 100%;
  padding: 2.5rem 2rem;
}

.benefit-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-sm);
}

.benefit-card .icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ================================
   TIMELINE (Cómo Funciona)
   ================================ */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 4rem; /* Aumentado de 3rem a 4rem (+20px aprox) para dar más aire */
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-glow-sm);
  z-index: 2;
}

.timeline-content {
  padding: 2rem;
}

.timeline-content h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ================================
   TESTIMONIAL CARDS
   ================================ */
.testimonial-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(5, 156, 216, 0.3);
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: rgba(5, 156, 216, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow-sm);
  flex-shrink: 0;
}

.testimonial-header .info h4 {
  margin-bottom: 0.25rem;
  color: white;
  font-size: 1.25rem;
}

.age {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-title {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.testimonial-insight {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

/* ================================
   CTA SECTION
   ================================ */
.cta-box {
  padding: 3rem;
  text-align: center;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.trust-badges {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badges span {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.trust-badges i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* Counter Badge CTA (in "¿Listo para Empezar?" section) */
.counter-badge-cta {
  font-size: 1rem;
  color: var(--text-secondary);
}

.counter-badge-cta span {
  color: var(--primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ================================
   FAQ ACCORDION
   ================================ */
.accordion-item {
  background: transparent;
  border: none;
  margin-bottom: var(--space-1); /* 16px - compacto según spec */
}

.accordion-button {
  background: var(--dark-bg);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px !important;
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed) {
  background: rgba(5, 156, 216, 0.1);
  border-color: var(--primary);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(5, 156, 216, 0.2);
  border-color: var(--primary);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 1.5rem 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.accordion-collapse {
  border: none;
}

/* ================================
   FINAL CTA
   ================================ */
.final-cta {
  background: var(--dark-bg);
}

.final-cta-title {
  font-size: 2rem; /* Reducido de 2.5rem para hacerlo más sobrio */
  color: white;
  margin-bottom: 1rem;
  font-weight: 400; /* Menos peso visual */
}

.final-cta-text {
  font-size: 1.1rem; /* Reducido de 1.25rem */
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.final-quote {
  font-size: 1.25rem; /* Reducido de 1.5rem para tono más sobrio */
  font-style: italic;
  color: rgba(255, 255, 255, 0.85); /* Menos prominente */
  line-height: 1.8;
  margin: 2rem auto;
  max-width: 800px;
  padding: 1.75rem; /* Reducido de 2rem */
  background: rgba(255, 255, 255, 0.03); /* Más sutil */
  border-left: 3px solid var(--primary); /* Más delgado */
  border-radius: 8px;
}

.quote-signature {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.quote-signature strong {
  color: white;
  font-size: 1.25rem;
}

.quote-signature span {
  color: var(--text-muted);
  font-size: 1rem;
}

.btn-cta-final {
  padding: 16px 40px; /* Reducido de 20px 50px */
  font-size: 1.1rem; /* Reducido de 1.25rem */
  box-shadow: var(--shadow-glow-sm); /* Glow más sutil */
  opacity: 0.95; /* Ligeramente menos prominente */
}

.btn-cta-final:hover {
  opacity: 1;
  box-shadow: var(--shadow-glow);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 200; /* Extra-Light para elegancia */
  margin-bottom: 0.75rem;
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  font-weight: 100; /* Thin - delgada */
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition-base);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-sm);
}

.footer-title {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 100; /* Thin - delgada */
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
  font-size: 0.9rem;
  font-weight: 100; /* Thin - delgada */
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-newsletter-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-weight: 100; /* Thin - delgada */
}

.newsletter-form .input-group {
  border-radius: 12px;
  overflow: hidden;
}

.newsletter-form .form-control {
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 12px 16px;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: none;
  color: white;
}

.newsletter-form .btn {
  padding: 12px 20px;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.copyright, .developed-by {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 100; /* Thin - delgada */
  margin: 0;
}

.developed-by a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.developed-by a:hover {
  color: var(--primary-light);
}

.developed-by i {
  color: #e74c3c;
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-glow-sm);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* ================================
   COOKIE CONSENT
   ================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  z-index: 9999;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-text i {
  color: var(--primary);
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 991px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  /* Stack hero columns on tablet */
  .hero-split .row {
    min-height: auto;
  }
  
  /* Keep hero benefits visible on tablet, hide only on mobile */
  .hero-benefits {
    margin-top: 1.5rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 80px;
  }
  
  .timeline-marker {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 40px 0;
  }
  
  .hero-section {
    padding: 80px 0 40px;
    min-height: auto;
  }
  
  .hero-content-left {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .hero-subheadline {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  /* Hide hero benefits on mobile only */
  .hero-benefits {
    display: none;
  }
  
  /* Fix gradient border thickness on mobile - keep 4px, adjust inner padding */
  .hero-form-container {
    padding: 3px;
  }
  
  .hero-form-inner {
    padding: 1.5rem;
  }
  
  .btn-cta-nav {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom .row > div {
    text-align: center !important;
    margin-bottom: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-buttons .btn {
    flex: 1;
    min-width: 120px;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ================================
   ANIMATIONS & TRANSITIONS
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.glow-primary {
  box-shadow: var(--shadow-glow-sm);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-dark-card {
  background: var(--dark-card);
}

.border-glass {
  border: 1px solid var(--glass-border);
}

/* ================================
   TESTIMONIALS CAROUSEL
   ================================ */
.testimonials-carousel {
  position: relative;
  padding: 0 50px;
}

.testimonials-carousel .carousel-inner {
  padding: 20px 0;
}

.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
  width: 45px;
  height: 45px;
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.testimonials-carousel .carousel-control-prev {
  left: 0;
}

.testimonials-carousel .carousel-control-next {
  right: 0;
}

.testimonials-carousel .carousel-control-prev:hover,
.testimonials-carousel .carousel-control-next:hover {
  background: var(--gradient-primary);
  border-color: var(--primary);
}

.testimonials-carousel .carousel-control-prev-icon,
.testimonials-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.testimonials-carousel .carousel-indicators {
  margin-bottom: -30px;
}

.testimonials-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--glass-border);
  border: none;
  opacity: 0.5;
}

.testimonials-carousel .carousel-indicators button.active {
  background-color: var(--primary);
  opacity: 1;
}

/* ================================
   E-BOOK PREVIEW SECTION
   ================================ */
.ebook-preview-section {
  position: relative;
  overflow: hidden;
}

/* Mayor separación entre título/subtítulo y contenido del e-book */
.ebook-preview-section .row.align-items-center {
  margin-top: 2.5rem; /* +20px adicional para equilibrio visual */
}

.ebook-preview-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(5, 156, 216, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.ebook-cover-wrapper {
  text-align: center;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.ebook-cover-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(5, 156, 216, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotateY(15deg) rotateX(5deg);
  margin: 0 auto;
  display: block;
}

.ebook-cover-image:hover {
  transform: rotateY(8deg) rotateX(2deg) translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(5, 156, 216, 0.5);
}

.ebook-full-title {
  max-width: 900px;
  margin: 0 auto;
}

.ebook-main-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.ebook-main-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 0;
  padding-bottom: var(--space-2-5); /* 40px - parte 1 del total de 56px */
}

.ebook-main-subtitle em {
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  font-weight: 300;
}

.ebook-content h3 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.ebook-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.ebook-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1rem; /* 16px - parte 2 del total de 56px (40+16=56) */
}

.ebook-steps li {
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.75rem 2rem 1.75rem 3.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  transition: var(--transition-base);
  position: relative;
}

.ebook-steps li::before {
  content: '→';
  position: absolute;
  left: 1.5rem;
  color: rgba(5, 156, 216, 0.5);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition-base);
}

.ebook-steps li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateX(5px);
}

.ebook-steps li:hover::before {
  color: var(--primary);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-sm);
}

.step-content {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
  width: 100%;
}

.ebook-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--dark-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.ebook-cta h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.ebook-cta p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* ================================
   GRADIENT BORDER EFFECTS
   ================================ */
   
/* Gradient Border Button Wrapper (for E-book CTA) */
.gradient-border-wrapper {
  position: relative;
  display: inline-block;
  padding: 4px;
  border-radius: 14px;
}

.gradient-border-wrapper::before,
.gradient-border-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: 
    radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
    radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
    radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
    radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite alternate;
}

.gradient-border-wrapper::before {
  opacity: 0.6;
  filter: blur(20px);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.gradient-border-wrapper::after {
  opacity: 1;
  z-index: 2;
}

.gradient-border-wrapper:hover::before {
  opacity: 1;
}

.gradient-border-btn {
  position: relative;
  z-index: 10;
}

/* CTA Form Container with Animated Gradient Border */
.cta-form-container {
  position: relative;
  padding: 4px;
  border-radius: 22px;
}

.cta-form-container::before,
.cta-form-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: 
    radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
    radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
    radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
    radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite alternate;
}

.cta-form-container::before {
  opacity: 0.6;
  filter: blur(20px);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.cta-form-container::after {
  opacity: 1;
  z-index: 2;
}

.cta-form-container:hover::before {
  opacity: 1;
}

.cta-form-inner {
  position: relative;
  z-index: 10;
  background: var(--dark-bg);
  border-radius: 18px;
  padding: 3rem;
}

/* E-book CTA Container with Animated Gradient Border */
.ebook-cta-container {
  position: relative;
  padding: 4px;
  border-radius: 16px;
}

.ebook-cta-container::before,
.ebook-cta-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: 
    radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
    radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
    radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
    radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite alternate;
}

.ebook-cta-container::before {
  opacity: 0.6;
  filter: blur(20px);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.ebook-cta-container::after {
  opacity: 1;
  z-index: 2;
}

.ebook-cta-container:hover::before {
  opacity: 1;
}

.ebook-cta-inner {
  position: relative;
  z-index: 10;
  background: var(--dark-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.ebook-cta-inner h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.ebook-cta-inner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}



/* ================================
   FINAL CTA GRADIENT BORDER
   ================================ */
.final-cta-container {
  position: relative;
  padding: 4px;
  border-radius: 22px;
}

.final-cta-container::before,
.final-cta-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: 
    radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
    radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
    radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
    radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite alternate;
}

.final-cta-container::before {
  opacity: 0.6;
  filter: blur(20px);
  transition: opacity 0.5s ease;
  z-index: 1;
}

.final-cta-container::after {
  opacity: 1;
  z-index: 2;
}

.final-cta-container:hover::before {
  opacity: 1;
}

.final-cta-inner {
  position: relative;
  z-index: 10;
  background: var(--dark-bg);
  border-radius: 18px;
  padding: 3rem;
  text-align: center;
}



/* =========================
   RHYTHM FIXES v3 (solo espaciados)
   ========================= */

/* 1) Frase-puente → Beneficios (subir especificidad y asegurar 0) */
section#beneficios.section-padding {
  padding-top: 0 !important;
}

/* 2) “10 Pasos…”: iniciar los bullets al tope (evita el vacío) */
.ebook-preview-section .row.align-items-center {
  margin-top: 0.5rem !important;
  align-items: flex-start !important;
}

/* 3) FAQ: compactar de verdad (incluye .glass-card) */
#faq .accordion-item.glass-card {
  margin-bottom: 0.5rem !important;
}

#faq .accordion-button {
  padding: 0.9rem 1.5rem !important;
}

#faq .accordion-body {
  padding: 0.9rem 1.5rem !important;
}

#faq .accordion {
  gap: 0 !important;
}

/* (Opcional) Quitar relleno extra del card si .glass-card añade padding interno */
#faq .accordion-item.glass-card,
#faq .accordion-item.glass-card .accordion-header,
#faq .accordion-item.glass-card .accordion-body {
  /* padding: 0 !important; */
}



/* =========================
   RHYTHM FIXES v4 (refinado final + centrado cover)
   Fecha: 2025-10-16
   ========================= */

/* 0) Asegurar gap correcto frase-puente → beneficios (se mantiene) */
section#beneficios.section-padding { padding-top: 0 !important; }

/* 1) “10 Pasos…” — eliminar micro-gap y preparar centrado del cover */
.ebook-preview-section .row.align-items-center {
  margin-top: 0 !important;          /* eliminamos los ~20px restantes */
  align-items: stretch !important;    /* columnas a igual altura */
}

/* Centrar verticalmente el cover SOLO dentro de su columna,
   sin afectar la alineación top del bloque derecho */
.ebook-preview-section .ebook-cover-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

/* 2) FAQ — compactación máxima sin perder legibilidad */
#faq .accordion-item.glass-card { margin-bottom: 0 !important; }

#faq .accordion-button,
#faq .accordion-body {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Evitar gaps del contenedor */
#faq .accordion { gap: 0 !important; }



/* =========================
   RHYTHM & TYPE FIXES v5
   (ebook title hierarchy + FAQ extra compact)
   ========================= */

/* --- eBook section: restore visual hierarchy --- */
.ebook-preview-section .section-title {
  text-wrap: balance;
}

.ebook-main-title {
  font-weight: 600;                         /* reduce competition with H2 */
  letter-spacing: 0.01em;
  text-wrap: balance;
  /* ~8–12% smaller than section H2, responsive */
  font-size: clamp(1.30rem, 2.0vw + 0.45rem, 1.95rem);
}

.no-wrap { white-space: nowrap; }

.accent {
  color: var(--primary);
  font-style: normal;
}

.ebook-main-subtitle {
  line-height: 1.55;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ: even tighter vertical rhythm --- */
#faq .accordion-item.glass-card { margin-bottom: 0 !important; }

#faq .accordion-button {
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#faq .accordion-body {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#faq .accordion { gap: 0 !important; }



/* =========================
   RHYTHM & TYPE FIXES v6
   (P1: frase-puente; P2: eBook spacing/blue accent; P3: FAQ breathing)
   ========================= */

/* P1 — Frase-puente: darle más presencia sin competir */
.quote-author {
  font-weight: 400;
  letter-spacing: 0.015em;                      /* + interletra para legibilidad */
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem); /* + tamaño sutil en desktop */
  text-wrap: balance;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

/* P2 — eBook section */
.ebook-preview-section .ebook-full-title { 
  margin-bottom: 1rem !important;               /* ↓ un poco más el gap con la fila */
}
.ebook-preview-section .row.align-items-center {
  margin-top: 0 !important;                     /* elimina micro-gap */
  align-items: stretch !important;              /* columnas a igual altura */
}
/* Subtítulo: un paso abajo para no competir con el H2 superior */
.ebook-main-subtitle {
  font-size: clamp(0.95rem, 0.28vw + 0.9rem, 1.05rem);
}
/* Acento en azul para la frase final del subtítulo (CSS-only, sin tocar HTML) */
.ebook-preview-section .ebook-main-subtitle em {
  color: var(--primary);
  font-style: normal;                           /* evita doble señal (color + cursiva) */
}

/* P3 — FAQ: recuperar altura agradable del botón y, a la vez, reducir el gap entre ítems */
#faq .accordion-item.glass-card {
  margin-bottom: 0.375rem !important;           /* ~6px entre tarjetas (antes 0 / ~0.5rem) */
}
#faq .accordion-button {
  padding-top: 1.1rem !important;               /* ↑ un poco para mejor respiración de la pregunta */
  padding-bottom: 1.1rem !important;
}
#faq .accordion-body {
  padding-top: 1rem !important;                 /* mantiene lectura cómoda */
  padding-bottom: 1rem !important;
}
#faq .accordion { gap: 0 !important; }          /* sin huecos del contenedor */



/* =========================
   RHYTHM & TYPE FIXES v7 (definitivo)
   P1: Frase-puente  |  P2: eBook spacing + azul  |  P3: FAQ aire interno + gap externo
   ========================= */

/* P1 — Frase-puente: más presencia sin competir con la cita */
.quote-author{
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(1.10rem, 0.8rem + 0.55vw, 1.40rem);
  line-height: 1.35;
  text-wrap: balance;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

/* P2 — eBook: bajar gap, subtítulo un paso abajo y acento azul */
.ebook-preview-section .ebook-full-title{ 
  margin-bottom: 0.75rem !important;        /* menor separación antes de la fila */
}
.ebook-preview-section .row.align-items-center{
  margin-top: 0 !important;                 /* sin micro-gap */
  align-items: stretch !important;
}
.ebook-main-subtitle{
  font-size: clamp(0.92rem, 0.24vw + 0.88rem, 1.02rem);
  line-height: 1.55;
}
/* Acento azul de la frase final del subtítulo */
.ebook-preview-section p.ebook-main-subtitle em{
  color: var(--primary) !important;
  font-style: normal;
}

/* P3 — FAQ: más aire interno del botón/panel + menos gap entre tarjetas */
#faq .accordion-item,
#faq .accordion-item.glass-card{
  margin-bottom: 0.25rem !important;        /* ~4px entre preguntas */
}
#faq .accordion-button{
  padding-top: 1.15rem !important;          /* respiración cómoda */
  padding-bottom: 1.15rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
#faq .accordion-body{
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
#faq .accordion{ gap: 0 !important; }
#faq .accordion-item:last-child{ margin-bottom: 0 !important; }

/* Se mantiene de versiones previas:
   - section#beneficios.section-padding { padding-top: 0 !important; }
   - Centrado vertical del cover del eBook
   - Jerarquía H2 > H3 en la sección del eBook
*/



/* =========================
   RHYTHM & TYPE FIXES v7.1
   - P1: frase-puente más firme
   - P2: "Algunos de esos pasos son:" con mayor énfasis
   - P3: FAQ con separación mínima real entre tarjetas
   ========================= */

/* P1 — Frase-puente: subir un punto el peso visual */
.quote-author{
  font-weight: 500 !important;  /* antes 400 */
}

/* P2 — eBook: enfatizar "Algunos de esos pasos son:" */
.ebook-preview-section p.ebook-main-subtitle em{
  color: var(--primary) !important;
  font-weight: 500 !important;
  font-style: italic !important;
}

/* P3 — FAQ: reducir al mínimo el gap externo entre preguntas */
#faq .accordion-item,
#faq .accordion-item.glass-card{
  margin-bottom: 0.125rem !important;  /* ~2px reales */
}



/* =========================
   RHYTHM & TYPE FIXES v7.2
   Objetivo: FAQ con separación externa mínima real (≈1–2px),
   sin tocar el aire interno del botón/panel.
   ========================= */

/* Eliminar cualquier margen heredado de glass-card en FAQ */
#faq .glass-card { margin: 0 !important; }

/* Separación entre tarjetas: 1px visual aprox */
#faq .accordion-item,
#faq .accordion-item.glass-card { 
  margin-bottom: 0 !important;        /* cero por defecto */
}
#faq .accordion-item + .accordion-item {
  margin-top: 0.0625rem !important;   /* ~1px */
}

/* Mantener respiración interna (de V7/V7.1) */
#faq .accordion-button{
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
#faq .accordion-body{
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Sin gaps del contenedor */
#faq .accordion { gap: 0 !important; }

/* =========================================================
   CÓMO FUNCIONA — Paso 1 con miniatura eBook (v7.2)
   - La miniatura es decorativa, 64px de alto
   - No altera la altura del card (posición absoluta)
   - Solo aumenta padding-left en el card 1
   ========================================================= */

#como-funciona .timeline-content.glass-card.has-ebook-thumb {
  position: relative;
  padding-left: 88px !important; /* 64px de imagen + ~24px de colchón */
}

/* La miniatura NO altera la altura: absoluta y centrada verticalmente */
#como-funciona .timeline-content.glass-card.has-ebook-thumb .ebook-thumb {
  position: absolute;
  left: 20px;               /* separación del borde del card */
  top: 50%;
  transform: translateY(-50%);
  height: 64px;             /* pedido: 64px */
  width: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  pointer-events: none;     /* decorativa */
  opacity: 0.95;
}

/* Responsive: ocultar miniatura en <992px para no apretar el layout */
@media (max-width: 991.98px) {
  #como-funciona .timeline-content.glass-card.has-ebook-thumb {
    padding-left: 24px !important;
  }
  #como-funciona .timeline-content.glass-card.has-ebook-thumb .ebook-thumb {
    display: none;
  }
}

/* Variante: miniatura a la DERECHA en el Paso 1 (72px) */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right {
  padding-left: 24px !important;    /* volvemos a un padding standard a la izquierda */
  padding-right: 108px !important;   /* 72px de imagen + ~36px de colchón */
}

#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right .ebook-thumb {
  left: auto;
  right: 20px;                       /* bordecito derecho del card */
  top: 50%;
  transform: translateY(-50%);
  height: 72px;                      /* un poco más grande que 64px */
  width: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  pointer-events: none;
  opacity: 0.95;
}

/* Responsive: ocultamos miniatura y quitamos padding extra en móviles */
@media (max-width: 991.98px) {
  #como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right {
    padding-right: 24px !important;
  }
  #como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right .ebook-thumb {
    display: none;
  }
}

/* Ajuste visual final: miniatura a la DERECHA más grande y con una ligera rotación */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right {
  padding-right: 128px !important;   /* 84px de imagen + ~44px de colchón */
}

/* Imagen: más grande, un poco rotada, centrada verticalmente */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right .ebook-thumb {
  right: 22px;
  height: 84px;                       /* antes 72px */
  width: auto;
  transform: translateY(-50%) rotate(6deg);
  transform-origin: center center;
  /* Sombras iguales, pero puedes subir un poco si quieres más “flotante” */
  box-shadow: 0 8px 22px rgba(0,0,0,0.38);
}

/* Micro-animación al pasar el mouse (opcional y sutil) */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right:hover .ebook-thumb {
  transform: translateY(-50%) rotate(6deg) scale(1.02);
  transition: transform 200ms ease-out;
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  #como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right:hover .ebook-thumb {
    transform: translateY(-50%) rotate(6deg);
  }
}

/* =========================================================
   Styles v7.3 — Mejora de nitidez y posicionamiento miniatura eBook
   ========================================================= */

/* Miniatura del eBook dentro del paso 1 — nitidez + posición */
.ebook-thumb {
  height: 64px;          /* puedes subir a 68–72px si quieres más presencia */
  width: auto;
  margin-left: .75rem;
  float: right;

  /* Evitar suavizado extra por rotate en WebKit */
  transform: rotate(6deg) translateZ(0);
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast; /* Safari */
  image-rendering: crisp-edges;               /* fallback */

  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

@media (min-width: 992px) {
  .timeline-content.glass-card.has-ebook-thumb {
    position: relative;
    padding-right: 5.25rem; /* espacio para la miniatura a la derecha */
  }
  .timeline-content.glass-card.has-ebook-thumb .ebook-thumb {
    position: absolute;
    right: 1rem;
    top: 1rem;
  }
}

/* Retina support: nitidez adicional */
@media (min-resolution: 1.5dppx) {
  .ebook-thumb {
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)) contrast(1.05) saturate(1.1);
  }
}

/* ===== ROLLBACK v7.3 → estado estable (miniatura a la derecha, sin efectos) ===== */

/* Card del Paso 1 con miniatura a la DERECHA (tamaño seguro) */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right {
  padding-right: 108px !important; /* 72px de imagen + ~36px de colchón */
}

/* Miniatura: posición absoluta, centrada vertical; SIN translateZ, SIN filtros raros */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right .ebook-thumb {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(6deg); /* si prefieres recta: elimina 'rotate(6deg)' */
  height: 72px;         /* o vuelve a 64px si lo quieres más discreto */
  width: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35); /* sombra simple, sin 'filter:' */
  backface-visibility: visible;
  image-rendering: auto; /* deja al navegador elegir el mejor suavizado */
  transition: none;      /* sin animaciones de hover */
}

/* Anula cualquier efecto de hover que haya quedado */
#como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right:hover .ebook-thumb {
  transform: translateY(-50%) rotate(6deg);
}

/* En móviles, mantenemos el comportamiento de siempre (miniatura oculta) */
@media (max-width: 991.98px) {
  #como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right {
    padding-right: 24px !important;
  }
  #como-funciona .timeline-content.glass-card.has-ebook-thumb.thumb-right .ebook-thumb {
    display: none;
  }
}

/* ================================
   SUCCESS MODAL
   v1.0.0-2025-11-01
   Modal de éxito profesional con borde neón animado
   ================================ */

/* Overlay - fondo oscuro con 50% opacidad */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
  padding: 1rem;
}

/* Modal container con borde neón animado (matching hero-form-container) */
.success-modal-container {
  position: relative;
  padding: 4px;
  max-width: 500px;
  width: 100%;
  border-radius: 22px;
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

/* Animated gradient border layers (mismo efecto que hero form) */
.success-modal-container::before,
.success-modal-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle farthest-side at 0 100%, #00ccb1, transparent),
    radial-gradient(circle farthest-side at 100% 0, #7b61ff, transparent),
    radial-gradient(circle farthest-side at 100% 100%, #ffc414, transparent),
    radial-gradient(circle farthest-side at 0 0, #1ca0fb, #141316);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite alternate;
}

.success-modal-container::before {
  opacity: 0.8;
  filter: blur(20px);
  z-index: 1;
}

.success-modal-container::after {
  opacity: 1;
  z-index: 2;
}

/* Inner modal content */
.success-modal-inner {
  position: relative;
  z-index: 10;
  background: rgb(10, 14, 39);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  text-align: center;
}

/* Close button (X) in top-right corner */
.success-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
}

.success-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

/* Icon container */
.success-modal-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
}

/* Title */
.success-modal-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Message */
.success-modal-message {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  white-space: pre-line;
}

/* Close button */
.success-modal-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-glow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.success-modal-btn:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Auto-close timer text */
.success-modal-timer {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .success-modal-inner {
    padding: 2.5rem 2rem;
  }
  
  .success-modal-icon {
    font-size: 3rem;
  }
  
  .success-modal-title {
    font-size: 1.5rem;
  }
  
  .success-modal-message {
    font-size: 1rem;
  }
}

