﻿/* Source: institucional/static/institucional/css/informacion.css */
/* ============================================ */
/* 🎨 VARIABLES CSS (Design Tokens)            */
/* ============================================ */


/* ============================================ */
/* 🟩 HERO INFORMACIÓN                         */
/* ============================================ */

.informacion-hero {
  background: linear-gradient(135deg, #f0f4f8, var(--bg-lighter));
  padding: 120px 20px 60px 20px;
  text-align: center;
}

/* ============================================ */
/* 📌 ENCABEZADO                               */
/* ============================================ */

.informacion-header {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 35px 45px;
  max-width: 850px;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.informacion-header:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.informacion-header h1 {
  font-size: 2.6rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.2;
}

.informacion-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================ */
/* 🟦 LISTA DE INFORMACIÓN                     */
/* ============================================ */

.informacion-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl) 20px var(--spacing-3xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================ */
/* 🗂️ TARJETA DE INFORMACIÓN                   */
/* ============================================ */

.info-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-md) 25px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow) ease;
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.info-card:hover::before {
  left: 100%;
}

/* ============================================ */
/* 🎯 ICONOS                                   */
/* ============================================ */

.info-icon {
  width: 70px;
  height: 70px;
  margin-bottom: var(--spacing-sm);
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  position: relative;
  z-index: 1;
}

.info-card:hover .info-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(360deg);

}

.info-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(5000%) hue-rotate(200deg) brightness(90%) contrast(90%);
  transition: filter var(--transition-fast);
}

.info-card:hover .info-icon img {
  filter: brightness(0) invert(1);
}

/* ============================================ */
/* 📝 TÍTULOS                                  */
/* ============================================ */

.info-card h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* ============================================ */
/* 📄 PÁRRAFOS                                 */
/* ============================================ */

.info-card p {
  font-size: 1rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
  position: relative;
  z-index: 1;
}

/* ============================================ */
/* 🔗 LINKS                                    */
/* ============================================ */

.info-card a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
  position: relative;
  z-index: 1;
}

.info-card a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.info-card a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================ */
/* 📱 DISEÑO RESPONSIVO                        */
/* ============================================ */

@media (max-width: 900px) {
  :root {
    --spacing-xl: 40px;
    --spacing-2xl: 40px;
  }

  .informacion-header {
    padding: 30px 35px;
    margin-bottom: var(--spacing-xl);
  }

  .informacion-header h1 {
    font-size: 2.2rem;
  }

  .informacion-header p {
    font-size: 1.05rem;
  }

  .informacion-lista {
    gap: 25px;
    padding: var(--spacing-2xl) 20px 60px;
  }

  .info-card {
    padding: var(--spacing-md) 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --spacing-xl: 30px;
    --spacing-2xl: 30px;
    --spacing-3xl: 50px;
  }

  .informacion-hero {
    padding: 80px 15px 40px;
  }

  .informacion-header {
    padding: 25px 20px;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-sm);
  }

  .informacion-header h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .informacion-header p {
    font-size: 1rem;
  }

  .informacion-lista {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 15px 40px;
  }

  .info-card {
    padding: 20px 18px;
  }

  .info-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }

  .info-card h2 {
    font-size: 1.3rem;
  }

  .info-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .informacion-header {
    padding: 20px 15px;
  }

  .informacion-header h1 {
    font-size: 1.5rem;
  }

  .informacion-header p {
    font-size: 0.95rem;
  }

  .info-card h2 {
    font-size: 1.15rem;
  }
}

/* ============================================ */
/* ♿ ACCESIBILIDAD (WCAG 2.2)                 */
/* ============================================ */

/* Focus visible */
.info-card:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

/* Alto contraste */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000;
    --text-secondary: #000;
    --text-tertiary: #000;
  }

  .informacion-header h1,
  .info-card h2 {
    color: #000;
  }

  .informacion-header p,
  .info-card p {
    color: #000;
  }

  .info-icon {
    background: #d0d0d0;
    border: 2px solid #000;
  }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .informacion-header::before,
  .info-card::before {
    display: none;
  }
}

