/* ===================== VARIABLES ===================== */
:root {
  --color-primario: #c8102e; /* Rojo */
  --color-secundario: #111;  /* Negro */
  --color-blanco: #fff;
  --color-gris-claro: #f5f5f5;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* ===================== BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
  color: #333;
  background: #fff;
  padding-top: 120px; /* espacio para el header fijo */
  scroll-behavior: smooth;
}
a { text-decoration: none; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--color-primario);
  color: var(--color-blanco);
  font-size: 0.9rem;
  padding: 8px 0;
  text-align: center;
  animation: fadeInDown 1s ease;
}
.topbar span { margin-right: 20px; }

/* ===================== HEADER ===================== */
header {
  background: var(--color-blanco);
  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 30px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.logo { display: flex; align-items: center; }
.logo img {
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

/* ===================== 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: var(--color-primario);
  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;
  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: var(--color-primario);
  color: var(--color-blanco);
}
.btn-ayuda {
  border: 1px solid var(--color-primario);
  border-radius: 30px;
  padding: 6px 18px;
  color: var(--color-primario) !important;
  font-weight: 600;
}
.btn-ayuda:hover {
  background: var(--color-primario);
  color: white !important;
}

/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 240px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 0 0 0 12px;
    padding: 1rem;
    z-index: 1001;
  }
  .nav-links.active { display: flex; animation: fadeIn 0.5s ease; }
  .nav-links a {
    margin: 10px 0;
    color: #333;
  }
}

/* ------------------ SECCIÓN NEGRA ------------------ */
.aseguradoras-header {
  background: var(--color-secundario);
  color: var(--color-blanco);
  text-align: center;
  padding: 80px 20px 60px;
  animation: fadeInUp 1.2s ease;
}
.aseguradoras-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.aseguradoras-header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
  color: #ccc;
}

/* ------------------ ASEGURADORAS ------------------ */
.aseguradoras {
  padding: 70px 20px;
  background: var(--color-blanco);
}
.aseguradoras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.aseguradora-box {
  background: var(--color-gris-claro);
  border-radius: var(--radius);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeInUp 1.2s ease;
}
.aseguradora-box:hover {
  background: var(--color-blanco);
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.aseguradora-box img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto 18px;
}
.aseguradora-box h3 {
  font-size: 1.2rem;
  color: var(--color-primario);
  margin-bottom: 18px;
}
.btn-pago {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  color: var(--color-blanco);
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
}
.btn-pago:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--color-secundario), var(--color-primario));
}

/* ------------------ RESPONSIVE ASEGURADORAS ------------------ */
@media (max-width: 1024px) {
  .aseguradoras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .aseguradoras-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------ BANNER PAGOS ------------------ */
.banner-pagos {
  position: relative;
  width: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-blanco);
  background: url("../img/banner-pagos.jpg") no-repeat center center/cover;
  overflow: hidden;
}
.banner-pagos .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.8), rgba(17,17,17,0.8));
  z-index: 0;
}
.banner-contenido {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  animation: fadeIn 1.5s ease;
}
.banner-contenido h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.banner-contenido p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}
.banner-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.btn-banner {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-blanco);
  color: var(--color-primario);
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-banner:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}
.btn-banner.btn-alt {
  background: transparent;
  border: 2px solid var(--color-blanco);
  color: var(--color-blanco);
}
.btn-banner.btn-alt:hover {
  background: var(--color-blanco);
  color: var(--color-primario);
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-secundario);
  color: var(--color-blanco);
  font-size: 0.9rem;
  padding: 40px 20px;
  animation: fadeInUp 1.2s ease;
}
footer h2 { font-size: 1.2rem; }
footer a { color: var(--color-blanco); text-decoration: none; }
footer a:hover { color: var(--color-primario); }
.partner-logo { max-height: 50px; opacity: 0.8; transition: 0.3s; }
.partner-logo:hover { opacity: 1; }
.footer-logo { max-width: 120px; height: auto; }
.footer-logo + h2 { font-size: 1.2rem; }
.social-links a { font-size: 1.5rem; margin-right: 10px; color: #fff; }
.social-links a:hover { color: var(--color-primario); }
.btn-maps {
  display: inline-block;
  background: var(--color-primario);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-maps:hover { background: #a50e25; }

/* ===================== 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;
}
.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); }
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
