/* ===================== RESET Y BASE ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body { 
  font-family: 'Lato', sans-serif; 
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #333;
  padding-top: 140px;
  width: 100%;
  max-width: 100vw;
}

a { text-decoration: none; }

/* ===================== TOPBAR ===================== */
.topbar { 
  background: #c8102e; 
  color: white; 
  font-size: 0.9rem; 
  padding: 8px 0;
  width: 100%;
  box-sizing: border-box;
}

.topbar .container {
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.topbar span { 
  margin-right: 20px;
  display: inline-block;
}

/* ===================== HEADER ===================== */
header { 
  background: white; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
}

.logo img { 
  max-height: 120px; 
  width: auto; 
}

/* ===================== MENÚ HAMBURGUESA ===================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  background: none;
  border: none;
  outline: none;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #c8102e;
  margin: 6px auto;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== NAV ===================== */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-links a {
  color: #333;
  margin: 0 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: #c8102e;
  color: #fff;
}

.btn-ayuda {
  border: 1px solid #c8102e;
  border-radius: 30px;
  padding: 6px 18px;
  color: #c8102e !important;
  font-weight: 600;
}

.btn-ayuda:hover {
  background: #c8102e;
  color: white !important;
}

/* ===================== RESPONSIVE NAV (CORREGIDO CON ANIMACIÓN) ===================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
    position: fixed !important;
    top: 25px !important;
    right: 20px !important;
    z-index: 2001 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
  }
  
  /* Menú móvil en pantalla completa con fondo NEGRO y animación */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    background-color: #000 !important;
    padding: 80px 20px 20px 20px !important;
    z-index: 2000 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    gap: 15px !important;
    transition: left 0.4s ease-in-out !important;
  }
  
  .nav-links.active {
    left: 0 !important;
    display: flex !important;
  }
  
  /* Todos los enlaces del menú móvil - TEXTO BLANCO */
  .nav-links a {
    display: block !important;
    width: 90% !important;
    max-width: 280px !important;
    margin: 6px auto !important;
    padding: 10px 15px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    background: transparent !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
  }
  
  /* Botón "Iniciar Sesión" - DESTACADO EN ROJO */
  .nav-links a.btn-ayuda {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 80% !important;
    max-width: 250px !important;
    margin: 15px auto !important;
    padding: 11px 20px !important;
    background: #c8102e !important;
    color: #ffffff !important;
    border: 2px solid #c8102e !important;
    border-radius: 25px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(200, 16, 46, 0.4) !important;
    transform: scale(1) !important;
    position: relative !important;
  }
  
  .nav-links a.btn-ayuda:hover {
    background: #a50d23 !important;
    color: #ffffff !important;
    transform: scale(1.03) !important;
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.6) !important;
  }
  
  /* Barras del botón hamburguesa - siempre visibles */
  .menu-toggle span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: #c8102e !important;
    margin: 6px auto !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
  }
  
  /* Cuando el menú está activo, las barras se convierten en X ROJA */
  .menu-toggle.active span {
    background: #c8102e !important;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
}

/* ===================== HERO VEHÍCULO ===================== */
.service-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url('../../Milenio/img/sample8.webp') center/cover no-repeat;
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

/* ===================== BENEFICIOS AUTOS ===================== */
.beneficios {
  background-color: #f9fafb;
}

.beneficio-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.beneficio-card i {
  font-size: 42px;
  color: var(--color-primario, #c8102e);
  margin-bottom: 15px;
}

.beneficio-card h5 {
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.beneficio-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.beneficio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

/* ===================== SECCIÓN SOAT ===================== */
.soat-section {
  position: relative;
  background: url('../img/Sample3.webp') center/cover fixed no-repeat;
  text-align: center;
  padding: 180px 20px;
  color: #fff;
  overflow: hidden;
}

.soat-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(200,16,46,0.7), rgba(0,0,0,0.7));
  z-index: 1;
  backdrop-filter: blur(2px);
}

.soat-section .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.soat-section h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.soat-section p {
  font-size: 1.2rem;
  color: #f8f8f8;
  margin-bottom: 45px;
  line-height: 1.6;
}