/* ============================================ */
/* 🎨 ANIMACIONES DE ENTRADA                   */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .informacion-header {
    animation: fadeInUp 0.6s ease-out;
  }

  .info-card {
    animation: fadeInUp 0.6s ease-out;
  }

  .info-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .info-card:nth-child(2) {
    animation-delay: 0.2s;
  }

  .info-card:nth-child(3) {
    animation-delay: 0.3s;
  }

  .info-card:nth-child(4) {
    animation-delay: 0.4s;
  }

  .info-card:nth-child(5) {
    animation-delay: 0.5s;
  }

  .info-card:nth-child(6) {
    animation-delay: 0.6s;
  }
}

/* ============================================ */
/* 🖨️ IMPRESIÓN                                */
/* ============================================ */

@media print {
  .informacion-hero {
    padding: 20px;
  }

  .informacion-header,
  .info-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .informacion-header::before,
  .info-card::before {
    display: none;
  }
}


/* ============================================ */
/* Extra bloques                               */
/* ============================================ */


.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  justify-content: center;
  place-items: center;
}

.info-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border-top: 5px solid #08306b;
  /* El azul de tu colegio */
}

.info-card:hover {
  transform: translateY(-10px);
}

@media (max-width: 1023px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-subgroup {
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
}

.contact-subgroup small {
  color: #666;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.7rem;
}

.ws-btn {
  display: block;
  color: #25d366;
  /* Color oficial WhatsApp */
  text-decoration: none;
  font-weight: bold;
  margin: 5px 0;
}


.card-divider {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 15px 0;
}

/* ============================================ */
/* Fin EXTRA                                   */
/* ============================================ */

/* ============================================ */
/* 🗺️ CONTENEDOR DEL MAPA                     */
/* ============================================ */

.mapa-wrapper {
  padding: 0 20px;
  /* Evita que toque los bordes en móvil */
}

.ubicacion-mapa {
  max-width: 1000px;
  margin: 50px auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-mapa);
  transition: all var(--transition-fast) ease-in-out;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  /* Color de carga */
}

/* Capa de información sobre el mapa */
.mapa-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
  /* Permite que el click pase al mapa */
}

.mapa-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mapa-badge img {
  width: 20px;
  height: 20px;
}

.mapa-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #08306b;
}

/* Hover effects */
.ubicacion-mapa:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-mapa-hover);
}

/* Asegurar que el iframe cubra todo */
.ubicacion-mapa iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
  filter: grayscale(0.2) contrast(1.1);
  /* Efecto visual elegante */
  transition: filter 0.5s ease;
}

.ubicacion-mapa:hover iframe {
  filter: grayscale(0) contrast(1);
}

/* Responsivo para tablets/celulares */
@media (max-width: 768px) {
  .ubicacion-mapa {
    aspect-ratio: 4 / 3;
    /* Más alto en móviles */
    margin: 30px auto;
  }

  .mapa-badge {
    padding: 8px 15px;
  }
}

/* Botón visitar */
.btn-visitar {
  display: inline-block;
  background-color: #004080;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover .btn-visitar {
  background-color: #0066cc;
  transform: translateY(-2px);
}

.info-card a {
  color: #d0d0d0
}

/* ============================================ */
/* 🛠️ SECCIÓN INSCRIPCIÓN (NUEVO)               */
/* ============================================ */

/* Navegación de Niveles */
.inscripcion-nav {
  margin-top: -30px;
  /* Sube un poco para entrar en la zona del hero */
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 10;
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.btn-nivel {
  background: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-nivel img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-nivel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary-light);
}

.btn-nivel.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary-light);
}

/* Layout de contenido */
.inscripcion-layout {
  max-width: 1200px;
  margin: 0 auto var(--spacing-3xl);
  padding: 0 20px;
}

.inscripcion-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

