/* VARIABLES Y ESTILOS GLOBALES */
:root {
  --primary-color: #008ac7;
  --secondary-color: #0056B3;
  --accent-color: #F4B400;
  --light-bg: #F4F6F9;
  --text-color: #2c3e50;
  --text-muted: #555555;
  --white: #FFFFFF;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --navbar-height: 95px; /* Incrementado para albergar mayor tamaño tipográfico */
  --font-family: 'Saira', sans-serif;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: var(--font-family); 
}

body { 
  background-color: var(--light-bg); 
  color: var(--text-color); 
  font-size: 1.05rem; 
  line-height: 1.65; 
  padding-top: var(--navbar-height); 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1500px; margin: 0 auto; padding: 0 20px; }




/* ==============================================================================
   HEADER RESPONSIVO FLUIDO (REDUCCIÓN DINÁMICA DE TAMAÑOS)
   ============================================================================== */

:root {
  /* La altura del header se adapta de 80px a 105px según el ancho del navegador */
  --navbar-height: clamp(80px, 5.5vw, 105px);
}

.navbar { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: var(--navbar-height); 
  background-color: #004a98; /* Azul oscuro institucional */
  /*background-color: #0054BF; */
  border-bottom: 4px solid var(--white); 
  color: var(--white); 
  z-index: 1000; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
  display: flex; 
  align-items: center; 
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100% !important;
  max-width: 100% !important; /* Ocupa el 100% de la pantalla */
  margin: 0 !important;         /* Elimina el centrado con márgenes automáticos */
  padding: 0 20px !important;   /* Pequeño respiro en las esquinas para que no peguen totalmente al borde del monitor */
}


/* MARCA E IDENTIDAD INSTITUCIONAL FLUIDA */
.brand { 
  display: flex; 
  align-items: center; 
  gap: clamp(8px, 1vw, 18px); 
  white-space: nowrap; 
  flex-shrink: 0;
  margin-right: clamp(15px, 2.5vw, 50px); /* El espacio entre la marca y el menú se encoge */
}

/* CONTENEDOR DEL LOGO BLINDADO CONTRA DESBORDES */
.brand-logo { 
  width: clamp(55px, 4vw, 82px); 
  height: clamp(55px, 4vw, 82px);
  
  /* Garantiza un margen superior e inferior estricto dentro de la barra */
  max-height: calc(var(--navbar-height) - 16px); 
  
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0;
  overflow: hidden;
}

/* IMAGEN DEL LOGOTIPO CONSTRANIDA AL CONTENEDOR */
.brand-logo img { 
  max-width: 100%; 
  max-height: 100%; 
  width: auto; 
  height: auto; 
  object-fit: contain; 
  display: block;
}


.brand-text h1 { 
  font-size: clamp(1rem, 1.2vw, 1.55rem); /* El título del colegio escala dinámicamente */
  font-weight: 650; 
  color: var(--white); 
  line-height: 1.2; 
  white-space: nowrap; 
  letter-spacing: -0.2px;
}

.brand-text span { 
  font-size: clamp(0.72rem, 0.75vw, 0.95rem); /* El eslogan escala proporcionalmente */
  color: var(--accent-color); 
  font-weight: 600; 
  white-space: nowrap; 
  display: block;
}

/* ==============================================================================
   ESCALADO DINÁMICO Y FLUIDO PARA OPCIONES DEL MENÚ (.nav-menu)
   ============================================================================== */

/* MENÚ CONTENEDOR */
.nav-menu { 
  display: flex; 
  align-items: center; 
  /* El espacio (gap) entre elementos se reduce de 20px hasta 6px automáticamente */
  gap: clamp(6px, 1.2vw, 20px); 
  white-space: nowrap; 
  flex-shrink: 0;
  margin-left: auto;
}

/* ENLACES ESTÁNDAR DEL MENÚ */

