/* ═══════════════════════════════════════════════════════════════════
   VARIABLES Y CONFIGURACIÓN BASE
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Colores Oficiales Sol Gómez */
  --azul-marino: #0A2540;
  --dorado: #C9A561;
  --verde: #00A86B;
  --blanco: #FFFFFF;
  --negro: #1A1A1A;
  --gris: #666666;
  --gris-claro: #F5F5F5;
  
  /* Tipografía */
  --font-titles: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  /* Espaciados - Ajustados para Responsive */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --space-4xl: 6rem;
  
  /* Radios y sombras */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transiciones */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--negro);
  background-color: var(--blanco);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titles);
  font-weight: 700;
  line-height: 1.2;
  color: var(--azul-marino);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem; /* Padding base móvil */
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

.section {
  padding: var(--space-xl) 0; /* Menos padding en móvil */
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

.text-center { text-align: center; }
.text-dorado { color: var(--dorado); }
.text-blanco { color: var(--blanco); }

/* ═══════════════════════════════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap; /* Evita que el texto del botón se parta raro */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--dorado) 0%, #D4B876 100%);
  color: var(--azul-marino);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background-color: transparent;
  color: var(--blanco);
  border: 2px solid var(--dorado);
}

.btn-secondary:hover {
  background-color: var(--dorado);
  color: var(--azul-marino);
}

.btn-white {
  background-color: var(--blanco);
  color: var(--azul-marino);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 37, 64, 0.90);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.8rem 0;
  transition: all var(--transition-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  height: 40px; /* Logo más pequeño en móvil */
  width: auto;
  transition: height 0.3s ease;
}

@media (min-width: 768px) {
  .nav-logo { height: 60px; }
  .header { padding: var(--space-md) 0; }
  .nav-cta { gap: var(--space-md); }
}

.instagram-icon {
  color: var(--dorado);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
  z-index: 10;
  cursor: pointer;
}
.instagram-icon:hover {
  transform: scale(1.1);
  color: var(--blanco);
}
.instagram-icon svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
    .instagram-icon svg { width: 28px; height: 28px; }
}

.btn-header-custom { 
    border-radius: 15px !important; 
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}
@media (min-width: 768px) {
    .btn-header-custom {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh; /* Pantalla completa en móvil también */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  overflow: hidden;
  padding-top: 60px; /* Compensar header */
  text-align: center;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.6);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  padding-bottom: 2rem;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

/* Título responsivo usando clamp mejorado */
.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--blanco);
  padding: 0 10px;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  flex-direction: column; /* Apilados en móvil */
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 600px) {
  .hero-cta-group {
    flex-direction: row; /* Fila en tablets/PC */
    gap: var(--space-md);
  }
}

.btn-hero {
  width: 100%; /* Botones full width en móvil */
  padding: 12px 30px !important;
  font-size: 1rem !important;
  border-radius: var(--radius-md) !important;
  max-width: 300px; /* Que no se estiren demasiado */
}

/* ═══════════════════════════════════════════════════════════════════
   TRUST BAR (Responsive Grid)
   ═══════════════════════════════════════════════════════════════════ */
.trust-bar {
  padding: 3rem 0;
  background-color: var(--blanco);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-items {
  display: grid;
  /* En móvil muy pequeño 1 columna, en móvil grande 2, en desktop 4 */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 1rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.trust-item:hover { transform: translateY(-5px); }

.trust-icon {
  width: 50px;
  height: 50px;
  color: var(--dorado);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .trust-items { gap: 2.5rem; }
  .trust-icon { width: 80px; height: 80px; }
  .trust-item { padding: 1.5rem; }
}

.trust-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--azul-marino);
  line-height: 1.2;
}

.trust-text {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════
   QUIZ SECTION
   ═══════════════════════════════════════════════════════════════════ */
.quiz-section {
  background-color: var(--gris-claro);
  padding: 3rem 0;
}

@media (min-width: 768px) {
    .quiz-section { padding: var(--space-4xl) 0; }
}

.quiz-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-2xl);
}

@media (min-width: 768px) {
  .quiz-container {
      padding: var(--space-3xl);
      border-radius: var(--radius-xl);
  }
}

.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .quiz-header h2 { font-size: 2.5rem; margin-bottom: var(--space-md); }
}

.quiz-header p {
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.4;
}

.quiz-progress {
  height: 6px;
  background-color: #E5E7EB;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--dorado), #D4B876);
  width: 0%;
  transition: width var(--transition-slow);
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.3s ease-out; }

.quiz-step-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--azul-marino);
}

.quiz-options {
  display: grid;
  /* Full width en móvil, columnas en desktop */
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .quiz-options {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: var(--space-lg);
  }
}

.quiz-option {
  background: var(--blanco);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
}

.quiz-option:hover {
  border-color: var(--dorado);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.quiz-option-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-option-icon svg {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-base);
}

.quiz-option:hover .quiz-option-icon svg { transform: scale(1.1); }

.quiz-option-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--azul-marino);
}

