/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* --- HEADER ESTILOS --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease-in-out;
  z-index: 1000;
}

/* Header transparente al inicio */
header.transparent {
  background: transparent;
}

/* Header con fondo sólido al hacer scroll */
header.solid {
  background: #1a3875; /* Azul sólido */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contenedor del header: Distribución correcta */
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribuye los elementos correctamente */
}

/* Logo y texto "Sede EDOMX" */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-container img {
  height: 40px; /* Ajusta el tamaño del logo */
  margin-right: 10px;
}

.sede-text {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Menú de navegación centrado */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex: 1; /* Esto hará que el menú ocupe el centro */
  text-align: center;
  padding: 0;
}

.nav-links li {
  margin: 0 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #ffcccb;
}

/* Botón de Iniciar Sesión alineado a la derecha */
.login-btn {
  background: #d32f2f;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.login-btn:hover {
  background: #a62828;
}

/* HERO SECTION */
/* --- HERO SECTION ESTILOS --- */
.hero {
  height: 90vh; /* Ocupar casi toda la pantalla */
  background: url("../img/hero1.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  position: relative;
}

/* Filtro de opacidad para mejorar legibilidad del texto */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Oscurece la imagen para mejor contraste */
}

/* Ajustar el contenido para que esté por encima del filtro */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Estilos del texto */
.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}

/* Responsividad */
@media (max-width: 1024px) {
  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

/* --- HERO BUTTON ESTILOS --- */
.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ffffff; /* Fondo blanco */
  color: #d32f2f; /* Texto rojo */
  text-decoration: none; /* Eliminar subrayado */
  font-weight: bold;
  font-size: 18px;
  border: 2px solid #d32f2f; /* Borde rojo */
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

/* Efecto hover */
.hero-btn:hover {
  background: #d32f2f; /* Fondo rojo */
  color: #ffffff; /* Texto blanco */
  border-color: #d32f2f;
}

/* --- BENEFICIOS ESTILOS --- */
/* --- BENEFICIOS ESTILOS --- */
.benefits {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  text-align: center;
  padding: 60px 10%;
  flex-wrap: wrap;
}

.benefit {
  width: 30%;
  max-width: 300px;
}

.benefit-image {
  width: 200px; /* Tamaño más grande */
  height: 200px;
  border-radius: 50%; /* Mantiene la forma circular */
  object-fit: cover;
  margin-bottom: 15px;
}

.benefit h2 {
  font-size: 22px;
  color: #1a3875;
  margin-bottom: 10px;
}

.benefit p {
  font-size: 16px;
  color: #333;
}

/* Responsividad */
@media (max-width: 1024px) {
  .benefits {
    flex-direction: column;
    align-items: center;
  }

  .benefit {
    width: 80%;
    margin-bottom: 40px;
  }
}

/* TESTIMONIOS */
/* --- TESTIMONIALS SECTION --- */
.testimonials {
  height: 90vh; /* Tamaño similar a la Hero Section */
  background: url("../img/testimonials-bg.png") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 60px 10%;
}

.testimonials h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #d32f2f; /* Rojo principal de la Cruz Roja */
  font-weight: bold;
}

/* Contenedor de los testimonios */
.testimonials-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Estilos de cada testimonio */
.testimonial {
  background: white;
  color: #333;
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
}

/* Efecto flotante al pasar el cursor */
.testimonial:hover {
  transform: translateY(-15px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Estrellas de recomendación */
.stars {
  font-size: 20px;
  color: gold;
  margin-bottom: 10px;
}

/* Información del usuario */
.testimonial-info {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.testimonial-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Ajuste de la distribución de los testimonios sin interferencias */
.testimonial:nth-child(1) {
  transform: translateY(-20px);
}

.testimonial:nth-child(3) {
  transform: translateY(20px);
}

/* Agregamos una regla especial para que el hover no sea bloqueado */
.testimonial:nth-child(1):hover,
.testimonial:nth-child(3):hover {
  transform: translateY(-5px) !important;
}

/* Responsividad */
@media (max-width: 1024px) {
  .testimonials-container {
    flex-direction: column;
    align-items: center;
  }

  .testimonial {
    width: 90%;
  }

  .testimonial:nth-child(1),
  .testimonial:nth-child(3) {
    transform: translateY(0);
  }
}

/* --- CTA SECTION --- */
.cta {
  background: #1a3875; /* Azul sólido */
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.cta h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
}

.cta p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Estilos del botón CTA */
.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  background: white;
  color: #1a3875;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.cta-btn:hover {
  background: #d32f2f; /* Cambio a rojo en hover */
  color: white;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #1a3875;
  color: white;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .benefit-container {
    flex-direction: column;
  }
}