.nav-link { 
  color: var(--white); 
  font-weight: 400; /* Letra más delgada */
  font-size: clamp(1.0rem, 1.2vw, 1.3rem) !important;
  /*font-size: clamp(1.05rem, 1.35vw, 1.45rem) !important; /* Tamaño aumentado */
  /*font-size: clamp(0.85rem, 1.05vw, 1.18rem); */
  transition: var(--transition); 
  padding: 6px clamp(4px, 0.7vw, 12px); 
  border-radius: 4px; 
  white-space: nowrap; 
}

.nav-link:hover { 
  font-weight: 600; /* Letra más delgada */    
  color: var(--accent-color); 
}



/* BOTONES RESALTADOS (DIRECTORIO Y CONTACTO) */


.btn-nav { 
  background-color: var(--accent-color); 
  color: #0054BF; 
  font-weight: 100; /* Letra más delgada para Directorio y Contacto */
  font-size: clamp(0.85rem, 0.95vw, 1.1rem); 
  padding: 8px clamp(8px, 1vw, 18px); 
  border-radius: 20px; 
  transition: var(--transition); 
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 8px);
  white-space: nowrap;
}


.btn-nav i { 
  /* Los iconos dentro de los botones escalan de 0.9rem a 1.25rem */
  font-size: clamp(0.9rem, 1vw, 1.25rem); 
}



/* ENCABEZADOS Y SUBTÍTULOS GLOBALES */
.section-title { 
  text-align: center; 
  font-size: 3rem; /* Actualizado de 2.4rem a 3rem */
  color: var(--primary-color); 
  margin-bottom: 12px; 
  position: relative; 
  text-transform: uppercase; 
  font-weight: 800; 
  letter-spacing: -0.5px;
}
.section-subtitle { 
  text-align: center; 
  color: var(--text-muted); 
  margin-bottom: 45px; 
  font-size: 1.35rem; /* Actualizado de 1.15rem a 1.35rem */
  font-weight: 500;
}
.section-title::after { 
  content: ''; 
  display: block; 
  width: 90px; 
  height: 5px; 
  background: var(--accent-color); 
  margin: 12px auto 0; 
  border-radius: 2px; 
}
section { padding: 65px 0; }



/*.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0054BF; font-size: 1.5rem; overflow: hidden; }
.brand-logo img { width: 100%; height: auto; object-fit: contain; }*
/*.brand-text h1 { font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1.2; letter-spacing: -0.3px; }*/
/*.brand-text span { font-size: 1rem; color: var(--accent-color); font-weight: 600; }*/
/*.nav-menu { display: flex; align-items: center; gap: 20px; }*/
/*.nav-link { color: var(--white); font-weight: 600; font-size: 1.2rem; transition: var(--transition); padding: 10px 14px; border-radius: 4px; }*/


/* BOTONES DE NAVEGACIÓN ESTÁNDAR */
.btn-nav { 
  background-color: var(--accent-color); 
  color: #0054BF; 
  font-weight: 600; 
  padding: 11px 22px; 
  border-radius: 20px; 
  transition: var(--transition); 
  font-size: 1.15rem; 
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-nav i { font-size: 1.25rem; }





.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--white); background: none; border: none; }

/* ADAPTACIÓN INTERMEDIA (1180px a 769px) */
@media (max-width: 1280px) and (min-width: 769px) {
  .navbar-container {
    padding: 0 15px; /* Aprovecha los bordes al máximo en laptops/tablets */
  }

  .brand {
    margin-right: 15px; /* Flexibiliza el margen de la marca en pantallas medianas */
  }


  .nav-menu {
    gap: 12px;
  }
  .btn-nav {
    background-color: transparent !important;
    padding: 8px 10px !important;
    border-radius: 0 !important;
    color: var(--white) !important;
  }
  .btn-nav .btn-text {
    display: none !important;
  }
  .btn-nav i {
    font-size: 1.35rem;
  }
  .btn-nav:hover {
    color: var(--accent-color) !important;
    animation: none !important;
  }
}

