/* =========================
   GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* =========================
   NAVBAR (DOS NIVELES)
========================= */
.navbar {
  background-color: white;
  position: relative;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* === MENÚ SUPERIOR === */
.top-menu {
  width: 100%;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  background: #004884;
  z-index: 11;
}

.top-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.top-menu .nav-links a:hover {
  color: #ffd700;
}

/* LOGOS CENTRADOS */
.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 20px 0;
}

.nav-logo {
  height: 50px;
}

.logo-nombre {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-escuela {
  height: 80px;
  width: auto;
}

.nombre-escuela {
  font-size: 1rem;
  font-weight: lighter;
  text-align: left;
}

/* === MENÚ INFERIOR === */
.bottom-menu {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0;
  position: relative;
  margin-bottom: 10px;
  margin-top: 10px;
}

.bottom-menu .nav-links a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.bottom-menu .nav-links a:hover {
  color: #004884;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 60px;
}

/* Botón menú móvil */
.menu-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 20px;
  flex-direction: column;
  gap: 5px;
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 50;
  border: 1px solid #ddd;
}

.menu-icon {
  width: 25px;
  height: 3px;
  background: #004884;
  border-radius: 2px;
}

/* ======= NAVBAR RESPONSIVO ======= */
@media (max-width: 768px) {


  .menu-btn {
    display: flex;
  }

  
  .logos-container {
    display: flex;
    flex-direction: column;   /* AHORA van uno debajo del otro */
    align-items: flex-start;  /* Izquierda */
    gap: 5px;
    margin: 10px 35px;
  
  }

  /* Ajuste de tamaños */
  .nav-logo {
    height: 28px;
    margin-top: 20px;
  }
  .logo-escuela {
    height: 45px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .nombre-escuela {
    font-size: 0.75rem;
    text-align: left;
  }

  /* MENÚS EN COLUMNA */
  .top-menu,
  .bottom-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    text-align: left;
  }

  /* Se abren con la clase .open */
  .top-menu.open,
  .bottom-menu.open {
    display: flex;
  }

  /* LINKS EN COLUMNA */
  .nav-links {
    flex-direction: column;
    gap: 30px;
  }

  .nav-links a {
    color: #004884;
    font-size: 1rem;
    padding: 8px 0;
  }

  /* SUBMENÚ */
  .nav-links .info-ins {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
  }

  .nav-links .info-ins.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links .info-ins a {
    padding: 8px 0 8px 10px;
    text-align: left;
  }

}

/* === SUBMENÚ INFORMACIÓN INSTITUCIONAL === */
.nav-links .submenu {
  position: relative;
}

.nav-links .info-ins {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 30;
  width: 220px;
}

.nav-links .info-ins li {
  border-bottom: 1px solid #ddd;
}

.nav-links .info-ins li:last-child {
  border-bottom: none;
}

.nav-links .info-ins a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.nav-links .info-ins a:hover {
  background-color: #f0f0f0;
}

.nav-links .submenu:hover .info-ins {
  display: block;
}

/* =========================
   RESPONSIVIDAD DEL ENCABEZADO
========================= */
@media (max-width: 992px) {
  .nav-links {
    gap: 30px;
  }
  .logos-container {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 20px;
  }
  .logos-container {
    gap: 8px;
  }
  .nombre-escuela {
    font-size: 0.8rem;
  }
}


/* =========================
   SECCIÓN INICIO
========================= */


.inicio {
  margin-top: 50px;
  margin-bottom: 50px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 0 20px;
}
.inicio-content h2 {
  font-size: 4vw;
  font-weight: bold;
  margin-bottom: 1rem;
  color: black;
}

.imagen-container {
  position: relative;
  display: inline-block;
}

.imagen-container img {
  display: block;
  max-width: 100%;
  height: 400px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.imagen-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(153, 102, 0, 0.3);
  border-radius: 30px;
  z-index: 1;
}

.imagen-container p {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
  padding: 0 10px;
  font-weight: bold;
  font-size: x-large;
}

.imagen-container .btn {
  position: absolute;
  top: 70%;
  left: 44%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: white;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.imagen-container .btn:hover {
  background: #007bff;
  color: white;
}

/* =========================
   RESPONSIVIDAD SECCIÓN INICIO
========================= */
@media (max-width: 992px) {

  .imagen-container img {
    height: 300px;
  }

  .imagen-container p {
    font-size: 1.2rem;
    top: 30%;
  }

  .imagen-container .btn {
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {



  .inicio {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .imagen-container img {
    height: auto;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
  }

  .imagen-container p {
    font-size: 1rem;
    width: 90%;
    top: 25%;
  }

  .imagen-container .btn {
    top: 60%;
    left: 37%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .imagen-container img {
    max-width: 320px;
    border-radius: 15px;
  }

  .imagen-container p {
    font-size: 0.9rem;
    top: 30%;
  }

  .imagen-container .btn {
    top: 78%;
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #004884;
  color: white;
  padding: 40px 20px 20px 20px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffd700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.icon-redes {
  width: 20px;
  height: 20px;
}

.logo-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* espacio entre logo, nombre y botón */
  text-align: center;
}

.footer-logo {
  height: 80px;
  width: auto;
}

.footer-nombre {
  font-size: 1rem;
  font-weight: bold;
  color: white; /* o el color que uses en el footer */
}

/* Botón maps */
.btn-maps {
  display: inline-block;
  background-color: #ffd700;
  color: #004884;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-maps:hover {
  background-color: #004884;
  color: #ffd700;
}


/* Footer bottom */
.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 10px;
  font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .logo-footer {
    margin-top: 15px;
  }

  .footer-section {
    text-align: center;
  }
}

