
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #111;
}

a {
  margin: 0 auto;
}
.alert-container {
  width: 100%;
  overflow: hidden;
  background-color: #0002fc;
  padding: 0.5rem 0;
  position: relative;
}

.alert-track {
  display: flex;
  width: fit-content;
  animation: scroll 30s linear infinite;
}

.alert {
  white-space: nowrap;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

/* Animación continua */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

header {
  background-color: white;
  padding: 1rem 2rem;
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 
  top: 0;
  z-index: 1000;
}

/* Ocultar menú en móvil y mostrar botón hamburguesa */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #0002fc;
  cursor: pointer;
}

/* En desktop, nav se muestra en línea */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Dropdown se mantiene igual para desktop */
.dropdown-content {
  position: absolute;
}

/* MEDIA QUERY para móvil */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  #menu-toggle {
    display: block;
  }

  /* Ocultar nav inicialmente en móvil */
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
  }

  /* Mostrar menú cuando activo */
  .nav-menu.active {
    display: flex;
  }

  .nav-menu a,
  .dropdown .dropbtn {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    width: 100%;
    color: #0002fc;
    font-weight: 600;
  }

  .nav-menu a:hover,
  .dropdown-content a:hover {
    background-color: #e6e6ff;
    color: #0002fc;
  }

  /* Dropdown contenido en móvil: desplegable con click */
  .dropdown-content {
    position: static;
    box-shadow: none;
    padding: 0;
    display: none;
    flex-direction: column;
    background: #f9f9ff;
    border-radius: 0 0 8px 8px;
  }

  /* Mostrar dropdown al añadir clase active */
  .dropdown.active .dropdown-content {
    display: flex;
  }

  /* Dropdown botón en móvil */
  .dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  /* Ocultar el hover de dropdown en móvil */
  .dropdown:hover .dropdown-content {
    display: none;
  }
}

.logo {
  width: 150px;
  height: 80px;
}

nav a {
  color: #0002fc;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

/* Contenedor del menú desplegable */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Botón principal */
.dropbtn {
  cursor: pointer;
  color: #0002fc;
  font-weight: 600;
  text-decoration: none;
  margin-left: 1.5rem;
}

/* Contenido del dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 6px;
  padding: 0.5rem 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Enlaces dentro del dropdown */
.dropdown-content a {
  color: #000;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

/* Efecto al pasar el mouse */
.dropdown-content a:hover {
  background-color: #e6e6ff;
  color: #0002fc;
  font-weight: 600;
}

/* Mostrar el menú al hacer hover */
.dropdown:hover .dropdown-content {
  display: block;
}

nav a:hover {
  color: #e60000;
}

.horarios {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.horarios p {
  display: flex;
  gap: 0.5rem;

  margin: 0;
}

.horarios a {
  color: #0000cc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.hero {
  background-image: url("./img/equipo.png");
  background-size: cover;
  background-position: top left;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.548);
  z-index: 1;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content a {
  background-color: #0000cc;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero-content a:hover {
  background-color: #0000cc;
}

/* servicios  */

.servicios {
  width: 100%;
  margin: -10px auto;
  padding: 4rem 2rem;
  gap: 3rem;
  display: flex;
  justify-content: center;
  text-align: center;
  background-color: #f8f9fa;
}

.servicio {
  border: 1px solid #ddd;
  padding: 3rem 2rem;
  margin-top: -8rem;
  z-index: 99;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.servicio i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #7c7b7b;
}

.servicio h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;

  color: #0000cc;
}

.refuerzo {
  width: 100%;
  margin: -10px auto;
  padding: 4rem 2rem;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.refuerzo h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e60000;
}

.refuerzo p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.beneficios {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.beneficio {
 

  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 250px;
 
  text-align: center;
  transition: transform 0.3s ease;
}

.beneficio:hover {
  transform: translateY(-5px);
}

.beneficio i {
  font-size: 2.5rem;
  color: #7c7b7b;
  margin-bottom: 1rem;
}

.beneficio h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #e60000;
}

.beneficio p {
  font-size: 1rem;
  color: #333;
}



/* contacto */


.contacto {
  width: 90%;
  max-width: 1200px;
  margin: 4rem auto;
 
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 2rem;

  
}



.ambulance-image {
  width: 30%;
  height: 25%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Efecto de difuminado arriba y abajo */
.image-wrapper::before,
.image-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.image-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0.87), rgba(248, 249, 250, 0));
}

.image-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(248, 249, 250, 0.822), rgba(248, 249, 250, 0));
}