/* CARRUSEL */
.hero-carousel { position: relative; width: 100%; height: 75vh; min-height: 420px; overflow: hidden; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.carousel-slide.active { opacity: 1; }
.carousel-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 84, 191, 0.55); }
.carousel-content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 850px; padding: 0 20px; }
.carousel-content h2 { font-size: 3.2rem; margin-bottom: 15px; font-weight: 700; line-height: 1.2; }
.carousel-content p { font-size: 1.4rem; margin-bottom: 28px; }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.4); color: var(--white); border: none; font-size: 2rem; padding: 14px 20px; cursor: pointer; z-index: 10; border-radius: 4px; transition: var(--transition); }
.carousel-control:hover { background: rgba(0, 0, 0, 0.7); }
.carousel-control.prev { left: 15px; } .carousel-control.next { right: 15px; }

/* OFERTA EDUCATIVA */
.oferta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card-oferta { background-color: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.card-oferta:hover { transform: translateY(-8px); }
.card-header { background-color: var(--secondary-color); color: var(--white); padding: 32px 22px; text-align: center; }
.card-header i { font-size: 3.2rem; margin-bottom: 12px; color: var(--accent-color); }
.card-header h3 { font-size: 1.75rem; font-weight: 700; }
.card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-body p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 20px; color: var(--text-muted); }
.btn-card { display: inline-block; text-align: center; background-color: var(--primary-color); color: var(--white); padding: 14px 22px; border-radius: 6px; font-weight: 600; font-size: 1.15rem; }

/* AVISOS INSTITUCIONALES - TABS */
.avisos-section { background-color: var(--white); }

.tabs-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: stretch;
  gap: 2px; 
  margin-bottom: 0; 
  width: 100%; 
  border-bottom: 4px solid var(--primary-color); 
}

.tab-btn { 
  flex: 1; 
  text-align: center;
  padding: 18px 16px; 
  border: none;
  background-color: var(--primary-color); 
  color: var(--white); 
  font-weight: 700; 
  font-size: 1.45rem; 
  border-top-left-radius: 8px; 
  border-top-right-radius: 8px; 
  cursor: pointer; 
  transition: var(--transition); 
  position: relative;
  opacity: 0.88; 
}

.tab-btn i {
  font-size: 1.5rem; 
  margin-right: 12px;
}

.tab-btn:hover { 
  background-color: var(--secondary-color); 
  color: var(--accent-color); 
  opacity: 1;
}

.tab-btn.active { 
  background-color: var(--primary-color); 
  color: var(--white); 
  font-weight: 700;
  opacity: 1;
  border-bottom: 5px solid var(--accent-color); 
  margin-bottom: -4px; 
}

.tab-content { 
  display: none; 
  background: var(--light-bg); 
  padding: 32px; 
  border-radius: 0 0 8px 8px; 
  border: 1px solid #d0d7de;
  border-top: none;
}

.tab-content.active { 
  display: block; 
}    

.aviso-item { border-left: 5px solid var(--accent-color); background: var(--white); padding: 18px 22px; margin-bottom: 16px; border-radius: 0 6px 6px 0; }
.aviso-item h4 { font-size: 1.45rem; margin: 4px 0 8px 0; font-weight: 700; }
.aviso-item p { font-size: 1.15rem; }

/* EVENTOS & GALERÍAS */
.eventos-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
}    

.evento-card { background: var(--white); border-radius: 8px; display: flex; overflow: hidden; box-shadow: var(--shadow); }
.evento-fecha-box { background: var(--primary-color); color: var(--white); min-width: 115px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; font-size: 1.05rem; }
.evento-fecha-box .dia { font-size: 2.6rem; font-weight: 800; color: var(--accent-color); line-height: 1; margin-bottom: 4px; }
.evento-fecha-box span { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }
.evento-info { padding: 22px; }
.evento-info h4 { font-size: 1.45rem; font-weight: 700; margin-bottom: 8px; }
.evento-info p { font-size: 1.12rem; color: var(--text-muted); line-height: 1.6; }

