/* ===================== BASE ===================== */
body { 
  font-family: 'Lato', sans-serif; 
  margin:0;
  padding:0;
  overflow-x:hidden;
  color:#333;
  padding-top:140px; /* 🔥 Espacio para que el header fijo no tape el contenido */
}
a { text-decoration:none; }

/* ===================== TOPBAR ===================== */
.topbar { 
  background:#c8102e; 
  color:white; 
  font-size:0.9rem; 
  padding:8px 0; 
}
.topbar span { margin-right:20px; }

/* ===================== HEADER ===================== */
header { 
  background:white; 
  box-shadow:0 2px 6px rgba(0,0,0,0.1); 
  position:fixed;   /* 🔥 Fijo */
  top:0;            /* Pegado arriba */
  left:0;
  width:100%;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 20px;
}
.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 ===================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 0 0 0 8px;
    padding: 1rem;
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    margin: 10px 0;
    color:#333;
  }
}

/* ===================== HERO ===================== */
.hero { 
  position:relative; 
  height:55vh; 
  overflow:hidden; 
}
.hero img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  filter:brightness(0.7); 
}
.hero .overlay { 
  position:absolute; 
  inset:0; 
  background:rgba(0,0,0,0.4); 
}
.hero-content { 
  position:absolute; 
  top:50%; 
  left:50%; 
  transform:translate(-50%,-50%); 
  color:white; 
  text-align:center; 
}
.hero-content h1 { 
  font-size:2.5rem; 
  font-weight:700; 
}
.btn-hero { 
  display:inline-block; 
  margin-top:15px; 
  background:#c8102e; 
  color:white; 
  padding:12px 28px; 
  border-radius:30px; 
  font-weight:600; 
  text-decoration:none; 
}
.btn-hero:hover { 
  background:#a50d23; 
}

/* ===================== MENSAJE EMPRESA (GRIS SUAVE + NEGRITA ROJA) ===================== */
.mensaje-empresa {
  background-color: #ededed; /* 🔹 Gris claro elegante */
  text-align: center;
  padding: 80px 20px;
  font-size: 2rem;
  color: #222;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.mensaje-empresa strong {
  color: #c8102e;   /* 🔹 Rojo institucional para lo que está en negrita */
  font-weight: 700;
}



/* ===================== SERVICIOS ===================== */
.btn-card {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #b70000, #8c0000);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(183, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.btn-card:hover {
  background: linear-gradient(135deg, #8c0000, #b70000);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(140, 0, 0, 0.5);
}

/* ===================== SINIESTRO ===================== */
.siniestro { 
  background: url('../img/Sample7.webp') center/cover no-repeat; 
  position: relative; 
}
.siniestro::before { 
  content:""; 
  position:absolute; 
  inset:0; 
  background:rgba(0,0,0,0.6); 
}
.siniestro .container { 
  position:relative; 
  z-index:2; 
}
.siniestro h2 { font-weight:700; color:#fff; }

/* ===================== SECCIÓN CONTACTO ===================== */
.info-section {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 50px;
  padding: 70px 10%;
  background: #fff;
  align-items: start;
}

/* ---------- ASEGURADORAS ---------- */
.aseguradoras {
  text-align: center;
}

.aseguradoras h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #333;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  align-items: center;
  justify-items: center;
}

.logos-grid img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(40%);
}

.logos-grid img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* ---------- FORMULARIO ESTANDAR ---------- */
.formulario-estandar {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.formulario-estandar:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.formulario-estandar .titulo-form {
  color: #c8102e;
  font-weight: 700;
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 10px;
}

.formulario-estandar .texto-form {
  color: #555;
  text-align: center;
  margin-bottom: 25px;
}

.formulario-estandar label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.formulario-estandar .form-control {
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.formulario-estandar .form-control:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.formulario-estandar .form-check-label {
  color: #555;
  font-size: 0.9rem;
}

.formulario-estandar .btn {
  background: linear-gradient(135deg, #c8102e, #a50d23);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1rem;
  width: 50%;
  transition: all 0.3s ease;
}

.formulario-estandar .btn:hover {
  background: linear-gradient(135deg, #a50d23, #c8102e);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(200, 16, 46, 0.3);
}

/* Fondo para formularios empresariales */
.fondo-empresa {
  border: 2px solid rgba(200, 16, 46, 0.15);
  background: linear-gradient(135deg, #fff, #fef2f3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .info-section {
    grid-template-columns: 1fr;
    padding: 50px 20px;
    gap: 40px;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formulario-estandar .btn {
    width: 100%;
  }
}



/* ===================== 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; }
.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: #dc3545; }
.btn-maps {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-maps:hover { background: #b02a37; }

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

.servicios-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: 2px solid var(--color-primario);
  color: var(--color-primario);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--color-primario);
  color: white;
}

/* ===================== NUESTROS SERVICIOS ===================== */
.servicios-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--color-gris-claro);
}

.servicios-section h2 {
  font-size: 2.2rem;
  color: var(--color-secundario);
  font-weight: 700;
  margin-bottom: 10px;
}

.servicios-section p {
  color: #555;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ===================== BOTONES PERSONAS / EMPRESAS (MEJORADOS) ===================== */
.servicios-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  scroll-margin-top: 120px; /* 🧩 evita que el scroll tape la sección */
}

/* ==== Botones ==== */
.tab-btn {
  background: #f2f2f2; /* 🔹 Fondo gris claro */
  border: 2px solid transparent;
  color: #333;
  padding: 0.9rem 2.4rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

/* ==== Hover ==== */
.tab-btn:hover {
  background: #fff;
  border-color: #c8102e; /* 🔹 Rojo institucional */
  color: #c8102e;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(200,16,46,0.25);
}

/* ==== Activo ==== */
.tab-btn.active {
  background: #c8102e; /* 🔹 Fondo rojo activo */
  color: #fff;
  border-color: #c8102e;
  box-shadow: 0 6px 18px rgba(200,16,46,0.4);
  transform: translateY(-2px);
}


/* ===================== GRUPOS DE CARDS ===================== */
.servicios-grupo {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 20px 20px;
  transition: opacity 0.5s ease;
}

.servicios-grupo::-webkit-scrollbar {
  height: 10px;
}

.servicios-grupo::-webkit-scrollbar-thumb {
  background: var(--color-primario);
  border-radius: 5px;
}

.servicios-grupo::-webkit-scrollbar-track {
  background: #eee;
}

/* ===================== CARD INDIVIDUAL ===================== */
.servicio-card {
  position: relative;
  flex: 0 0 300px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
  background: #fff;
  color: #333;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.servicio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

.servicio-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  z-index: 1;
}

.servicio-card .contenido {
  position: relative;
  z-index: 2;
  background: #fff;
  color: #333;
  padding: 20px;
}

.servicio-card h3 {
  color: var(--color-secundario);
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.servicio-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .servicios-grupo {
    gap: 1rem;
    padding: 0 10px 20px;
  }

  .servicio-card {
    flex: 0 0 260px;
  }
}

@media (max-width: 600px) {
  .servicio-card {
    flex: 0 0 220px;
  }

  .servicio-card img {
    height: 180px;
  }
}

