/* Sección de Niveles Educativos */
.educational-levels {
  background-color: #0b1c4d; /* Fondo azul oscuro */
  padding: 50px 20px;
  text-align: center;
}

.levels-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* Permite que se ajuste en pantallas pequeñas */
  max-width: 1200px;
  margin: 0 auto;
}

.level-item {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
}

.level-item:hover {
  transform: translateY(-10px); /* Eleva la tarjeta */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); /* Sombra más profunda */
}

.level-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.level-item:hover .level-image img {
  transform: scale(1.1); /* Zoom en la imagen */
}

.level-item h3 {
  font-family: "Wigrum", Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  background-color: #0b1c4d;
  margin: 0;
  padding: 15px 0;
}

/*info Section*/

.info-section {
  background-color: #eee; /* Fondo claro */
  color: #357c3a; /* Color verde para el texto */
  text-align: center;
  padding: 60px 20%;
}

.info-content h2 {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 10px;
  color: #357c3a; /* Verde principal */
}

.info-content strong {
  font-family: "AquawaxPro";
  font-weight: bold;
}

.info-content p {
  font-size: 18px;
  color: #202042; /* Color de texto oscuro */
  margin-top: 10px;
  line-height: 1.6;
}

/* Responsividad */
@media (max-width: 768px) {
  .info-content h2 {
    font-size: 24px;
  }

  .info-content p {
    font-size: 16px;
  }
}

/* Sección de Actividades Extraescolares */
.extracurricular-activities {
  text-align: center;
  padding: 50px 20px;
  background-color: #ffffff; /* Fondo blanco */
}

.extracurricular-activities h2 {
  font-family: "Wigrum", Arial, sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #0b1c4d; /* Azul oscuro */
  margin-bottom: 30px;
}

.activities-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* Ajuste en pantallas pequeñas */
  max-width: 1200px;
  margin: 0 auto;
}

.activity-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-item:hover {
  transform: translateY(-10px); /* Elevación al pasar el cursor */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); /* Sombra más profunda */
}

.activity-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.activity-item:hover .activity-image img {
  transform: scale(1.1); /* Efecto zoom */
}

.activity-text {
  position: absolute;
  top: 50%; /* Centrado vertical */
  left: 50%; /* Centrado horizontal */
  transform: translate(-50%, -50%); /* Ajuste fino para centrar */
  font-family: "AquawaxPro";
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff; /* Texto blanco */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); /* Sombra del texto */
  text-transform: uppercase;
  text-align: center;
  pointer-events: none; /* Evita interferencias al hacer hover */
  z-index: 2;
}

/* Responsividad */
@media (max-width: 1024px) {
  .extracurricular-activities h2 {
    font-size: 28px;
  }
  .activity-text {
    font-size: 20px; /* Ajuste de tamaño del texto */
  }
}

@media (max-width: 768px) {
  .activities-container {
    flex-direction: column; /* Coloca las tarjetas en columna */
    gap: 20px;
  }
  .activity-item {
    max-width: 80%; /* Ancho reducido en tablets */
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .activity-text {
    font-size: 18px; /* Texto más pequeño */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Sombra más sutil */
  }
  .activity-item {
    max-width: 100%; /* Ocupa todo el ancho */
  }
}

/* Sección Eventos */
.eventos-section {
  background-color: #f4d53f; /* Amarillo */
  padding: 60px 20px;
  text-align: center;
}

.cta-content h2 {
  font-family: "Wigrum", Arial, sans-serif;
  font-size: 28px;
  font-weight: normal;
  color: #ffffff; /* Texto en blanco */
  margin-bottom: 20px;
}

.eventos-button {
  display: inline-block;
  background-color: #6299d8;
  color: #ffffff; /* Texto en blanco */
  font-family: "Wigrum", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.eventos-button:hover {
  background-color: #517eb2; /* Verde más oscuro */
  transform: translateY(-3px); /* Elevación ligera */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Sección Call to Action */
.cta-section {
  background-color: #f4d53f; /* Amarillo */
  padding: 60px 20px;
  text-align: center;
}

.cta-content h2 {
  font-family: "Wigrum", Arial, sans-serif;
  font-size: 28px;
  font-weight: normal;
  color: #333; /* Texto en blanco */
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #2a9d45; /* Verde */
  color: #ffffff; /* Texto en blanco */
  font-family: "Wigrum", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #1e6e2e; /* Verde más oscuro */
  transform: translateY(-3px); /* Elevación ligera */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Responsividad */
@media (max-width: 768px) {
  .cta-content h2,
  .eventos-content h2 {
    font-size: 24px;
  }
  .cta-button,
  .eventos-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .cta-content h2,
  .eventos-content h2 {
    font-size: 20px;
  }
  .cta-button,
  .eventos-button {
    font-size: 12px;
    padding: 8px 16px;
  }
}
