/* ======= DISEÑO PREMIUM DE ALTO IMPACTO PARA CORREDORA DE SEGUROS ======= */
:root {
  /* Paleta estratégica orientada a conversión */
  --cs-blue: #0a4b85;         /* Azul confianza profundo - color primario de acción */
  --cs-blue-light: #1a6cb8;   /* Azul secundario - genera sensación de seguridad */
  --cs-blue-hover: #2481d8;   /* Azul hover - crea urgencia positiva */
  --cs-green: #3a7e30;        /* Verde confianza - asociado a seguridad financiera */
  --cs-green-accent: #4a9e3e; /* Verde acento - incentiva acciones positivas */
  --cs-black: #0a0a0a;        /* Negro rico - transmite exclusividad */
  --cs-black-light: #1a1a1a;  /* Negro secundario - profesionalismo */
  --cs-dark-gray: #2c2c2c;    /* Gris oscuro - solidez institucional */
  --cs-medium-gray: #555555;  /* Gris medio - separación visual */
  --cs-light: #ffffff;        /* Blanco - máxima legibilidad */
  --cs-light-gray: #e5e5e5;   /* Gris claro - jerarquía visual */
  --cs-header-shadow: 0 3px 12px rgba(0, 0, 0, 0.15); /* Sombra premium */
  --cs-gold: #daa520;         /* Acento dorado para elementos premium */
}

/* ==================== HEADER ESTRATÉGICO ==================== */
.cs-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px; /* Altura optimizada para logo más grande */
  background-color: var(--cs-black);
  background-image: linear-gradient(to right, rgba(10,10,10,1) 70%, rgba(10,75,133,0.05) 100%); /* Sutil gradiente para sofisticación */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  box-shadow: var(--cs-header-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 3px solid; /* Borde decorativo */
  border-image: linear-gradient(to right, var(--cs-blue) 30%, var(--cs-green) 100%) 1; /* Borde con gradiente */
}

/* Efecto de scroll - header más compacto pero preservando el logo */
.cs-header.scrolled {
  height: 90px;
  background-color: rgba(10, 10, 10, 0.97); /* Alta opacidad para mantener marca */
}

/* Área del logo - AUMENTADA */
.cs-header .logo {
  height: 95px; /* Logo más grande */
  display: flex;
  align-items: center;
  padding: 5px 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 5; /* Asegura que el logo esté siempre por encima */
}

.cs-header .logo img {
  height: 100%;
  max-height: 85px; /* Logo significativamente más grande */
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Sombra sutil para destacar logo */
}

.cs-header.scrolled .logo img {
  max-height: 70px; /* Preserva tamaño significativo al hacer scroll */
}

/* Efecto de hover suave en el logo */
.cs-header .logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25)) brightness(1.05);
}

/* Navegación principal */
.cs-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto; /* Empuja nav a la derecha */
  margin-right: 20px; /* Espacio antes del CTA */
}

.cs-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.cs-nav-item {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 6px;
}

/* Enlace de navegación */
.cs-nav-link {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 100%;
  color: var(--cs-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Efectos al pasar el cursor - diseñado para generar confianza */
.cs-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,75,133,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.cs-nav-link:hover::before {
  opacity: 1; /* Efecto más visible pero elegante */
}

.cs-nav-link:hover {
  color: var(--cs-light);
  transform: translateY(-2px); /* Efecto sutil de elevación */
}

/* Indicador debajo del elemento activo - reforzando la navegación actual */
.cs-nav-link::after {
  content: '';
  position: absolute;
  bottom: 28%; /* Posicionado en el centro para mayor impacto visual */
  left: 50%;
  width: 5px; /* Comienza como un punto */
  height: 5px; /* Forma circular */
  border-radius: 50%;
  background: var(--cs-blue-hover);
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.cs-nav-link:hover::after {
  opacity: 1;
}

.cs-nav-link.cs-active::after {
  width: 65%; /* Se expande a una línea */
  height: 3px;
  border-radius: 3px;
  bottom: 25%;
  opacity: 1;
  background: linear-gradient(to right, var(--cs-blue), var(--cs-blue-hover));
}

.cs-nav-link.cs-active {
  color: var(--cs-light);
  font-weight: 600;
}

/* Botón CTA de Siniestro - Optimizado para conversión */
.cs-cta-button {
  background-color: var(--cs-blue);
  color: var(--cs-light);
  padding: 13px 28px;
  border-radius: 3px; /* Esquinas menos redondeadas para aspecto corporativo */
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.33s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición premium */
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 15px rgba(10,75,133,0.3); /* Sombra que atrae la atención */
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-left: 15px;
}

/* Efecto de brillo para llamar la atención */
.cs-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%);
  transition: left 0.7s ease;
}

.cs-cta-button:hover {
  background-color: var(--cs-blue-hover);
  color: var(--cs-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(10,75,133,0.4);
}

.cs-cta-button:hover::before {
  left: 100%;
}

.cs-cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(10,75,133,0.3);
}

.cs-cta-button span {
  position: relative;
  z-index: 2;
}

/* Hamburger Menu */
.cs-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.cs-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--cs-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animación del hamburger */
.cs-hamburger.cs-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.cs-hamburger.cs-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-15px);
}

.cs-hamburger.cs-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== FOOTER ESTRATÉGICO ==================== */
.cs-footer {
  background-color: var(--cs-black);
  background-image: linear-gradient(to bottom, var(--cs-black) 0%, var(--cs-black-light) 100%); /* Sutil gradiente */
  color: #b0b0b0; /* Gris más legible */
  padding: 70px 0 0; /* Más espaciado superior */
  position: relative;
}

