/* VARIABLES GLOBALES */
:root {
  --azul: #066CDA;
  --blanco: #ffffff;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--blanco);
  color: #333;
}

/* HEADER Y MENÚ */
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--azul);
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo-container .logo {
  height: 90px;
}

.nav-menu ul {
  display: flex;
  gap: 15px;
  list-style: none;
}

.nav-menu a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
}

.nav-menu a:hover {
  background-color: #055ab0;
  border-radius: 5px;
}

/* CARRUSEL */
.carrusel {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slider img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ZONA INFERIOR */
.zona-inferior {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.videos iframe {
  width: 100%;
  height: 500px;
  border-radius: 8px;
}

.facebook-post,
.noticias,
.videos {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 8px;
}

.noticias h3,
.videos h3,
.botonera h3,
.zona-inferior .noticias h3 {
  color: var(--azul);
  margin-bottom: 10px;
}

.noticias p {
  margin-bottom: 10px;
}

.facebook-post {
  margin: 20px auto;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* BOTONERA */
.botonera {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 15px;
}

.botonera-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.botonera button {
  background-color: var(--azul);
  color: white;
  border: none;
  padding: 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  height: 100%;
  white-space: normal;
  text-align: center;
}

.botonera button:hover {
  background-color: #055ab0;
}

/* UBICACIONES */
.ubicaciones {
  padding: 20px;
  background-color: #f2f2f2;
  border-top: 3px solid var(--azul);
  margin-top: 20px;
}

.ubicaciones h3 {
  color: var(--azul);
  margin-bottom: 15px;
  text-align: center;
}

.ubicaciones-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
}

.oficinas-info {
  flex: 1 1 300px;
  font-size: 16px;
  line-height: 1.8;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  color: #333;
}

.oficinas-info strong {
  color: #066CDA;
  font-size: 17px;
}

.mapa {
  flex: 1 1 400px;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  min-height: 400px;
}

/* FOOTER */
.footer {
  background-color: var(--azul);
  color: var(--blanco);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: 11px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: #dfe6f1;
}

.footer-redes a {
  color: #ffffff;
  font-size: 18px;
}

/* MODALES Y VENTANAS FLOTANTES */
.ventana-flotante,
.ventana-flotante.comunicado {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.ventana-contenido {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  cursor: move;
}

.ventana-contenido img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.cerrar-ventana {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: #c00;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 26px;
  text-align: center;
}

/* COMUNICADO */
.comunicado-contenido {
  width: 359px;
  height: 403px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
}

.titulo-comunicado {
  position: absolute;
  top: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #c10000;
  background-color: #fff;
  padding: 5px 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.img-comunicado {
  width: 100%;
  height: calc(100% - 60px);
  object-fit: cover;
  border-radius: 0 0 10px 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .zona-inferior,
  .contenido-principal {
    grid-template-columns: 1fr;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .logo-container {
    margin: 10px 0;
  }

  .botonera-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider img {
    height: auto;
    object-fit: contain;
  }

  .comunicado-contenido {
    width: 90%;
    height: auto;
  }

  .img-comunicado {
    height: auto;
  }
}
.footer-redes {
  background-color: var(--azul);
  padding: 15px;
  text-align: center;
}

.footer-redes a {
  color: white;
  font-size: 24px;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.footer-redes a:hover {
  color: #a2d2ff;
}
/* CONTENEDOR de la ventana (no bloquea nada) */
.ventana-flotante {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none; /* deja pasar clicks salvo en la caja */
}

/* CONTENIDO de la ventana (movible, visible, con imagen) */
.ventana-contenido {
  width: 100%;
  max-width: 375px;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  pointer-events: all; /* activa los clicks aquí */
  cursor: move;
}

/* Imagen dentro de la ventana */
.ventana-contenido img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón cerrar */
.cerrar-ventana {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: #c00;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  z-index: 10;
}

/* Responsive */
@media (max-width: 480px) {
  .ventana-flotante {
    top: 10px;
    right: 10px;
  }

  .ventana-contenido {
    max-width: 90vw;
    aspect-ratio: 3 / 4;
  }

  .cerrar-ventana {
    width: 26px;
    height: 26px;
    font-size: 18px;
    line-height: 24px;
  }
}

#directorio {
  padding: 40px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

#directorio h2 {
  font-size: 26px;
  color: #066CDA;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.directorio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foto-principal {
  margin-bottom: 40px;
}

.foto-principal img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid #066CDA;
}

.nombre {
  font-weight: bold;
  color: #066CDA;
  margin-top: 10px;
}

.cargo {
  font-size: 14px;
  color: #777;
}

.sub-directorio {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 1000px;
}

.foto {
  text-align: center;
}

.foto img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: con;
  border: 3px solid #066CDA;
}

.foto .nombre {
  font-weight: bold;
  color: #066CDA;
  margin-top: 10px;
}

.foto .cargo {
  font-size: 12px;
  color: #777;
}

@media (max-width: 768px) {
  .sub-directorio {
    flex-direction: column;
    align-items: center;
  }

  .sub-directorio .foto {
    margin-bottom: 20px;
  }
}
