:root {
  --azul: #066CDA;
  --blanco: #ffffff;
}

* {
  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: 70px;
}

.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 superior */
.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;
}

/* Contenido principal: video y galería */
.contenido-principal {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.videos iframe {
  width: 100%;
  height: 500px;
}

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

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

/* Carrusel de Noticias */
.carrusel-noticias {
  width: 420px;
  margin: 0 auto;
  text-align: center;
}

.galeria-container {
  width: 400px;
  height: 300px;
  overflow: hidden;
  border: 2px solid var(--azul);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.galeria-slider-track {
  display: flex;
  width: calc(400px * 6); /* 6 imágenes */
  transition: transform 0.8s ease-in-out;
}

.galeria-slider-track img {
  width: 400px;
  height: 300px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Zona inferior: botones + noticias */
.zona-inferior {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.botonera {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.botonera button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  background-color: var(--azul);
  color: var(--blanco);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

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

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

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

/* Footer */
.footer {
  text-align: center;
  background-color: var(--azul);
  color: var(--blanco);
  padding: 15px;
  margin-top: 20px;
}

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

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

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


/* Botonera en cuadrícula */
.botonera {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 15px;
}

.botonera h3 {
  margin-bottom: 10px;
  color: var(--azul);
}

.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%;
}

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

/* Noticias */
.zona-inferior .noticias {
  background-color: #f2f2f2;
  padding: 15px;
  border-radius: 10px;
}

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

.zona-inferior .noticias marquee {
  height: 100%;
}

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

  .botonera-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@keyframes galeriaSlide {
  0%   { transform: translateX(0); }
  33%  { transform: translateX(-200px); }
  66%  { transform: translateX(-400px); }
  100% { transform: translateX(0); }
}
.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; /* << IMPORTANTE: hace que ambas columnas tengan la misma altura */
  flex-wrap: wrap;
}

.oficinas-info {
  flex: 1 1 300px;
  font-size: 16px; /* Agrandamos el texto */
  line-height: 1.8;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
}
.oficinas-info strong {
  color: #066CDA; /* Color azul institucional para los nombres de ciudad */
  font-size: 17px;
}
.mapa {
  flex: 1 1 400px;
}

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

.footer a.facebook-link {
  color: #ffffff;
  text-decoration: none;
  margin: 0 5px;
  font-weight: bold;
}

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

.footer i.fab {
  margin-right: 5px;
}
.redes-sociales {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.redes-sociales {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.redes-sociales a {
  color: #ffffff;
  font-size: 24px;
  transition: color 0.3s ease;
}

.redes-sociales a:hover {
  color: #cce4ff;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-contenido {
  background-color: #ffffff;
  color: #066CDA;
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-gif {
  width: 120px;
  height: auto;
  margin-right: 20px;
}

.modal-texto {
  flex: 1;
}

.modal-texto h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #066CDA;
}

.modal-texto p {
  font-size: 16px;
  color: #066CDA;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #066CDA;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-contenido {
    flex-direction: column;
    text-align: center;
  }

  .modal-gif {
    margin: 0 0 15px 0;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-contenido {
  background-color: #ffffff;
  color: #066CDA;
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-gif {
  width: 120px;
  height: auto;
  margin-right: 20px;
}

.modal-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-texto h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #066CDA;
}

.modal-texto p {
  font-size: 16px;
  color: #066CDA;
  margin-bottom: 20px;
}

.modal-boton-container {
  display: flex;
  justify-content: flex-end;
}

.btn-cerrar {
  background-color: #066CDA;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-cerrar:hover {
  background-color: #055ab0;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-contenido {
    flex-direction: column;
    text-align: center;
  }

  .modal-gif {
    margin: 0 auto 15px auto;
  }

  .modal-boton-container {
    justify-content: center;
  }
}

.facebook-post {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 8px;
  margin: 20px auto;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.facebook-post h3 {
  color: var(--azul);
  margin-bottom: 10px;
  text-align: center;
}

.fb-container iframe {
  border-radius: 10px;
}
.ventana-flotante {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ventana-contenido {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
}

.cerrar-ventana {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: var(--azul);
  cursor: pointer;
}

.contenedor-imagenes {
  display: flex;
  gap: 15px;
  overflow-x: auto;
}

.contenedor-imagenes img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ventana-flotante {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ventana-contenido {
  width: 400px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  cursor: move;
  background: transparent;
  padding: 0;
}

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

.cerrar-ventana {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #066CDA;
  cursor: pointer;
}

.controles {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.controles button {
  background-color: var(--azul);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
}

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