/* ============================================ */
/* 🎨 VARIABLES CSS (Design Tokens)            */
/* ============================================ */

:root {
  /* Colores */
  --primary-dark: #003366;
  --primary: #004080;
  --primary-light: #0066cc;
  --bg-light: #f0f4f8;
  --bg-lighter: #e6eef5;
  --text-primary: #003366;
  --text-secondary: #444;
  --text-tertiary: #555;
  --white: #fff;

  /* Sombras */
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.14);

  /* Transiciones */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.4s ease;

  /* Espaciado */
  --spacing-xs: 12px;
  --spacing-sm: 18px;
  --spacing-md: 25px;
  --spacing-lg: 30px;
  --spacing-xl: 45px;
  --spacing-2xl: 50px;
  --spacing-3xl: 80px;

  /* Bordes */
  --border-radius: 18px;
  --border-radius-sm: 12px;
}

/* ============================================ */
/* 🟩 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                     */
/* ============================================ */

:root {
  --shadow-mapa: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-mapa-hover: 0 30px 60px rgba(8, 48, 107, 0.15);
}

.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)      */
/* ============================================ */

.sidebar-fixed-content {
  position: sticky;
  top: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  border: 1px solid var(--bg-lighter);
  box-shadow: var(--shadow-sm);
}

.documento-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Empuja el icono al final */
  padding: 15px 0;
  border-bottom: 1px solid var(--bg-light);
  gap: 15px;
}

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

.doc-info-minimal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  /* Toma todo el espacio disponible */
}

.doc-info-minimal i {
  color: #d32f2f;
  /* Color sutil de PDF */
  font-size: 1.1rem;
}

.doc-info-minimal h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.2;
}

/* Botón de descarga (Icono derecha) */
.btn-icon-download {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--primary) !important;
  border-radius: 50%;
  /* Botón circular */
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  /* Evita que el botón se encoja */
}

.btn-icon-download:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 64, 128, 0.2);
}

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