.quiz-option-text {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.3;
}

.quiz-result {
  background: linear-gradient(135deg, var(--azul-marino) 0%, #071A2B 100%);
  color: var(--blanco);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  display: none;
}

@media (min-width: 768px) {
    .quiz-result { padding: var(--space-3xl); border-radius: var(--radius-xl); }
}

.quiz-result.active { display: block; animation: scaleIn 0.5s ease-out; }

.quiz-result-header { text-align: center; margin-bottom: 2rem; }
.quiz-result-title { font-size: 1.8rem; color: var(--blanco); margin-bottom: 0.5rem; }
.quiz-result-description { font-size: 1rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }

.quiz-result-details {
  display: grid;
  grid-template-columns: 1fr; /* Columna en móvil */
  gap: 1rem;
  background-color: rgba(0,0,0,0.2);
  color: var(--blanco);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 600px) {
    .quiz-result-details { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); padding: var(--space-xl); }
}

.quiz-result-detail-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.25rem; }
.quiz-result-detail-value { font-size: 1.1rem; font-weight: 600; color: var(--dorado); }

.quiz-result-includes { margin-bottom: 2rem; }
.quiz-result-includes h3 { color: var(--dorado); margin-bottom: 1rem; font-size: 1.2rem; }

.quiz-result-includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 600px) {
    .quiz-result-includes ul { grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-lg); }
}

.quiz-result-includes li { display: flex; align-items: start; gap: 0.5rem; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.quiz-result-includes li::before { content: '✓'; color: var(--dorado); font-weight: bold; margin-top: 2px; }

.quiz-result-cta { text-align: center; margin-bottom: 1rem; }
.quiz-back-btn { margin-top: 1rem; background: none; border: none; color: var(--gris); text-decoration: underline; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; display: block; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════════
   PROCESO (Timeline Responsive)
   ═══════════════════════════════════════════════════════════════════ */
.proceso-section {
  background: var(--blanco);
  padding: 4rem 0;
}

.proceso-header { text-align: center; margin-bottom: 3rem; }
.proceso-header h2 { font-size: 2rem; margin-bottom: 1rem; }

.proceso-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 20px;
}

/* Línea vertical: ajustada para móvil */
.proceso-timeline::before {
  content: '';
  position: absolute;
  left: 20px; /* Pegado a la izquierda en móvil */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--dorado), transparent);
}

@media (min-width: 768px) {
    .proceso-timeline::before { left: 40px; }
}

.proceso-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  align-items: flex-start;
  flex-direction: row !important;
}

@media (min-width: 768px) {
    .proceso-step { gap: 1.5rem; margin-bottom: var(--space-3xl); align-items: center; }
}

.proceso-step-number {
  flex-shrink: 0;
  width: 40px; /* Más pequeño en móvil */
  height: 40px;
  background: linear-gradient(135deg, var(--dorado), #D4B876);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azul-marino);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  margin-top: 5px; /* Alinear con título */
}

@media (min-width: 768px) {
    .proceso-step-number { width: 60px; height: 60px; font-size: 1.5rem; margin-top: 0; }
}

.proceso-step-content {
  flex: 1;
  background: var(--gris-claro);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .proceso-step-content { padding: var(--space-xl); }
}

.proceso-step-title {
  font-size: 1.2rem;
  color: var(--azul-marino);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .proceso-step-title { font-size: 1.5rem; }
}

.proceso-step-description {
  color: var(--gris);
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════
   GALERÍA ANTES/DESPUÉS
   ═══════════════════════════════════════════════════════════════════ */
.gallery-section {
  background: linear-gradient(135deg, var(--azul-marino) 0%, #071A2B 100%);
  padding: 3rem 0;
  color: var(--blanco);
}

@media (min-width: 768px) {
    .gallery-section { padding: var(--space-4xl) 0; }
}

.gallery-header { text-align: center; margin-bottom: 2rem; }
.gallery-header h2 { color: var(--blanco); font-size: 2rem; margin-bottom: 0.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
}

.gallery-card { display: flex; flex-direction: column; align-items: center; }

.comparison-container {
  width: 100%;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: ew-resize;
  user-select: none;
  margin-bottom: 1rem;
  touch-action: none; /* Importante para slider en móvil */
}

.comparison-wrapper { position: relative; width: 100%; padding-bottom: 100%; }
.comparison-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparison-after { clip-path: inset(0 50% 0 0); }
.comparison-slider { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background-color: var(--dorado); z-index: 10; transform: translateX(-50%); }

.comparison-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background-color: var(--dorado);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.comparison-handle::before { content: '⟷'; color: var(--azul-marino); font-size: 20px; font-weight: bold; }

.comparison-labels {
  position: absolute; bottom: 15px; left: 0; width: 100%;
  display: flex; justify-content: space-between; padding: 0 15px;
  z-index: 20; pointer-events: none;
}

.comparison-labels span {
  font-family: var(--font-titles);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-caption {
  font-family: var(--font-titles);
  font-size: 1.25rem;
  color: var(--dorado);
  margin-bottom: 0.5rem;
  text-align: center;
}

.testimonial-bubble {
  background-color: var(--blanco);
  color: var(--azul-marino);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  position: relative;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.testimonial-bubble::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid var(--blanco);
}

/* ═══════════════════════════════════════════════════════════════════
   DIFERENCIADORES
   ═══════════════════════════════════════════════════════════════════ */
.diferenciadores-section { background: var(--gris-claro); padding: 3rem 0; }
.diferenciadores-header { text-align: center; margin-bottom: 2rem; }
.diferenciadores-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }

.diferenciadores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 600px) {
    .diferenciadores-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
}

.diferenciador-card {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
}

.diferenciador-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.diferenciador-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--dorado), #D4B876);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  color: var(--azul-marino);
}

