/* --- Preloader con logo institucional --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, #f1f5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.preloader-content {
  text-align: center;
  transform: translateY(-40px); /* mueve todo un poco hacia arriba */
}

#preloader img {
  width: 290px;
  height: 290px;
  object-fit: contain; /* muestra la imagen completa sin cortarla */
  border-radius: 50%; /* mantiene el borde redondo */
  background-color: white; /* opcional si el logo no es redondo */
  border: 6px solid #1e3c72;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  margin-bottom: 25px;
  animation: pulse 2s ease-in-out infinite;
}


/* Versículo */
#preloader h2 {
  color: #1e3c72;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0;
  padding: 0 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

#preloader h5 {
  color: #2a5298;
  margin-top: 10px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Efecto respiración del logo */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

/* Ocultar cuando termina la carga */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ===== BARRA SUPERIOR DE CONTACTO ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #e6ac00; /* 🔹 amarillo fuerte institucional */
  color: black;
  padding: 2px 0;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 15px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Contacto a la izquierda */
.contact-left .contact-item {
  color: black;
  margin-right: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-left .contact-item:hover {
  color: #1e3c72; /* azul institucional */
}

/* Redes a la derecha */
.contact-right .social-icon {
  color: black;
  font-size: 18px;
  margin-left: 16px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-right .social-icon:hover {
  transform: scale(1.2);
  color: #1e3c72;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-left,
  .contact-right {
    margin: 4px 0;
  }
}

/* Empuja el navbar hacia abajo */
.navbar-fixed {
  top: 42px; /* ajusta según altura de la barra superior */
}


/* === NAVBAR INSTITUCIONAL === */
nav {
  height: 90px; /* 🔹 Aumenta la altura del navbar */
  line-height: 90px; /* centra verticalmente el contenido */
}

/* Asegura que el contenedor interno se ajuste */
nav .nav-wrapper {
  height: 100%;
}

/* === LOGO ESCUDO EN EL NAV === */
nav .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .brand-logo img.logo-escudo {
  height: 85px;      /* 🔹 más grande pero equilibrado */
  width: auto;
  margin-top: 3px;
  border-radius: 0 !important;
  object-fit: contain;
  transition: transform 0.3s ease;
}


/* Mostrar el escudo completo dentro del navbar */
nav .brand-logo img.logo-escudo {
  border-radius: 0 !important; /* 🔹 elimina cualquier borde redondeado */
  object-fit: contain;         /* 🔹 evita cortes */
}


/* Efecto suave al pasar el cursor */
nav .brand-logo img.logo-escudo:hover {
  transform: scale(1.05);
}

/* Ajuste responsive */
@media (max-width: 768px) {
  nav {
    height: 70px;
    line-height: 70px;
  }

  nav .brand-logo img.logo-escudo {
    height: 50px;
  }
}



body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
  background: #fff;
}

/* --- Portada limpia --- */
.hero {
  height: 80vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 3px solid #1e3c72;
}

.hero-content h4,
.hero-content h3,
.hero-content h6 {
  margin: 0.4rem 0;
  color: #1e3c72;
  font-weight: 600;
}

/* --- Secciones --- */
.section h4 {
  color: #1e3c72;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

/* --- Bloque de cita (historia) --- */
blockquote {
  border-left: 5px solid #1e3c72;
  color: #1e3c72;
  font-style: italic;
}

/* --- Botón --- */
.btn {
  border-radius: 30px;
}

/* --- Footer normal --- */
footer {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 30px 0;
}

footer p {
  margin: 5px 0;
  font-weight: 400;
}
/* --- Portada con texto e imagen --- */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 3px solid #1e3c72;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
}

/* Texto de la izquierda */
.hero-content {
  flex: 1;
  text-align: left;
  padding-right: 40px;
}

.hero-content h4,
.hero-content h3,
.hero-content h6 {
  margin: 0.4rem 0;
  color: #1e3c72;
  font-weight: 600;
}

/* Imagen a la derecha */
.hero-image {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #1e3c72;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 25px;
  }

  /* Bandera institucional sobre el texto (versión responsiva unificada) */
  .bandera-img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    align-self: center;
  }

  /* Efecto suave al pasar el cursor */
  .bandera-img:hover {
    transform: scale(1.05);
  }

  .hero-image {
    flex: 0 0 auto;
    margin-top: 20px;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
  
}



/* Efecto suave al pasar el cursor */
.bandera-img:hover {
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .bandera-img {
    width: 90px;
    margin-bottom: 8px;
  }
}


/* Efecto suave al pasar el cursor */
.bandera-img:hover {
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .bandera-img {
    width: 140px;
    margin-bottom: 10px;
  }
}


  .hero-image {
    flex: 0 0 auto;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
  }
}
/* --- Ajuste para que las secciones no queden tapadas por el navbar --- */
section[id] {
  scroll-margin-top: 80px; /* altura del navbar */
}

html {
  scroll-behavior: smooth;
}
/* --- Ajuste del logo del navbar --- */
nav .brand-logo {
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap; /* Evita que se parta el texto */
}