.btn-soat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #c8102e;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 45px;
  border-radius: 40px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.btn-soat:hover {
  background: #c8102e;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(200,16,46,0.5);
}

/* Ajustes responsivos para SOAT */
@media (max-width: 768px) {
  .soat-section { padding: 100px 20px; background-attachment: scroll; }
  .soat-section h1 { font-size: 2rem; }
  .btn-soat { padding: 12px 28px; font-size: 1rem; }
}

/* ===================== FOOTER ===================== */
footer {
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  padding: 40px 20px;
}
footer h2 { font-size: 1.2rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: #dc3545; }
.footer-logo { max-width: 120px; height: auto; }
.social-links a { font-size: 1.5rem; margin-right: 10px; color: #fff; }
.social-links a:hover { color: #dc3545; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position:fixed;
  bottom:20px;
  right:20px;
  background:#25D366;
  border-radius:50%;
  width:65px;
  height:65px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 15px rgba(0,0,0,0.3);
  transition:transform .3s ease;
  z-index:1000;
  animation:bounce 3s infinite;
  overflow:hidden;
}
.whatsapp-float:hover { transform:scale(1.1); }
.whatsapp-float img { width:35px; height:35px; }

@keyframes bounce {
  0%, 100% { transform:translateY(0); }
  50% { transform:translateY(-5px); }
}

/* ===================== FIX GLOBAL ===================== */
html, body {
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===================== SEGURO DE SALUD ===================== */
.salud-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url('../img/Sample2.webp') center/cover no-repeat;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #fff;
  text-align: center;
}

.salud-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.salud-hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.salud-hero .btn {
  background: #fff;
  color: #c8102e;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  padding: 0.8rem 2rem;
  border: none;
}

.salud-hero .btn:hover {
  background: #c8102e;
  color: #fff;
}

.salud-info i {
  flex-shrink: 0;
}

.slash-milenio {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url('../img/Sample7.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.slash-milenio h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.slash-milenio p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.info-form-salud {
  background: #fff;
  margin: 0;
  padding: 80px 20px 40px 20px;
  text-align: center;
}

.formulario-estandar {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.formulario-estandar h2 {
  font-weight: 700;
  color: #c8102e;
  margin-bottom: 10px;
}

.formulario-estandar p {
  color: #555;
  margin-bottom: 25px;
}

.formulario-estandar .btn {
  background: #c8102e;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 35px;
  transition: all 0.3s ease;
  border: none;
}

.formulario-estandar .btn:hover {
  background: #a50c25;
}

.frase-form {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #666;
  font-style: italic;
  text-align: center;
}

@media (max-width: 992px) {
  .salud-hero {
    height: 50vh;
    padding: 2rem 1rem;
  }

  .coberturas-beneficios {
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
  }

  .coberturas,
  .beneficios {
    max-width: 100%;
  }

  .formulario-estandar {
    padding: 30px;
  }

  .slash-milenio {
    padding: 4rem 1rem;
  }
}

/* ===================== VIDA DOCENTE ===================== */
.vida-hero {
  background: 
    linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(200, 16, 46, 0.85)),
    url('../img/Sample7.webp') center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.vida-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
  opacity: 0.4;
}

.vida-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.vida-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  color: #f2f2f2;
}

.division-roja {
  height: 8px;
  background: linear-gradient(to right, #c8102e, #ff4d4d, #c8102e);
}

.division-gris {
  height: 8px;
  background: linear-gradient(to right, #dcdcdc, #f5f5f5, #dcdcdc);
}

.division-oscura {
  height: 8px;
  background: linear-gradient(to right, #111, #c8102e, #111);
}

.vida-intro {
  background: linear-gradient(145deg, #ffffff 0%, #f5f6f8 50%, #e8eaed 100%);
  padding: 5rem 1rem;
  text-align: center;
}

.vida-intro h2 {
  color: #c8102e;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.vida-intro p {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  font-size: 1.15rem;
  line-height: 1.9;
}

.vida-casos {
  background: linear-gradient(120deg, #f9fafc, #ffffff, #f4f6f8);
  padding: 5rem 0;
}

.vida-casos .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.vida-casos .texto {
  flex: 1;
  min-width: 300px;
}

.vida-casos .texto h2 {
  color: #c8102e;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.vida-casos .texto ul {
  list-style: none;
  padding: 0;
}

.vida-casos .texto li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  color: #333;
}

.vida-casos .texto i {
  color: #c8102e;
  margin-right: 10px;
  font-size: 1.3rem;
}

.vida-casos img {
  flex: 1;
  max-width: 480px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vida-casos img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.vida-coberturas {
  background: linear-gradient(180deg, #fff 0%, #f3f4f6 50%, #e9ebee 100%);
  padding: 5rem 1rem;
  text-align: center;
}

.vida-coberturas h2 {
  color: #c8102e;
  font-weight: 800;
  margin-bottom: 1rem;
}

.vida-coberturas p {
  color: #555;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.vida-coberturas .card {
  border: none;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f9f9f9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.vida-coberturas .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #fff, #f1f1f1);
}

.vida-coberturas i {
  font-size: 2.8rem;
  color: #c8102e;
  margin-bottom: 15px;
}

.vida-form {
  background: linear-gradient(160deg, #eef0f3, #ffffff 50%, #f4f6f9);
  padding: 5rem 0;
}

.vida-form h2 {
  color: #c8102e;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.2rem;
}

.vida-form p {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
}

.vida-form form {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.vida-form form:hover {
  transform: scale(1.02);
}

.vida-form .btn {
  background-color: #c8102e;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.vida-form .btn:hover {
  background-color: #a40d25;
  transform: scale(1.05);
}

.vida-final {
  background: linear-gradient(180deg, #c8102e, #440000);
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}

.vida-final h2 {
  font-weight: 800;
  margin-bottom: 1rem;
}

.vida-final p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #f2f2f2;
}

@media (max-width: 992px) {
  .vida-hero {
    min-height: 50vh;
    padding: 3rem 1rem;
  }

  .vida-casos .contenedor {
    flex-direction: column;
    text-align: center;
  }

  .vida-casos .texto {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .vida-casos img {
    max-width: 100%;
  }

  .vida-form form {
    padding: 1.5rem;
  }
}

/* ===================== HERO HOGAR ===================== */
.hogar-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../img/Sample4.webp') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hogar-hero .hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hogar-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hogar-hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.hogar-hero .btn-primary {
  background-color: #c8102e;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.hogar-hero .btn-primary:hover {
  background-color: #a60d25;
}

.hogar-section {
  background-color: #f8f9fa;
  padding: 80px 20px;
  text-align: center;
}

.hogar-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.hogar-coverages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-content: center;
}

.hogar-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hogar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hogar-card i {
  font-size: 2.5rem;
  color: #c8102e;
  margin-bottom: 15px;
}

.hogar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #222;
  font-weight: 600;
}

.hogar-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hogar-hero {
    padding: 70px 15px;
  }

  .hogar-hero h1 {
    font-size: 2.2rem;
  }

  .hogar-section {
    padding: 60px 15px;
  }

  .form-container {
    grid-template-columns: 1fr;
  }

  .hogar-card {
    padding: 25px 15px;
  }
}

/* ===================== FORMULARIO ESTÁNDAR ===================== */
.formulario-estandar {
  max-width: 900px;
  margin: 50px auto;
  background: #fff5f5;
  padding: 40px 50px;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  border: 1px solid #f3dcdc;
}

.fondo-empresa {
  background: linear-gradient(to bottom right, #fff5f5, #ffe9e9);
}

.titulo-form {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #c8102e;
}

.texto-form {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.formulario-estandar label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

.formulario-estandar .form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.formulario-estandar .form-control:focus {
  border-color: #c8102e;
  box-shadow: 0 0 6px rgba(200, 16, 46, 0.3);
}

.formulario-estandar .form-check-label {
  color: #444;
  font-size: 0.9rem;
}

.formulario-estandar .btn {
  background: linear-gradient(90deg, #c8102e, #a50d23);
  color: #fff;
  border: none;
  padding: 14px 0;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.formulario-estandar .btn:hover {
  background: linear-gradient(90deg, #a50d23, #c8102e);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(200, 16, 46, 0.3);
}

@media (max-width: 768px) {
  .formulario-estandar {
    padding: 25px;
  }

  .titulo-form {
    font-size: 1.6rem;
  }
}