/* Carta Principal (Texto) */
.inscripcion-main-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

/* Sidebar de Documentos */
.inscripcion-sidebar {
  background: var(--bg-lighter);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  border-top: 5px solid var(--primary);
}

.sidebar-header h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.sidebar-header p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-md);
}

/* Items de Documento */
.documento-item {
  background: var(--white);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  transition: transform 0.2s ease;
}

.documento-item:hover {
  transform: scale(1.02);
}

.doc-icon-circle {
  width: 45px;
  height: 45px;
  background: #ffebee;
  /* Fondo rojizo suave para PDF */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d32f2f;
  font-size: 1.2rem;
}

.doc-details h4 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-secondary);
}

.link-download {
  font-size: 0.85rem;
  color: var(--primary) !important;
  font-weight: bold;
  text-decoration: none;
}

/* Adaptación Móvil */
@media (max-width: 900px) {
  .inscripcion-grid {
    grid-template-columns: 1fr;
  }

  .inscripcion-main-card {
    padding: var(--spacing-md);
  }
}

/* ============================================ */
/* 🖋️ ESTILOS PARA CONTENIDO DE CKEDITOR        */
/* ============================================ */

.ck-content {
  text-align: left;
  /* Corregimos el centrado heredado */
  color: var(--text-secondary);
  line-height: 1.8;
}

.ck-content h2,
.ck-content h3 {
  color: var(--text-primary);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.ck-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--bg-lighter);
  padding-bottom: 10px;
}

.ck-content p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.05rem;
}

/* Estilos para las Listas (Puntos) */
.ck-content ul,
.ck-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: 40px;
  /* Espacio para que los puntos no queden fuera */
}

.ck-content li {
  margin-bottom: 8px;
  position: relative;
}

/* Personalización de las viñetas para que combinen con tu azul */
.ck-content ul li::marker {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Estilo para negritas */
.ck-content strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ============================================ */
/* 🛠️ AJUSTES DE CONTRASTE Y BOTONES           */
/* ============================================ */

.btn-nivel.active {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary-light) !important;
}

/* Filtro para que el icono negro se vuelva blanco en el fondo azul */
.btn-nivel.active .nivel-icon-img {
  filter: brightness(0) invert(1) !important;
}

.nivel-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

/* ============================================ */
/* 📥 DISEÑO MINIMALISTA (CHECKLIST STYLE)      */
/* Scroll sutil si hay muchos archivos */
.documentos-lista-moderna {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 5px;
}

.documentos-lista-moderna::-webkit-scrollbar {
  width: 4px;
}

.documentos-lista-moderna::-webkit-scrollbar-thumb {
  background: var(--bg-lighter);
  border-radius: 10px;
}

/* ============================================ */
/* 📥 SIDEBAR DE DOCUMENTACIÓN (CORREGIDO)      */
/* ============================================ */

.inscripcion-sidebar {
  background: transparent;
  padding: 0;
}

.sidebar-fixed-content {
  position: sticky;
  top: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  /* Eliminamos el border-top que causaba la mancha */
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  /* Usamos tu variable de sombra suave */
  overflow: hidden;
}

/* Encabezado del Sidebar */
.sidebar-header {
  text-align: left;
  /* Alineado a la izquierda según tu imagen */
  margin-bottom: var(--spacing-md);
}

.sidebar-header i.main-folder-icon {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: block;
}

.sidebar-header h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 0;
}

.sidebar-header p {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  margin: 5px 0 0 0;
}

/* Filas de documentos */
.documento-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px 20px 10px;
  border-bottom: 1px solid var(--bg-light);
}

.documento-row:last-child {
  border-bottom: none;
}

/* El efecto Hover */
.documento-row:hover {
  background-color: var(--bg-light);
  /* Fondo suave */
}