.contact-info {
  flex: 1;
  color: #333;
 
}

.contact-h2 {
  
  color: #e60000;
  font-size: 1.2rem;
  font-weight: 600;
  
 
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.contact-p {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0000cc;
  margin-bottom: 1rem;
 
}


.contact-info {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

.btn-contact {
  background-color: #0000cc;
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 2rem;
}

.btn-contact:hover {
  background-color: #0000cc;
}


@media (max-width: 768px) {
  .contacto {
    flex-direction: column;
    text-align: center;
  }

  .ambulance-image {
    width: 100%;
    max-height: 250px;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  .btn-contact {
    margin-top: 1rem;
  }
}

/* equipo  */


.equipo {
  background-color: #f8f9fa;
  padding: 4rem 2rem;
}

.equipo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.equipo-imagen img {
  width: 300px;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.equipo-info {
  flex: 1;
}

.equipo-label {
  color: #e60000;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.equipo-info h2 {
  font-size: 2.5rem;
  color: #0000cc;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.equipo-descripcion {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 700px;
}

.equipo-destacados {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.destacado {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.destacado img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.destacado h3 {
  font-size: 1.1rem;
  color: #0000cc;
  margin-bottom: 0.5rem;
}

.destacado p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}
/* services */


.info-services {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.info-container {
  max-width: 1100px;
  margin: 0 auto;
}

.info-title {
  font-size: 2.5rem;
  color: #0000cc;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.info-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #e60000;
}

.card i {
  font-size: 2rem;
  margin-right: 0.5rem;
  color: #0000cc;
}

.card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* socios  */

.afiliacion {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
}

.afiliacion-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.afiliacion-texto h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  color: #007bff;
  margin-bottom: 16px;
}

.afiliacion-texto p {
  font-size: 16px;
  color: #333;
  margin-bottom: 35px;
  line-height: 1.6;
}

.btn-afiliarse {
  background-color: #e60000;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  margin-top: 20re;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-afiliarse:hover {
  background-color: #0000cc;
}

.afiliacion-imagen img {
  max-width: 260px;
  height: auto;
}

/* footer */

/* === Footer === */
.footer {
  background-color: #0000cc;
  color: #fff;
  padding: 30px 20px;
  font-size: 14px;
  text-align: center;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}


.footer-info i {
  margin-right: 8px;
  color: white;
  
  
}

.footer-desarrollador a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer-desarrollador a:hover {
  text-decoration: underline;
}



/* Responsive */
@media (max-width: 768px) {
  .equipo-container {
    flex-direction: column;
    align-items: center;
  }

  .destacado {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .destacado img {
    margin-bottom: 0.5rem;
  }
}
.icono-destacado {
  font-size: 2.5rem;
  color: #e60000;
  margin-right: 1rem;
  flex-shrink: 0;
}



@media (min-width: 768px) {
  .afiliacion-container {
    flex-direction: row;
    text-align: left;
  }

  .afiliacion-texto {
    flex: 1;
  }

  .afiliacion-imagen {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 320px;
  }
}

/* wpp y top button */
#whatsappButton {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 101;
  background-color: #25d366;
  color: white;
  font-size: 24px;
  border-radius: 50%;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#whatsappButton:hover {
  background-color: #1ebe5d;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #007bff;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: none;
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #0056b3;
}



/* responsive  */



/* Pantallas grandes (entre 1024px y 1400px) */
@media (max-width: 1400px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .beneficio {
    max-width: 220px;
  }
}

/* Pantallas medianas (tablets y laptops pequeñas) */
@media (max-width: 992px) {
  header {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav a,
  .dropbtn {
    margin: 0.5rem 0;
  }

  .servicios {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .refuerzo {
    padding: 3rem 1.5rem;
  }

  .beneficio {
    max-width: 45%;
  }

  .equipo-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .equipo-imagen img {
    width: 100%;
    max-width: 300px;
  }

  .equipo-info {
    padding: 1rem;
  }

  .destacado {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .icono-destacado {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .horarios {
    flex-direction: column;
    gap: 0.5rem;
  }

  .servicio {
    padding: 2rem 1rem;
    margin-top: 0;
  }

  .beneficio {
    max-width: 90%;
  }

  .card {
    padding: 1.5rem;
    width: 100%;
  }

  .info-title {
    font-size: 2rem;
  }

  .info-subtitle {
    font-size: 1rem;
  }

  .contact-p {
    font-size: 1.8rem;
  }

  .btn-contact {
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 576px)  {

  .horarios  {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: start;
  }
  
}