/*
Theme Name: SaludPrepagada - Nubank Style FIXED
Theme URI: https://saludprepagada.com
Description: Tema minimalista tipo Nubank - VERSIÓN CORREGIDA
Author: Diego - SaludPrepagada
Template: astra
Version: 2.2
License: GPL v2 or later
*/

:root {
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --secondary: #10b981;
  --accent: #ef4444;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

.hero-section {
  width: 100%;
  margin: 0;
  padding: 120px 20px;
  max-width: 100vw;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  font-size: 16px;
}

h1 { font-size: 56px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 42px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 28px; font-weight: 700; line-height: 1.3; }
h4 { font-size: 22px; font-weight: 600; }

p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-lighter);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .site-logo-wrapper {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========================================
   HERO SECTION - CORREGIDO
   ======================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.hero-content h1 {
  color: white;
  font-size: 64px;
  margin-bottom: 20px;
  font-weight: 800;
  animation: fadeInDown 0.8s ease;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  margin-bottom: 50px;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary, .btn-secondary {
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  font-weight: 700;
}

.btn-secondary:hover {
  transform: translateY(-4px);
  background: var(--bg-light);
}

/* ========================================
   SECTION PADDING - CORREGIDO
   ======================================== */

.comparador-section,
.cotizador-section,
.como-funciona-section,
.testimonios-section,
.faq-section,
.blog-section {
  padding: 100px 20px;
  margin: 0;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* ========================================
   COMPARADOR DE PLANES
   ======================================== */

.comparador-section {
  background: var(--bg-lighter);
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.plan-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 16px 16px 0 0;
}

.plan-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.plan-logo {
  width: 70px;
  height: 70px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.plan-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.plan-subtitle {
  color: var(--text-lighter);
  font-size: 12px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.plan-price {
  font-size: 36px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-price-note {
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 35px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
}

.plan-features li {
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-lighter);
  color: var(--text-dark);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  font-weight: 500;
}

.plan-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 800;
  margin-right: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.plan-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* ========================================
   COTIZADOR
   ======================================== */

.cotizador-section {
  background: white;
  max-width: 100%;
}

.cotizador-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-lighter);
  border-radius: 20px;
  padding: 60px 40px;
  border: 1px solid var(--border);
}

.cotizador-container h2 {
  text-align: center;
  margin-bottom: 15px;
}

.cotizador-container > p {
  text-align: center;
  margin-bottom: 50px;
  font-size: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 15px;
}

.form-group input,
.form-group select {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.resultado-precio {
  background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
  color: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin: 40px 0;
}

.resultado-precio p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-size: 16px;
}

.resultado-precio strong {
  display: block;
  font-size: 48px;
  color: white;
  font-weight: 800;
  margin-bottom: 10px;
}

.cotizador-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cotizador-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

/* ========================================
   CÓMO FUNCIONA
   ======================================== */

.como-funciona-section {
  background: var(--white);
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.paso-card {
  text-align: center;
  position: relative;
}

.paso-numero {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  margin: 0 auto 30px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.paso-card h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.paso-card p {
  color: var(--text-light);
  font-size: 16px;
}

/* ========================================
   TESTIMONIOS
   ======================================== */

.testimonios-section {
  background: var(--bg-lighter);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.testimonio-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonio-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.testimonio-texto {
  color: var(--text-dark);
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.7;
  font-weight: 500;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.testimonio-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonio-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: var(--text-dark);
}

.testimonio-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-lighter);
}

/* ========================================
   FAQ
   ======================================== */

.faq-section {
  background: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px !important;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  padding: 24px;
  background: var(--bg-lighter);
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--text-dark);
  font-size: 16px;
}

.faq-question:hover {
  background: var(--white);
  color: var(--primary);
}

.faq-question::after {
  content: '▼';
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--text-lighter);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
  color: white;
}

.faq-answer {
  padding: 24px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  display: none;
  background: white;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   BLOG
   ======================================== */

.blog-section {
  background: var(--bg-lighter);
}

.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.articulo-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.articulo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.articulo-imagen {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 56px;
}

.articulo-contenido {
  padding: 30px;
}

.articulo-meta {
  font-size: 12px;
  color: var(--text-lighter);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.articulo-card h3 {
  margin: 12px 0;
  font-size: 20px;
  color: var(--text-dark);
}

.articulo-excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.articulo-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ========================================
   WHATSAPP BUTTON
   ======================================== */

.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp-button:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 20px 30px;
  margin-top: 0;
  width: 100%;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 18px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
  .cotizador-container {
    padding: 60px;
  }
  
  h1 { font-size: 64px; }
  h2 { font-size: 42px; }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
  
  .hero-content h1 {
    font-size: 48px;
  }
  
  .comparador-section,
  .cotizador-section,
  .como-funciona-section,
  .testimonios-section,
  .faq-section,
  .blog-section {
    padding: 60px 20px;
  }
  
  .cotizador-container {
    padding: 40px;
  }
  
  .plan-card,
  .testimonio-card,
  .articulo-card {
    padding: 30px;
  }
  
  .pasos-grid {
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-button {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 18px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  p {
    font-size: 16px;
  }
  
  .plan-card {
    padding: 25px;
  }
  
  .cotizador-container {
    padding: 25px;
  }
  
  .pasos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================
   ARREGLO PARA CONFLICTOS CON ASTRA
   ======================================== */

.site-content {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden;
}

.ast-container {
  max-width: 100% !important;
  width: 100% !important;
}

body {
  overflow-x: hidden !important;
}

.hero-section {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 120px 20px !important;
    min-height: 100vh !important;
  }
}