/* En pantallas pequeñas, reducimos y centramos el logo */
@media (max-width: 992px) {
  nav .brand-logo {
    font-size: 1.3rem;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* --- Escudo dentro del navbar --- */
nav .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px; /* espacio entre el escudo y el texto */
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
}

nav .brand-logo img.logo-escudo {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Centrar logo y texto en pantallas pequeñas */
@media (max-width: 992px) {
  nav .brand-logo {
    font-size: 1.3rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
  }

  nav .brand-logo img.logo-escudo {
    height: 38px;
    width: 38px;
  }
}
/* --- Escudo institucional en el footer --- */
.footer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

/* Pequeño efecto al pasar el mouse */
.footer-logo:hover {
  transform: scale(1.05);
}

/* En pantallas pequeñas */
@media (max-width: 600px) {
  .footer-logo {
    width: 70px;
    height: 70px;
  }
}
/* --- Carrusel institucional --- */
.carousel {
  height: 400px; /* ajusta según tu gusto */
}

.carousel img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .carousel {
    height: 250px;
  }
  .carousel img {
    height: 250px;
  }
}
/* --- Carrusel dentro del hero --- */
.hero-image {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-image .carousel {
   width: 360px;
  height: 360px;
  border-radius: 10px; /* leve redondeo */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 4px solid #1e3c72;
}

.hero-image .carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* o cover, según prefieras */
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-image .carousel img:hover {
  transform: scale(1.1); /* aumenta 10% el tamaño */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}


/* Responsivo */
@media (max-width: 768px) {
  .hero-image {
    flex: 0 0 auto;
    margin-top: 20px;
  }

  .hero-image .carousel {
    width: 220px;
    height: 220px;
  }
}
/* --- Estilos del modal de imagen --- */
.modal {
  max-height: 90vh;
  background: rgba(0, 0, 0, 0.8) !important;
}

.modal-content {
  padding: 0;
}

#imagen-modal {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #1e3c72;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-overlay {
  background: rgba(30, 60, 114, 0.8);
}
/* --- Sección de noticias --- */
#noticias {
  background: #f8faff;
  padding: 60px 0;
  border-top: 3px solid #1e3c72;
}

#noticias h4 {
  color: #1e3c72;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Carrusel de noticias */
.carousel-news {
  height: 300px;
}

.carousel-news .carousel-item img {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 3px solid #1e3c72;
}

.carousel-news .carousel-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
/* --- Centrar el carrusel de noticias --- */
.carousel-news {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 800px; /* ajusta según el ancho deseado */
}

.carousel-news .carousel-item {
  width: 300px !important;
}

.carousel-news .carousel-item img {
  object-fit: cover;
}


/* Modal de noticias */
#modal-noticia {
  background: transparent !important;
  box-shadow: none !important;
}

#modal-noticia .modal-content {
  background: transparent;
  color: white;
  text-align: center;
  padding: 0;
}

#imagen-noticia-modal {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

#descripcion-noticia {
  margin-top: 15px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Fondo del modal */
.modal-overlay {
  background: rgba(0, 0, 0, 0.85) !important;
}
/* --- Carrusel de noticias centrado con fade --- */
.carousel-news {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 3px solid #1e3c72;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fade-slide {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease-in-out;
  cursor: pointer;
}

.fade-slide.active {
  opacity: 1;
  z-index: 2;
}

.fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Hover efecto */
.fade-slide img:hover {
  transform: scale(1.03);
  transition: transform 0.5s ease;
}
/* --- Modal del himno institucional --- */
.modal-himno {
  background: rgba(0, 0, 0, 0.85);
  color: white;
}

.modal-himno .modal-content {
  background: transparent;
  padding: 10px 0 20px;
}

.modal-himno video {
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}
/* --- Sección de Contacto --- */
#contacto {
  background: transparent;
  padding: 60px 0;
  border-top: 3px solid #1e3c72;
}

#contacto h4 {
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: 600;
}

#contacto p {
  color: #333;
  font-size: 1.1rem;
}

/* Íconos sociales */
.social-icons {
  margin: 25px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Colores institucionales */
.social-icon.facebook {
  background: #1877f2;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-icon.twitter {
  background: #000; /* X (Twitter) */
}

/* Efectos */
.social-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Botón de WhatsApp */
.whatsapp-btn {
  margin-top: 30px;
}

.whatsapp-btn .btn-large {
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease;
}

.whatsapp-btn .btn-large:hover {
  transform: scale(1.05);
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
/* Corrige el desplazamiento de las secciones ancladas bajo el navbar */
section[id] {
  scroll-margin-top: 120px; /* ajusta según la altura del navbar */
}

/* ===== Ocultar la barra amarilla y ajustar navbar en versión móvil ===== */
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }

  /* Asegura que el navbar quede al inicio */
  .navbar-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 1001;
  }

  /* Asegura que el nav interno no tenga márgenes extra */
  nav {
    margin-top: 0 !important;
  }

  /* Ajusta el contenido general para no quedar oculto bajo el navbar */
  body {
    padding-top: 80px !important; /* 🔹 depende de la altura de tu navbar */
  }
}
/* ===== CORRECCIÓN: EVITAR QUE EL NAVBAR TAPE LAS SECCIONES ===== */
section[id] {
  scroll-margin-top: 120px; /* ajusta según la altura del navbar + barra amarilla */
}

/* ===== SECCIÓN DE SÍMBOLOS ===== */
.simbolos-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.simbolos-left {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.simbolos-left h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.lema-text {
  font-style: italic;
  font-weight: bold;
  margin-bottom: 15px;
}

.simbolos-right {
  flex: 1;
  min-width: 280px;
}

.simbolo-item {
  margin-bottom: 25px;
}

.simbolo-item img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.simbolo-item img:hover {
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .simbolos-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .simbolos-left {
    text-align: center;
  }

  .simbolo-item img {
    width: 140px;
  }
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