/* Opcional: Si quieres que el icono PDF también reaccione al tocar la fila */
.documento-row:hover .icon-pdf {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.doc-info-minimal {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Icono PDF pequeño de la imagen */
.doc-info-minimal i {
  color: #e74c3c;
  /* Rojo PDF */
  font-size: 1.3rem;
}

.doc-info-minimal h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Botón Circular de Descarga */
.btn-icon-download {
  width: 42px;
  height: 42px;
  background: var(--bg-light);
  color: var(--primary-dark) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-icon-download:hover {
  background: var(--primary-light);
  color: var(--white) !important;
  transform: scale(1.05);
}

/* ============================================ */
/* 📅 CALENDARIO ESCOLAR (TIMELINE)            */
/* ============================================ */

/* Ajuste de Espaciado para el Calendario */
.calendario-section {
  padding-top: 120px;
  /* Espacio para que no se pegue al menú fixed */
  padding-bottom: 60px;
  background-color: var(--bg-light);
  /* Un fondo gris muy tenue para dar profundidad */
  min-height: 100vh;
}

.calendario-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Título de la sección */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-dark);
  font-size: 2.2rem;
  position: relative;
}

/* Opcional: Una línea decorativa bajo el título */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.timeline {
  position: relative;
  padding-left: 50px;
}

/* Línea vertical central */
.timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--bg-lighter);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-fast);
}

/* El círculo de la línea de tiempo */
.timeline-item::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 15px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}

/* CONTENIDO DEL EVENTO */
.timeline-content {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-light);
}

.timeline-content h3 {
  margin: 5px 0;
  color: var(--primary-dark);
}

.timeline-date {
  position: absolute;
  left: -90px;
  text-align: right;
  width: 70px;
}

.timeline-date .day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.timeline-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ESTADOS: PASADO, HOY, PROXIMO */

/* Evento Pasado: Se opaca y escala de grises */
.timeline-item.pasado {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.timeline-item.pasado::after {
  border-color: var(--text-tertiary);
  background: var(--bg-light);
}

.timeline-item.pasado .status-badge {
  background: #e0e0e0;
  color: #777;
}

/* Evento Hoy: Resaltado especial */
.timeline-item.hoy .timeline-content {
  border: 2px solid var(--primary-light);
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
}

.timeline-item.hoy .status-badge {
  background: var(--primary);
  color: var(--white);
  animation: pulse 2s infinite;
}

/* Badge de estado general */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-lighter);
  color: var(--primary);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Badge icons */
.status-badge i {
  margin-right: 5px;
  font-size: 0.8rem;
}

/* Duración del evento */
.duration-tag {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Estado de calendario vacío */
.empty-calendar {
  text-align: center;
  padding: 50px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-tertiary);
}

.empty-calendar i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--bg-lighter);
}

/* Source: institucional/static/institucional/css/historia.css */
/* ============================================ */
/* 🟩 HERO HISTORIA                            */
/* ============================================ */