/* Elemento decorativo superior */
.cs-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--cs-blue) 0%, var(--cs-blue-light) 50%, var(--cs-green-accent) 100%);
}

.cs-footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.cs-footer-column {
  flex: 1;
  min-width: 240px;
  margin-bottom: 40px;
  padding: 0 20px;
}

/* Logo en footer - AUMENTADO */
.cs-footer-logo {
  margin-bottom: 25px;
}

.cs-footer-logo img {
  max-height: 80px; /* Logo más grande en el footer */
  width: auto;
  filter: brightness(1.05); /* Ligeramente más brillante para destacar */
  transition: all 0.3s ease;
}

.cs-footer-logo:hover img {
  transform: scale(1.02);
  filter: brightness(1.1) drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

/* Información de la empresa */
.cs-footer-company-info {
  margin-bottom: 25px;
  line-height: 1.7;
  color: #b0b0b0;
  font-size: 14px;
}

/* Certificación */
.cs-trust-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(218,165,32,0.1);
  border: 1px solid rgba(218,165,32,0.3);
  border-radius: 3px;
  padding: 8px 12px;
  margin-top: 15px;
  color: var(--cs-gold);
  font-size: 13px;
  font-weight: 500;
}

.cs-trust-badge i {
  margin-right: 8px;
  font-size: 16px;
}

/* Redes sociales */
.cs-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.cs-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--cs-dark-gray);
  color: var(--cs-light);
  border-radius: 3px; /* Menos redondeado, más profesional */
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cs-footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cs-blue) 0%, var(--cs-blue-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.cs-footer-social a:hover::before {
  opacity: 1;
}

.cs-footer-social a:hover {
  color: var(--cs-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.cs-footer-social a i {
  font-size: 17px;
  position: relative;
  z-index: 1;
}

/* Títulos de secciones */
.cs-footer-heading {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 12px;
  color: var(--cs-light);
  display: inline-block;
}

.cs-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(to right, var(--cs-blue) 0%, var(--cs-blue-light) 100%);
}

/* Enlaces */
.cs-footer-links, 
.cs-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-footer-links li, 
.cs-footer-contact li {
  margin-bottom: 15px;
}

.cs-footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 14.5px;
  position: relative;
  padding-left: 0;
}

.cs-footer-links a::before {
  content: '›'; /* Carácter que indica acción */
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.cs-footer-links a:hover {
  color: var(--cs-light);
  padding-left: 18px;
}

.cs-footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* Contacto */
.cs-footer-contact li {
  display: flex;
  align-items: flex-start;
  color: #b0b0b0;
  font-size: 14.5px;
  transition: all 0.3s ease;
}

.cs-footer-contact li:hover {
  color: var(--cs-light);
}

.cs-footer-contact li i {
  margin-right: 12px;
  color: var(--cs-blue-light); /* Color azul para consistencia */
  min-width: 18px;
  text-align: center;
  margin-top: 3px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cs-footer-contact li:hover i {
  transform: scale(1.2);
  color: var(--cs-blue-hover);
}

/* Botón de contacto en footer */
.cs-footer-cta {
  margin-top: 25px;
}

.cs-footer-cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(10,75,133,0.1);
  border: 1px solid var(--cs-blue);
  color: var(--cs-light);
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cs-footer-cta-button:hover {
  background-color: var(--cs-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cs-footer-cta-button i {
  margin-right: 8px;
}

/* Copyright */
.cs-footer-bottom {
  text-align: center;
  padding: 22px 0;
  margin-top: 30px;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.cs-footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: var(--cs-blue-light);
}

.cs-footer-bottom p {
  margin: 0;
  color: #999999;
  font-size: 13.5px;
}

.cs-footer-bottom a {
  color: var(--cs-blue-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cs-footer-bottom a:hover {
  color: var(--cs-light);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
  /* Header responsivo */
  .cs-header {
    height: 90px;
    padding: 0 4%;
  }
  
  .cs-header .logo {
    height: 75px;
  }
  
  .cs-header .logo img {
    max-height: 65px; /* Mantiene logo grande en móvil */
  }
  
  .cs-hamburger {
    display: flex;
  }
  
  .cs-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--cs-black-light);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    padding: 100px 30px 30px;
    z-index: 999;
    overflow-y: auto;
  }
  
  .cs-nav.cs-active {
    right: 0;
  }
  
  .cs-nav-list {
    flex-direction: column;
    height: auto;
  }
  
  .cs-nav-item {
    margin: 5px 0;
    height: auto;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .cs-nav-link {
    padding: 16px 0;
    height: auto;
    width: 100%;
    justify-content: flex-start;
    font-size: 16px;
  }
  
  .cs-nav-link::after {
    bottom: auto;
    top: 50%;
    left: -10px;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
  }
  
  .cs-nav-link:hover::after,
  .cs-nav-link.cs-active::after {
    width: 3px;
    height: 70%;
  }
  
  .cs-nav-link:hover {
    transform: none;
    padding-left: 8px;
  }
  
  /* Footer responsivo */
  .cs-footer-container {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .cs-footer-column {
    width: 100%;
    margin-bottom: 40px;
  }
  
  .cs-footer-column:last-child {
    margin-bottom: 20px;
  }
  
  .cs-footer-logo img {
    max-height: 65px; /* Logo sigue grande en móvil */
  }
}

@media (max-width: 576px) {
  .cs-header {
    height: 80px;
    padding: 0 15px;
  }
  
  .cs-header .logo {
    height: 65px;
  }
  
  .cs-header .logo img {
    max-height: 55px; /* Aún visible pero adaptado a móvil */
  }
  
  .cs-cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .cs-footer {
    padding-top: 50px;
  }
  
  .cs-footer-column {
    padding: 0 15px;
  }
}