/* ===================== BASE ===================== */
body { 
  font-family: 'Lato', sans-serif; 
  margin:0;
  padding:0;
  overflow-x:hidden;
  color:#333;
  background:#f8f9fa;
  padding-top:140px;
}
a { text-decoration:none; transition:0.3s; }
h1,h2,h3,h4 { font-weight:700; }

/* ===================== 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;   
  top:0;            
  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;
}
.nav-links a.active {
  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 (MEJORADO 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;
  }
}

/* ===================== SECCIÓN NOSOTROS ===================== */
.nosotros h1 {
  font-size:2.5rem;
  color:#c8102e;
}
.nosotros p {
  font-size:1.05rem;
  line-height:1.7;
}
.nosotros h3 {
  color:#111;
  margin-bottom:15px;
}
.nosotros h4 {
  color:#c8102e;
  margin-top:20px;
  margin-bottom:10px;
}
.nosotros ul {
  list-style:none;
  padding:0;
}
.nosotros ul li {
  margin-bottom:8px;
  font-size:1rem;
  color:#444;
}

/* ===================== FOOTER ===================== */
footer { 
  background: #111;  
  color: #fff;       
  font-size: 0.9rem;
  padding: 40px 20px;
}
footer h2, footer h5 { font-size: 1.2rem; font-weight:700; }
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;
  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%;
}