.historia-hero {
  background: linear-gradient(135deg, #f0f4f8, #e6eef5);
  padding: 120px 20px 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.historia-header {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 40px 50px;
  max-width: 850px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.historia-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.historia-header:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.historia-header:hover::before {
  left: 100%;
}

.historia-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.historia-header:hover .historia-icon {
  background: linear-gradient(135deg, #08306b, #0a427c);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(8, 48, 107, 0.3);
}

.historia-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.historia-header:hover .historia-icon img {
  filter: brightness(0) invert(1);
}

.historia-header h1 {
  font-size: 2.6rem;
  color: #08306b;
  margin-bottom: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.historia-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

.historia-header p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================ */
/* 🟦 CONTENIDO HISTORIA - REORGANIZADO        */
/* ============================================ */

.historia-contenido-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Cada item historia (texto + imagen) */
.historia-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

/* Orden inverso para alternar */
.historia-item.reverse {
  grid-template-columns: 1fr 1fr;
}

.historia-item.reverse .historia-bloque {
  order: 2;
}

.historia-item.reverse .historia-imagen {
  order: 1;
}

/* Bloques de texto */
.historia-bloque {
  padding: 35px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
  height: 100%;
}

.historia-bloque:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-left-color: #FFD700;
}

.bloque-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.bloque-icon {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.historia-bloque:hover .bloque-icon {
  transform: scale(1.2) rotate(10deg);
}

.historia-bloque h2 {
  font-size: 2rem;
  color: #08306b;
  margin: 0;
  font-weight: 600;
}

.historia-bloque p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.historia-bloque p:last-child {
  margin-bottom: 0;
}

/* Imágenes */
.historia-imagen {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  cursor: pointer;
  height: 100%;
}

.historia-imagen:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.historia-imagen img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.historia-imagen:hover img {
  transform: scale(1.08);
}

.historia-imagen figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.historia-imagen:hover figcaption {
  transform: translateY(0);
}

/* ============================================ */
/* 🏆 SECCIÓN DE LOGROS                        */
/* ============================================ */

.logros-section {
  padding: 70px 20px;
  background: #c9c9c9;
  text-align: center;
  color: white;
  margin-bottom: -60px;
}

.logros-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 600;
  color: #08306b;
  position: relative;
  display: inline-block;
}

.logros-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FFD700;
  border-radius: 2px;
}

.logros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.logro-item {
  background: #08306bdf;
  backdrop-filter: blur(10px);
  padding: 35px 25px;
  border-radius: 15px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: all 0.4s ease;
}

.logro-item:hover {
  transform: translateY(-10px);
  background: #08306bdf;
  border-color: #FFD700;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.logro-numero {
  font-size: 3rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.logro-item:hover .logro-numero {
  transform: scale(1.15);
}

.logro-item p {
  font-size: 1.1rem;
  color: white;
  margin: 0;
  font-weight: 300;
}

/* ============================================ */
/* 📱 DISEÑO RESPONSIVO                        */
/* ============================================ */

@media (max-width: 900px) {
  .historia-hero {
    padding: 100px 20px 40px;
    min-height: auto;
  }

  .historia-header {
    padding: 35px 30px;
  }

  .historia-icon {
    width: 70px;
    height: 70px;
  }

  .historia-header h1 {
    font-size: 2.2rem;
  }

  .historia-header p {
    font-size: 1.05rem;
  }

  .historia-contenido-wrapper {
    padding: 40px 20px;
  }

  /* En tablet: una columna */
  .historia-item,
  .historia-item.reverse {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 50px;
  }

  /* Resetear orden */
  .historia-item.reverse .historia-bloque,
  .historia-item.reverse .historia-imagen {
    order: 0;
  }

  .historia-bloque {
    padding: 28px;
  }

  .historia-bloque h2 {
    font-size: 1.8rem;
  }

  .historia-imagen img {
    min-height: 250px;
  }

  .logros-section {
    padding: 50px 15px;
  }

  .logros-section h2 {
    font-size: 2rem;
  }

  .logros-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .historia-hero {
    padding: 90px 15px 30px;
  }

  .historia-header {
    padding: 30px 25px;
  }

  .historia-icon {
    width: 60px;
    height: 60px;
  }

  .historia-header h1 {
    font-size: 2rem;
  }

  .historia-header p {
    font-size: 1rem;
  }

  .historia-contenido-wrapper {
    padding: 30px 15px;
  }

  .historia-item {
    margin-bottom: 35px;
  }

  .historia-bloque {
    padding: 25px 20px;
  }

  .bloque-header {
    gap: 12px;
  }

  .bloque-icon {
    font-size: 2rem;
  }

  .historia-bloque h2 {
    font-size: 1.6rem;
  }

  .historia-bloque p {
    font-size: 1rem;
    text-align: left;
  }

  .historia-imagen img {
    min-height: 200px;
  }

  .logros-section {
    padding: 40px 15px;
  }

  .logros-section h2 {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }

  .logros-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .logro-numero {
    font-size: 2.5rem;
  }

  .logro-item p {
    font-size: 1rem;
  }
}

/* ============================================ */
/* ♿ MEJORAS DE ACCESIBILIDAD                 */
/* ============================================ */

.historia-bloque:focus-within,
.historia-imagen:focus-within,
.logro-item:focus-within {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

@media (prefers-contrast: high) {
  .historia-header h1,
  .historia-bloque h2,
  .historia-bloque p {
    color: #000;
  }

  .logros-section {
    background: #000;
  }

  .logro-item {
    border-color: #FFD700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .historia-header,
  .historia-icon,
  .historia-bloque,
  .historia-imagen,
  .historia-imagen img,
  .logro-item,
  .logro-numero,
  .bloque-icon {
    transition: none;
  }

  .historia-header::before {
    display: none;
  }
}

/* ============================================ */
/* 🎨 ANIMACIONES DE ENTRADA                   */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .historia-item {
    animation: fadeInUp 0.6s ease-out;
  }

  .historia-item:nth-child(1) { animation-delay: 0.1s; }
  .historia-item:nth-child(2) { animation-delay: 0.3s; }
  .historia-item:nth-child(3) { animation-delay: 0.5s; }
}

/* Source: institucional/static/institucional/css/junta.css */
/* 🟩 HERO JUNTA */
.junta-hero {
  background: linear-gradient(135deg, #f0f4f8, #e6eef5);
  padding: 100px 20px 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.junta-header {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 35px 45px;
  max-width: 850px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.junta-header:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.junta-header h1 {
  font-size: 2.6rem;
  color: #003366;
  margin-bottom: 18px;
  font-weight: 700;
}

.junta-header p {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* 🟦 LISTA DE MIEMBROS */
.junta-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px 20px 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🗂️ TARJETA DE MIEMBRO */
.junta-card {
  background-color: #fff;
  border-radius: 18px;
  padding: 35px 30px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: auto; /* Se ajusta al contenido */
}

/* Hover efecto */
.junta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.14);
}

/* Imagen de miembro */
.junta-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 18px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.junta-card:hover img {
  transform: scale(1.05);
}

/* Nombres y cargos */
.junta-card h2,
.junta-card p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  text-align: center;
  margin: 0 0 8px 0;
}

.junta-card h2 {
  font-size: 1.5rem;
  color: #003366;
  font-weight: 600;
}

.junta-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* 📱 RESPONSIVO */
@media (max-width: 768px) {
  .junta-lista {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .junta-header h1 {
    font-size: 2.2rem;
  }

  .junta-header p {
    font-size: 1rem;
  }

  .junta-card img {
    width: 100px;
    height: 100px;
  }

  .junta-card h2 {
    font-size: 1.3rem;
  }

  .junta-card p {
    font-size: 0.95rem;
  }
}

/* Source: institucional/static/institucional/css/mision-vision.css */
/* ============================================ */
/* 🟩 SECCIÓN HERO MISIÓN Y VISIÓN             */
/* ============================================ */

.mision-vision-hero {
  background: linear-gradient(135deg, #f0f4f8, #e6eef5);
  padding: 120px 20px 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}


/* Contenedor de columnas */
.mision-vision-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================ */
/* 📦 COLUMNAS DE MISIÓN Y VISIÓN              */
/* ============================================ */

.mision-column,
.vision-column {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 40px 30px;
  flex: 1 1 300px;
  max-width: 500px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
  color: #333;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Efecto hover mejorado */
.mision-column:hover,
.vision-column:hover,
.mision-column:focus-within,
.vision-column:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
  background-color: #fafbfc;
}

/* Efecto de brillo sutil en hover */
.mision-column::before,
.vision-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.mision-column:hover::before,
.vision-column:hover::before {
  left: 100%;
}

/* ============================================ */
/* 🎯 ICONOS CIRCULARES CON EFECTO             */
/* ============================================ */

.icon-top {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mision-column:hover .icon-top,
.vision-column:hover .icon-top,
.mision-column:focus-within .icon-top,
.vision-column:focus-within .icon-top {
  background: linear-gradient(135deg, #08306b, #0a427c);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(8, 48, 107, 0.3);
}

.icon-top img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.mision-column:hover .icon-top img,
.vision-column:hover .icon-top img,
.mision-column:focus-within .icon-top img,
.vision-column:focus-within .icon-top img {
  filter: brightness(0) invert(1); /* Icono blanco */
}

/* ============================================ */
/* 📝 TÍTULOS Y TEXTO                          */
/* ============================================ */

.mision-column h2,
.vision-column h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #08306b;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

/* Línea decorativa debajo del título */
.mision-column h2::after,
.vision-column h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

/* Párrafos */
.mision-column p,
.vision-column p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 25px;
  color: #555;
  flex-grow: 1;
}

/* ============================================ */
/* 🖼️ IMÁGENES DEBAJO DEL TEXTO                */
/* ============================================ */

.mision-column img.mision-img,
.vision-column img.vision-img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
  cursor: pointer;
}

.mision-column img.mision-img:hover,
.vision-column img.vision-img:hover,
.mision-column img.mision-img:focus,
.vision-column img.vision-img:focus {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05) contrast(1.05);
  outline: 3px solid #FFD700;
  outline-offset: 3px;
}

/* ============================================ */
/* 🎯 SECCIÓN DE VALORES              */
/* ============================================ */


.valores-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.valores-section h2 {
  font-size: 2.5rem;
  color: #08306b;
  margin-bottom: 50px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.valores-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.valor-item {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: default;
}

.valor-item:hover,
.valor-item:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.valor-icon {
  width: 100%;
  height: 150px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.valor-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.valor-item:hover .valor-icon,
.valor-item:focus-within .valor-icon {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.valor-item:hover .valor-icon img,
.valor-item:focus-within .valor-icon img {
  transform: scale(1.1);
}

.valor-item h3 {
  font-size: 1.5rem;
  color: #08306b;
  margin-bottom: 10px;
  font-weight: 600;
}

.valor-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .valor-icon {
    height: 120px;
  }
}

/* ============================================ */
/* 📱 DISEÑO RESPONSIVO                        */
/* ============================================ */

@media (max-width: 900px) {
  .mision-vision-hero {
    padding: 100px 20px 40px 20px;
    min-height: auto;
  }

  .mision-vision-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .mision-column,
  .vision-column {
    max-width: 90%;
    padding: 30px 25px;
  }

  .mision-column h2,
  .vision-column h2 {
    font-size: 1.8rem;
  }

  .mision-column p,
  .vision-column p {
    font-size: 1rem;
    text-align: left;
  }

  .icon-top {
    width: 70px;
    height: 70px;
  }

  .valores-section {
    padding: 40px 15px;
  }

  .valores-section h2 {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .valores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .valor-item {
    padding: 25px 15px;
  }
}

@media (max-width: 600px) {
  .mision-vision-hero {
    padding: 90px 15px 30px 15px;
  }

  .mision-column,
  .vision-column {
    max-width: 95%;
    padding: 25px 20px;
    border-radius: 12px;
  }

  .mision-column h2,
  .vision-column h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .mision-column p,
  .vision-column p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .icon-top {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .valores-section h2 {
    font-size: 1.7rem;
  }

  .valor-icon {
    font-size: 2.5rem;
  }

  .valor-item h3 {
    font-size: 1.3rem;
  }

  .valor-item p {
    font-size: 0.95rem;
  }
}

/* ============================================ */
/* ♿ MEJORAS DE ACCESIBILIDAD                 */
/* ============================================ */

/* Focus visible para navegación por teclado */
.mision-column:focus-within,
.vision-column:focus-within,
.valor-item:focus-within {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

/* Mejorar contraste de texto en modo alto contraste */
@media (prefers-contrast: high) {
  .mision-column p,
  .vision-column p,
  .valor-item p {
    color: #000;
  }

  .mision-column h2,
  .vision-column h2,
  .valores-section h2,
  .valor-item h3 {
    color: #000;
  }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .mision-column,
  .vision-column,
  .valor-item,
  .icon-top,
  .icon-top img,
  .mision-img,
  .vision-img,
  .valor-icon {
    transition: none;
  }

  .mision-column::before,
  .vision-column::before {
    display: none;
  }
}

/* ============================================ */
/* 🎨 ANIMACIONES DE ENTRADA (Opcional)        */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animación solo si el usuario no ha desactivado las animaciones */
@media (prefers-reduced-motion: no-preference) {
  .mision-column,
  .vision-column {
    animation: fadeInUp 0.6s ease-out;
  }

  .vision-column {
    animation-delay: 0.2s;
  }

  .valor-item {
    animation: fadeInUp 0.5s ease-out;
  }

  .valor-item:nth-child(1) { animation-delay: 0.1s; }
  .valor-item:nth-child(2) { animation-delay: 0.2s; }
  .valor-item:nth-child(3) { animation-delay: 0.3s; }
  .valor-item:nth-child(4) { animation-delay: 0.4s; }
}

/* ============================================ */
/* REGLAMENTO INTERNO                           */
/* ============================================ */

.reglamento-hero {
  padding: 130px 15px 34px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reglamento-header {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 45px 50px;
  max-width: 850px;
  margin-top: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reglamento-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.reglamento-header:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.reglamento-header:hover::before {
  left: 100%;
}

.reglamento-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.reglamento-header:hover .reglamento-icon {
  background: linear-gradient(135deg, #08306b, #0a427c);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(8, 48, 107, 0.3);
}

.reglamento-icon i {
  color: #08306b;
  font-size: 2.35rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.reglamento-header:hover .reglamento-icon i {
  color: #ffffff;
  transform: scale(1.05);
}

.reglamento-header h1 {
  font-size: 2.6rem;
  color: #08306b;
  margin-bottom: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.reglamento-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #08306b);
  border-radius: 2px;
}

.reglamento-header p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

.reglamento-container {
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 32px 20px 0;
}

.reglamento-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.card-header-institucional {
  background: #f8fafc;
  border-bottom: 2px solid #08306b;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-header-institucional h2 {
  margin: 0;
  color: #08306b;
  font-size: 1.4rem;
}

.card-header-institucional p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.reglamento-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #08306b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-item:hover {
  background: #fff7d6;
}

.doc-item-empty {
  justify-content: center;
  padding: 40px;
  color: #94a3b8;
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  padding-right: 20px;
}

.doc-title {
  color: #1e293b;
  font-weight: 600;
  font-size: 1.1rem;
}

.doc-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.btn-view {
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  flex-shrink: 0;
}

.btn-view:hover,
.btn-view:focus {
  background: #b91c1c;
}

@media (max-width: 768px) {
  .reglamento-header {
    padding: 35px 28px;
  }

  .reglamento-header h1 {
    font-size: 2.1rem;
  }

  .doc-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .doc-info {
    padding-right: 0;
  }

  .btn-view {
    width: 100%;
  }
}

/* ============================================ */
/* PAGE HERO SPACING STANDARD                   */
/* ============================================ */

.informacion-hero,
.historia-hero,
.junta-hero,
.mision-vision-hero,
.reglamento-hero {
  background: linear-gradient(135deg, #f0f4f8, #e6eef5);
  padding-top: 130px;
  padding-bottom: 60px;
  min-height: auto;
}

.reglamento-header {
  margin-top: 0;
}

@media (max-width: 768px) {
  .informacion-hero,
  .historia-hero,
  .junta-hero,
  .mision-vision-hero,
  .reglamento-hero {
    padding-top: 112px;
    padding-bottom: 44px;
  }
}

@media (max-width: 480px) {
  .informacion-hero,
  .historia-hero,
  .junta-hero,
  .mision-vision-hero,
  .reglamento-hero {
    padding-top: 104px;
    padding-bottom: 34px;
  }
}
