/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
  --primary: #004b87;
  --primary-dark: #0f3a56;
  --secondary: #f28b20;
  --green-plan: #2ba954;
  --bg-light-blue: #f4f7fb;
  --bg-light-orange: #fff8f0;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #ffffff;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5a;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* =========================================
   BOTONES
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 0;
}

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

.btn-primary:hover {
  background-color: #d67a1b;
  transform: translateY(-2px);
}

.btn-wsp {
  background-color: var(--whatsapp);
  color: var(--white);
  padding: 14px 32px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-wsp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* =========================================
   CABECERA (HEADER) Y NAVEGACIÓN
   ========================================= */
.navbar {
  background-color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eaeaea;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-icon {
  font-size: 2.2rem;
  color: var(--primary);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  line-height: 1.1;
}

.logo span {
  color: var(--green-plan);
}

.logo-subtext {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-top: 2px;
}

.nav-links {
  display: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* =========================================
   SECCIÓN HERO (Banner Principal)
   ========================================= */
.hero {
  margin-top: 90px;
  padding: 100px 0;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.85) 0%, rgba(50, 50, 50, 0.6) 50%, rgba(255,255,255,0) 100%),
    url('./familia.png') center/cover;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content {
  color: var(--white);
  max-width: 650px;
}

.hero h1 {
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 35px;
  line-height: 1.5;
  color: #f1f1f1;
}

/* =========================================
   SECCIÓN: METODOLOGÍA (Pasos)
   ========================================= */
.steps-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.step-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =========================================
   SECCIÓN: COMPARATIVA
   ========================================= */
.comparative-section {
  padding: 80px 0;
  background-color: var(--white);
}

.comparative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.comp-card {
  border-radius: 16px;
  padding: 40px 30px;
}

.card-isapre {
  background-color: var(--bg-light-blue);
  border: 1px solid #e2e8f0;
}

.card-seguro {
  background-color: var(--bg-light-orange);
  border: 2px solid var(--secondary);
  box-shadow: 0 10px 30px rgba(242, 139, 32, 0.1);
}

.comp-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

.card-isapre .comp-icon {
  color: #64748b;
}

.card-seguro .comp-icon {
  color: var(--secondary);
}

.comp-card h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.comp-list {
  list-style: none;
}

.comp-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.icon-red {
  color: #ef4444;
  font-size: 1.1rem;
}

.icon-green {
  color: var(--whatsapp);
  font-size: 1.1rem;
}

/* =========================================
   SECCIÓN: CTA (Llamado a la acción)
   ========================================= */
.cta-section {
  background-color: var(--primary-dark);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: #d1e8f5;
  font-size: 1.1rem;
  margin-bottom: 35px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: #0b1e2d;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo p {
  color: #a0aec0;
  margin-top: 10px;
  font-size: 0.95rem;
}

.footer-contact h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-contact p {
  color: #a0aec0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1f364d;
  color: #a0aec0;
  font-size: 0.9rem;
}

/* =========================================
   WIDGET WHATSAPP FLOTANTE
   ========================================= */
.floating-wsp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp);
  color: var(--white);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
}

.floating-wsp:hover {
  transform: scale(1.08);
  background-color: var(--whatsapp-hover);
}

/* =========================================
   MEDIA QUERIES (Desktop)
   ========================================= */
@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .comparative-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