.ultimos-eventos-section { background-color: var(--white); }
.ultimos-eventos-section h3 { font-size: 1.65rem; font-weight: 700; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.galeria-item { height: 200px; border-radius: 8px; overflow: hidden; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }

/* ALIANZAS */
.alianzas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.alianza-card { background: var(--white); padding: 28px 20px; border-radius: 8px; box-shadow: var(--shadow); }
.alianza-card h4 { font-size: 1.25rem; margin-top: 12px; font-weight: 600; }

/* CONTACTO */
.contacto-section { background-color: var(--primary-color); color: var(--white); }
.form-contacto { max-width: 720px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 10px; color: var(--text-color); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1.1rem; }
.form-control { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 6px; font-size: 1.05rem; }
.btn-submit { width: 100%; background-color: var(--accent-color); color: var(--primary-color); border: none; padding: 16px; font-weight: 700; font-size: 1.2rem; border-radius: 6px; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { opacity: 0.9; }
.alert-msg { padding: 14px; margin-top: 18px; border-radius: 6px; display: none; font-size: 1.05rem; text-align: center; font-weight: 500; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* DIRECTORIO INSTITUCIONAL */
.directorio-card { padding: 24px 18px; background: var(--light-bg); border-radius: 8px; }
.directorio-card h4 { font-size: 1.35rem; font-weight: 700; color: var(--primary-color); }
.directorio-card p { font-size: 1.1rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }


/* ============================================================================== */
/* ESTILOS DEL FOOTER - COLEGIO SEMBRADORES DE AMISTAD                            */
/* ============================================================================== */

.site-footer {
  background-color: #004a98; /* Azul oscuro institucional */
  color: #ffffff;
  font-family: Arial, sans-serif;
  width: 100%;
  position: relative;
  /* Línea blanca en la parte superior del footer */
  border-top: 3px solid #ffffff; 
}

/* Contenedor interno con respiro lateral para el texto */
.footer-container {
  width: 100%;
  padding: 50px 45px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columnas exactas */
  gap: 30px;
  align-items: start;
}

.footer-col {
  width: 100%;
}

/* Columna Izquierda */
.footer-left .footer-subtitle {
  font-style: italic;
  font-size: 17px;
  margin-bottom: 5px;
}

.footer-left .footer-title {
  font-weight: 600; 
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.footer-emails {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.footer-emails li {
  margin-bottom: 4px;
}

.footer-emails span {
  font-weight: bold;
}

/* Columna Central (Logos y Redes) */
.footer-center {
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-logos img {
  max-height: 85px;
  width: auto;
}

/* Aplicando fuente Saira delgada (weight 300) al letrero SÍGUENOS */
.footer-social-section h4 {
  font-family: 'Saira', sans-serif;
  font-weight: 300; /* Versión delgada / light */
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: #ffffff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  color: #0b3c65;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.social-icons a:hover {
  background-color: #ffc107;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Columna Derecha */
.footer-right {
  text-align: right;
}

.footer-address {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Aplicando fuente Saira delgada a los títulos internos de las columnas (Domicilio y Teléfonos) */
.footer-address h4, 
.footer-phones-wrapper h4 {
  font-family: 'Saira', sans-serif;
  font-weight: 300; /* Delgada / Light */
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #ffffff;
}

.footer-phones-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.phone-content {
  font-size: 13px;
  line-height: 1.4;
}

.phone-icon {
  font-size: 28px;
  color: #ffffff;
}

.footer-action {
  margin-top: 15px;
}

.btn-solicitar {
  display: inline-block;
  background-color: #008cb9;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-solicitar:hover {
  background-color: #007399;
}

/* Franja Inferior de Copyright */
.footer-bottom-bar {
  background-color: #008ac7; /* Tono azul institucional de los apartados */
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

/* Adaptabilidad para Dispositivos Móviles */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
  }
  .footer-right {
    text-align: center;
  }
  .footer-phones-wrapper {
    justify-content: center;
  }
}



/* ADAPTACIÓN MÓVIL (<768px) */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav-menu { position: absolute; top: var(--navbar-height); left: -100%; width: 100%; height: calc(100vh - var(--navbar-height)); background-color: #0054BF; flex-direction: column; padding-top: 40px; transition: var(--transition); }
  .nav-menu.active { left: 0; }
  .brand-text h1 { font-size: 1.25rem; }
  .carousel-content h2 { font-size: 2.2rem; }
  .carousel-content p { font-size: 1.15rem; }
  .carousel-control { padding: 10px 14px; font-size: 1.6rem; }
  .section-title { font-size: 2.2rem; }
  .section-subtitle { font-size: 1.15rem; }
  .tab-btn { font-size: 1.1rem; padding: 12px 8px; }
  .tab-btn i { font-size: 1.2rem; margin-right: 6px; }
  .eventos-grid { grid-template-columns: 1fr; }
}

/* EFECTO HOVER EN BOTONES NAV */
@keyframes temblor {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-2px, 1px) rotate(-1deg); }
  40% { transform: translate(2px, -1px) rotate(1deg); }
  60% { transform: translate(-2px, -1px) rotate(0deg); }
  80% { transform: translate(2px, 1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.btn-nav:hover {
  animation: temblor 0.25s ease-in-out infinite;
  display: inline-flex;
  opacity: 1 !important;
  visibility: visible !important;
  color: #000000 !important;
}

.menu-item, 
li {
  overflow: visible !important;
}

.submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

/* ESTILOS PARA VIDEO EN CARRUSEL */
.carousel-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}    

/* ACCIONES Y BOTÓN PDF EN AVISOS */
.aviso-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e74c3c;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-pdf:hover {
  background-color: #c0392b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* MODAL VISUALIZADOR PDF */
.modal-pdf {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-pdf.active {
  display: flex;
}

.modal-pdf-content {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  height: 85vh;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.modal-pdf-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-pdf-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-pdf-body {
  flex-grow: 1;
  width: 100%;
  height: 100%;
}

.modal-pdf-body iframe {
  width: 100%;
  height: 100%;
}




/* ==========================================================
   ESTILOS ACTUALIZADOS PARA EL DIRECTORIO INSTITUCIONAL
   ========================================================== */

#directorio {
    background-color: #f4f6f9;
    padding: 60px 0;
    font-family: 'Archivo', sans-serif;
    color: #333333;
    width: 100%;
}

/* Cuadrícula adaptable de dos columnas que respeta el ancho del .container general */
.contenedor-directorio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 30px;
}

.tarjeta-director {
    position: relative;
    display: flex;
    flex-direction: row;
    background: #e2e4e8;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #c0c4cc;
    overflow: hidden;
    text-align: left;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-director:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Fotografía oculta por defecto, se despliega al hacer hover sobre la tarjeta */
.foto-horizontal {
    width: 0;
    opacity: 0;
    overflow: hidden;
    background-color: #e7f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s ease, opacity 0.3s ease, border-right 0.4s ease;
    flex-shrink: 0;
}

.foto-horizontal img {
    width: 160px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tarjeta-director:hover .foto-horizontal {
    width: 160px;
    opacity: 1;
    border-right: 2px solid #74c0fc;
}

.info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px;
    width: 100%;
}

.card-header-dir {
    border-bottom: 2px solid #c0c4cc;
    padding-bottom: 8px;
    margin-bottom: 10px;
    background-color: transparent;
}


.cargo-director {
    font-size: 1.65rem; /* Tamaño de letra más grande y destacado */
    color: #0084c7;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: 'Saira', sans-serif;
    line-height: 1.3;
}


.card-body-dir {
    padding: 0;
    color: #4a4a4a;
    font-size: 0.98rem;
    line-height: 1.5;
}

.item-contacto {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.bullet {
    font-weight: bold;
    color: #333333;
    font-size: 1.1rem;
}

.etiqueta {
    font-weight: 700;
    color: #333333;
}

.valor-texto {
    color: #4a4a4a;
    font-weight: 500;
}

.item-contacto a {
    color: #0084c7;
    text-decoration: none;
    word-break: break-word;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.item-contacto a:hover {
    color: #006da6;
    text-decoration: underline;
}

.btn-copiar {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-copiar:hover {
    color: #0084c7;
    background-color: rgba(0, 132, 199, 0.1);
}



/* Adaptabilidad para Dispositivos Móviles (pasa a 1 sola columna) */
@media (max-width: 900px) {
    .contenedor-directorio {
        grid-template-columns: 1fr;
    }

    .tarjeta-director {
        flex-direction: column;
    }

    .foto-horizontal {
        width: 100% !important;
        height: 220px !important;
        opacity: 1 !important;
        border-right: none !important;
        border-bottom: 2px solid #74c0fc;
    }

    .foto-horizontal img {
        width: 100%;
        height: 100%;
    }

    .info-container {
        padding: 18px;
    }

    .card-header-dir {
        text-align: center;
    }

    .item-contacto {
        justify-content: center;
    }
}

/* ==========================================================
   BOTÓN FLOTANTE REGRESAR AL INICIO (CENTRADO, NARANJA Y NEGRO)
   ========================================================== */

.btn-regresar-arriba {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Oculto inicialmente hacia abajo */
    background-color: #ff7a00; /* Naranja llamativo */
    color: #000000; /* Ícono en color negro */
    width: 64px; /* Botón más grande */
    height: 64px; /* Botón más grande */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Ícono más grande */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border: 3px solid #000000; /* Contorno negro para mayor contraste */
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    text-decoration: none;
}

/* Clase que activa la visibilidad al hacer scroll, manteniendo el centrado */
.btn-regresar-arriba.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn-regresar-arriba:hover {
    background-color: #e66d00; /* Tono naranja más oscuro al pasar el cursor */
    transform: translateX(-50%) translateY(-5px); /* Efecto de elevación */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    color: #000000;
}


/* Adaptabilidad para Tablets (2 columnas) */
@media (max-width: 1100px) {
    .contenedor-directorio {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Adaptabilidad para Dispositivos Móviles (1 columna) */
@media (max-width: 768px) {
    .contenedor-directorio {
        grid-template-columns: 1fr;
    }

    .tarjeta-director {
        flex-direction: column;
    }

    .foto-horizontal {
        width: 100% !important;
        height: 220px !important;
        opacity: 1 !important;
        border-right: none !important;
        border-bottom: 2px solid #74c0fc;
    }

    .foto-horizontal img {
        width: 100%;
        height: 100%;
    }

    .info-container {
        padding: 18px;
    }

    .card-header-dir {
        text-align: center;
    }

    .item-contacto {
        justify-content: center;
    }
}

/* FONDO OSCURO TRASLÚCIDO (OVERLAY) VENTANA PRIVACIDAD*/
.modal-overlay {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999; /* Asegura que quede por encima de todo el sitio */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65); /* Fondo oscuro suave */
  backdrop-filter: blur(4px); /* Efecto desfoque de fondo */
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* CAJA O VENTANA PRINCIPAL */
.modal-contenido {
  background-color: #ffffff;
  width: 100%;
  max-width: 650px;
  max-height: 85vh; /* Evita que sobrepase el alto de la pantalla */
  border-radius: 10px;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: animarModal 0.3s ease-out;
}

/* Animación de entrada */
@keyframes animarModal {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}









/* ==========================================================
   ESTILOS DE LA VENTANA MODAL (IDÉNTICOS AL FORMULARIO DE CONTACTO)
   ========================================================== */

.modal-contenido-contacto {
  background: var(--white, #ffffff);
  width: 90%;
  max-width: 650px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  border-top: 8px solid var(--primary-color, #008ac7);
  display: flex;
  flex-direction: column;
}

.btn-regresar-menu {
  background: none;
  border: none;
  color: var(--secondary-color, #0056B3);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  transition: opacity 0.2s;
}

.btn-regresar-menu:hover {
  opacity: 0.8;
  text-decoration: underline;
}


/* ==========================================================
   ESTILOS PARA EL ENCABEZADO Y EL BOTÓN CERRAR ANIMADO
   ========================================================== */

/* Contenedor flexible para alinear título e ícono a la derecha */
.modal-header-flex {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

.modal-titulo-privacidad {
  color: #004a98 !important;
  font-size: 26px !important;
  font-family: 'Saira', sans-serif !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

/* Línea debajo del título con el color de los botones de contacto/directorio (#008cb9) */
.modal-linea-color {
  border: 0 !important;
  height: 4px !important;
  background-color: #008cb9 !important;
  width: 100% !important;
  margin-top: 4px !important;
  margin-bottom: 18px !important;
  border-radius: 2px !important;
}

/* Botón de cierre (X) grande, llamativo y ubicado a la derecha */
.modal-cerrar-animado {
  position: static !important; /* Se posiciona naturalmente al extremo derecho por flexbox */
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  background-color: #008cb9 !important; /* Tono de los botones de contacto */
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(0, 140, 185, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  margin-left: 15px !important;
}

/* Animación y efecto al pasar el cursor (Hover) */
.modal-cerrar-animado:hover {
  background-color: #F4B400 !important; /* Amarillo acento institucional */
  color: #004a98 !important;            /* Texto azul oscuro */
  transform: rotate(90deg) scale(1.12) !important; /* Giro dinámico y ligero aumento */
  box-shadow: 0 6px 16px rgba(244, 180, 0, 0.45) !important;
}

.modal-cerrar-animado:active {
  transform: rotate(90deg) scale(0.95) !important;
}

/* ==========================================================
   ESTILOS PARA LISTAS DE VIÑETAS (MÁS SEPARACIÓN Y MÁS COMPACTAS)
   ========================================================== */

.modal-cuerpo ul {
  list-style: none !important;
  padding-left: 25px !important;
  margin: 8px 0 !important;
}

.modal-cuerpo li {
  position: relative !important;
  padding-left: 32px !important; /* Aumenta este valor para dar más margen y separar el texto de la viñeta */
  margin-bottom: 2px !important; /* Espacio mínimo entre cada punto */
  font-size: 1rem;
  line-height: 1.25 !important; /* Menor espacio entre línea y línea dentro del mismo texto */
  color: #333333;
}

/* Creación del punto (viñeta) personalizado */
.modal-cuerpo li::before {
  content: "•";
  position: absolute;
  left: 6px; /* Posición de la viñeta un poco más adentro */
  top: -2px;
  color: #0054BF; /* Color azul institucional */
  font-size: 1.5rem;
  font-weight: bold;
}


/* ==========================================================
   ESTILOS PARA TARJETAS Y MODAL DE GALERÍA DE EVENTOS
   ========================================================== */

.eventos-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.card-evento-galeria {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-evento-galeria:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card-evento-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-evento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-evento-galeria:hover .card-evento-img img {
  transform: scale(1.05);
}

.badge-galeria {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 84, 191, 0.88);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(2px);
}

.card-evento-info {
  padding: 20px;
  flex-grow: 1;
}

.card-evento-info h3 {
  color: #004a98;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-evento-info p {
  color: #555555;
  font-size: 0.98rem;
  line-height: 1.5;
}


/* ==========================================
   MODAL Y GALERÍA DE IMÁGENES (Definitivo)
   ========================================== */

/* ==========================================
   CONFIGURACIÓN SEGURA Y ESTABLE DE LA GALERÍA
   ========================================== */

/* 1. El modal por defecto oculto */
#modalGaleriaEvento {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
  z-index: 99999;
  box-sizing: border-box;
}

/* 2. Pantalla completa centrado */
#modalGaleriaEvento.active {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* 3. Caja principal del modal */
#modalGaleriaEvento .modal-galeria-box {
  background: #111111 !important;
  width: 95vw !important;
  max-width: 1100px !important;
  max-height: 92vh !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 10px 35px rgba(0,0,0,0.8) !important;
  border: none !important;
}

/* 4. Barra de título azul institucional con el botón cerrar a la derecha */
#modalGaleriaEvento .modal-galeria-header {
  background-color: #004a98 !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  margin: 0 !important;
}

#modalGaleriaEvento .modal-galeria-header h3 {
  margin: 0 !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding-right: 15px !important;
  line-height: 1.2 !important;
}

/* 5. Botón cerrar "X" integrado a la derecha en la barra azul */
#modalGaleriaEvento .close-modal-galeria,
#modalGaleriaEvento #closeGaleriaBtn {
  position: static !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  margin-left: 15px !important;
  flex-shrink: 0 !important;
}

#modalGaleriaEvento .close-modal-galeria:hover,
#modalGaleriaEvento #closeGaleriaBtn:hover {
  background-color: #F4B400 !important;
  color: #004a98 !important;
  transform: scale(1.1) !important;
}

/* 6. Visor central de la foto a tamaño máximo */
#modalGaleriaEvento .modal-galeria-body {
  position: relative !important;
  background: #111111 !important;
  flex-grow: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 400px !important;
  padding: 10px 0 !important;
  box-sizing: border-box !important;
}

#modalGaleriaEvento .galeria-img-container {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#modalGaleriaEvento #galeriaImagenPrincipal {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 75vh !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
}

/* 7. Footer inferior estable con fondo degradado para el contador */

/* 2. Hacemos que el cuerpo de la galería permita posicionar elementos dentro de él */
#modalGaleriaEvento .modal-galeria-body {
  position: relative !important;
}

/* 3. Estilo y posición flotante del contador sobre la imagen */
#modalGaleriaEvento #galeriaContador {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9), rgba(20, 20, 20, 0.95)) !important; /* Degradado idéntico al estilo de los botones */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 6px 18px !important;
  border-radius: 20px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 1020 !important;
  display: inline-block !important;
}

/* 8. Flechas de navegación laterales */
#modalGaleriaEvento .galeria-btn-prev,
#modalGaleriaEvento .galeria-btn-next,
#modalGaleryEvent button.prev,
#modalGaleriaEvento button.next,
#modalGaleriaEvento .galeria-nav {
  background-color: rgba(50, 50, 50, 0.8) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 4px !important;
  width: 45px !important;
  height: 60px !important;
  font-size: 24px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1010 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
  transition: background-color 0.3s ease !important;
}

#modalGaleriaEvento .galeria-btn-prev,
#modalGaleriaEvento button.prev,
#modalGaleriaEvento .galeria-nav.prev {
  left: 15px !important;
}

#modalGaleriaEvento .galeria-btn-next,
#modalGaleriaEvento button.next,
#modalGaleriaEvento .galeria-nav.next {
  right: 15px !important;
}

#modalGaleriaEvento .galeria-btn-prev:hover,
#modalGaleriaEvento .galeria-btn-next:hover,
#modalGaleriaEvento button.prev:hover,
#modalGaleriaEvento button.next:hover,
#modalGaleriaEvento .galeria-nav:hover {
  background-color: rgba(20, 20, 20, 0.95) !important;
  border-color: #ffffff !important;
}

/* Eliminar cualquier separación entre la barra azul y el visor de la foto */
#modalGaleriaEvento .modal-galeria-box {
  gap: 0 !important;
}

#modalGaleriaEvento .modal-galeria-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}




