@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
  text-align: center;
}

.div {
  height: 120px;
  width: 100%;
}

/* Presentación */
.presentacion {
  background-image: url(assets/img/escuela.jpg);
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.presentacion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25); /* Oscurecimiento suave */
  z-index: 1;
}

.name-box {
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2; /* Para que quede arriba del overlay */
}

.name-box h1 {
  font-size: 5vw;
  font-weight: 800;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.name-box h2 {
  font-size: 2vw;
  font-weight: 400;
  margin: 10px 0 0 0;
  font-style: italic;
}

/* Seccion Nuestros Inicios */
.txt {
  background-color: #f4f4f4;
  position: relative;
  padding: 80px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.txt div {
  position: relative;
  width: 1300px;
}

.txt h3 {
  text-align: center;
  font-size: 40px;
  color: rgb(42, 42, 144);
  padding-bottom: 20px;
}
.txt p {
  font-size: 24px;
  font-weight: 500;
  padding: 0 20px 0 20px;
}

#directivos {
  width: 100%;
  padding: 15px;
  background-color: white;
}

.cajas {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

.directivo {
  width: 250px;
  height: 100px;
  margin: 10px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: inline;
  flex-wrap: wrap;
  justify-content: center;
}

.directivo h3 {
  margin: 3px 0 2px;
  color: #333;
}

.directivo p {
  margin: 2px 0;
  font-size: 15px;
  color: #555;
}

/* Responsive General */
@media (max-width: 992px) {
  .presentacion {
    height: 60vh;
    background-position: center;
  }

  .name-box h1 {
    font-size: 8vw;
  }

  .name-box h2 {
    font-size: 4vw;
  }

  .txt {
    padding: 40px;
  }

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

  #directivos .cajas {
    flex-direction: column;
    align-items: center;
  }

  .directivo {
    width: 90%;
    height: auto;
  }
}

/* ===== MODAL AVISOS ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 480px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.3s ease;
}

.modal-logo {
  width: 70px;
  opacity: 0.95;
  margin-bottom: 10px;
}

.modal-line {
  width: 60%;
  height: 2px;
  background: #003366;
  margin: 6px auto;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #002244;
  margin-top: 15px;
}

.modal-text {
  font-size: 18px;
  color: #333;
  margin-top: 10px;
  line-height: 1.45;
  text-align: center;
}

.modal-btn {
  margin-top: 20px;
  background: #003366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.modal-btn:hover {
  background: #001f4d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-25px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