.diferenciador-title { font-size: 1.15rem; color: var(--azul-marino); margin-bottom: 0.5rem; }
.diferenciador-description { color: var(--gris); line-height: 1.5; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════════ */
.faq-section { background-color: var(--blanco); padding: 3rem 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 2rem; }
.faq-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }

.faq-item {
  background: var(--gris-claro);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-question {
  width: 100%; text-align: left;
  padding: 1.2rem;
  background: none; border: none;
  font-size: 1rem; font-weight: 600;
  color: var(--azul-marino); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .faq-question { padding: var(--space-lg) var(--space-xl); font-size: 1.125rem; }
}

.faq-icon { font-size: 1.5rem; color: var(--dorado); flex-shrink: 0; margin-left: 10px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 1.2rem 1.2rem; color: var(--gris); line-height: 1.5; font-size: 0.95rem; }

@media (min-width: 768px) {
    .faq-answer-content { padding: 0 var(--space-xl) var(--space-lg); }
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL CTA SECTION
   ═══════════════════════════════════════════════════════════════════ */
.final-cta-section {
  background-color: var(--dorado);
  padding: 3rem 0;
  text-align: center;
  color: var(--azul-marino);
}

.final-cta-content { max-width: 800px; margin: 0 auto; }
.final-cta-title { font-size: 2rem; margin-bottom: 1rem; color: var(--azul-marino); }
.final-cta-text { font-size: 1rem; margin-bottom: 2rem; color: var(--azul-marino); padding: 0 1rem;}

/* ═══════════════════════════════════════════════════════════════════
   MODALES Y FORMULARIO (Optimizado para móvil)
   ═══════════════════════════════════════════════════════════════════ */
.exit-intent-modal,
.form-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* Padding reducido para evitar desbordamiento */
}

.exit-intent-modal.active,
.form-modal.active { display: flex; animation: fadeIn 0.3s ease-out; }

.exit-intent-content,
.form-modal-content {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem; /* Padding interno reducido */
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  animation: scaleIn 0.3s ease-out;
}

@media (min-width: 768px) {
    .exit-intent-content, .form-modal-content { padding: 4rem; border-radius: var(--radius-xl); }
}

.form-modal-content {
  background: linear-gradient(135deg, var(--azul-marino) 0%, #071A2B 100%);
  color: var(--blanco);
}

.exit-intent-close,
.form-modal-close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: none; border: none;
  font-size: 2rem; cursor: pointer;
  line-height: 1; z-index: 10;
}

@media (min-width: 768px) {
    .exit-intent-close, .form-modal-close { top: 1rem; right: 1rem; }
}

.exit-intent-close { color: var(--azul-marino); }
.form-modal-close { color: var(--blanco); }

.form-modal-title { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--blanco); }
.form-modal-text { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-group { margin-bottom: 1rem; text-align: left; }
.form-label { display: block; margin-bottom: 0.2rem; color: var(--dorado); font-weight: 600; font-size: 0.85rem; }

.form-input {
  width: 100%; padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--blanco);
  font-size: 1rem; /* Importante 16px para evitar zoom en iOS */
  font-family: var(--font-body);
}

.form-input:focus { outline: none; border-color: var(--dorado); }

.exit-icon-container { color: var(--dorado); margin-bottom: 1rem; display: flex; justify-content: center; }
.exit-icon-container svg { width: 50px; height: 50px; }

.exit-intent-content h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--azul-marino); }
.exit-subtitle { font-size: 1rem; color: var(--gris); font-weight: 600; }
.exit-separator { width: 50px; height: 2px; background-color: var(--dorado); margin: 1rem auto; }
.exit-text { font-size: 0.95rem; color: var(--gris); margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════
   OTROS (WhatsApp, Footer)
   ═══════════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 1500;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
    .whatsapp-float { width: 60px; height: 60px; bottom: var(--space-xl); right: var(--space-xl); }
}

.whatsapp-float svg { width: 28px; height: 28px; fill: var(--blanco); }

.footer {
  background-color: var(--azul-marino);
  color: var(--blanco);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 600px) {
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left; }
}

.footer-section h3 { color: var(--dorado); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeInUpCustom { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.animate-up { opacity: 0; animation: fadeInUpCustom 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }