/* --- HERO SECTION CALENDARIO --- */
.calendario-hero {
    position: relative;
    width: 100%;
    /* Aumentamos de 80vh a 90vh para compensar el tamaño del menú */
    height: 90vh;
    background: url('/img/fotografias/428350830_844398901048390_9093391851887890427_n.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    /* Aplicamos animación al contenedor (imagen de fondo) */
    animation: heroBackground 1.8s ease-out forwards;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.contenido-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    /* NUEVO: Empujamos el contenedor hacia abajo para despegarlo del header */
    margin-top: 150px; 
    /* Animación aplicada solo aquí */
    animation: fadeInTitle 1.2s ease-out forwards;
}


.titulo-calendario {
    font-family: 'Sheepman-Slanted-Regular';
    font-size: 10rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    /* ESTA ES LA CLAVE: Debe ser el mismo nombre que en tus otras páginas */
    letter-spacing: 2px !important;
    margin: 0 !important;
    color: white !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4) !important;
}

.linea-decorativa {
  content: "";
  position: absolute;
  bottom: 8px; 
  left: 50%;
  transform: translateX(-50%); /* Mantiene la línea decorativa centrada justo debajo del texto */
  width: 600px;
  height: 5px;
  background-image: url('../img/institucion/intitucion_after.png');
  background-size: cover;
  background-repeat: no-repeat;
}


.calendario-eventos {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.header-calendario {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.btn-nav {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.btn-nav-minimal {
    background: transparent !important;
    border: 1px solid #ccc !important; /* Un borde muy fino y sutil */
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important; /* Forma circular perfecta */
    cursor: pointer !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn-nav-minimal:hover {
    background: #f0f0f0 !important;
    border-color: #333 !important;
    color: #000 !important;
}

/* Opcional: Eliminar el borde si quieres que sea aún más minimalista */
/* .btn-nav-minimal { border: none !important; } */

.btn-nav:hover { background: #0056b3; }

.dia-evento {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.fecha-numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: #001c3a;
}

.item-evento {
    margin-bottom: 20px;
}

.item-evento h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.item-evento p {
    margin: 5px 0 10px 0;
    color: #555;
    font-size: 0.85rem;
}

.barra-color { height: 3px; width: 30px; }
.gris { background: #596161; }
.azul { background: #2980b9; }
.rojo { background: #c0392b; }
.amarillo { background: #f1c40f; }



#mesTitulo {
    /* Aquí pones la fuente que quieras */
    font-family: 'Sheepman-Slanted-Regular';
    
    /* Estilos estéticos */
    font-size: 4rem !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    margin: 0 !important;
}



.controles { display: flex; gap: 20px; }
#prevBtn, #nextBtn {
    background: rgb(4, 112, 228);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2rem;
}
#prevBtn:hover, #nextBtn:hover { background: #0056b3; }


@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Esta clase es la que usaremos para controlar la animación */
.lista-eventos {
    /* La animación se controla desde el JS, pero podemos dejar un estado inicial */
    opacity: 0; 
}


@keyframes fadeInTitle {
    0% {
        opacity: 0;
        transform: translateY(15px); /* Un movimiento muy sutil */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado inicial: oculto y ligeramente desplazado */
.footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Clase que JS activará cuando el footer sea visible */
.footer.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {

     .redes {
    display: none !important;
  }
    .titulo-calendario {
        font-size: 3rem;
    }
    .linea-decorativa {
        width: 100px;
    }
}


/* --- RESPONSIVE: CALENDARIO HERO --- */

@media (max-width: 768px) {
    /* Reducimos el Hero un poco para que no ocupe tanto espacio en el celular */
    .calendario-hero {
        height: 60vh !important; 
    }

    /* Reducimos el tamaño de la fuente para evitar que se corte */
    .titulo-calendario {
        font-size: 2.5rem !important;
        letter-spacing: 2px !important;
    }

    /* Ajustamos la línea para que sea proporcional al título */
    .linea-decorativa {
        width: 150px !important;
        height: 4px !important;
        margin-top: 15px !important;
    }
}

/* Ajuste extra para celulares muy pequeños (menos de 480px) */
@media (max-width: 480px) {
    .titulo-calendario {
        font-size: 5rem !important;
    }
    
    .linea-decorativa {
        width: 100px !important;
    }
}


@media (max-width: 768px) {
  .footer-container, 
  .footer-left, 
  .footer-right, 
  .footer-col, 
  .contact-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
  }

  .footer-container {
    padding-left: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-left {
    flex-direction: row !important; /* Mantenemos los logos en horizontal si quieres */
    align-items: center !important;
  }

  .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
  }
  }

  /* ==========================================================================
   AJUSTES DEL CALENDARIO: MODALIDAD Y CATEGORÍAS (Lado a Lado)
   ========================================================================== */

/* Aseguramos que la lista de competencias ocupe el resto del espacio */
.lista-competencias {
    flex: 1;
    width: 100%;
}

/* El item del evento ahora es flex para separar info a la izq y categorías a la der */
.item-evento {
    display: flex;
    justify-content: space-between; /* Empuja las categorías a la derecha */
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

/* ==========================================================================
   DISEÑO PREMIUM: INFO Y MODALIDAD (Lado Izquierdo)
   ========================================================================== */

.info-principal {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Asegura alineación perfecta a la izquierda */
}

/* La Etiqueta Minimalista (Overline) - ¡AHORA SÍ LEGIBLE! */
.modalidad-pill {
    /* Usamos tipografías del sistema ultra legibles en lugar de Sheepman */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem; /* Un pelín más grande */
    font-weight: 800; /* Bien gruesa para que resalte la palabra */
    text-transform: uppercase;
    letter-spacing: 1px; /* Espaciado ajustado para mejor lectura */
    padding: 5px 12px; /* Más aire interno para que respire el texto */
    border-radius: 6px; 
    margin-bottom: 8px; 
    display: inline-block;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* Colores dinámicos asegurando el contraste perfecto */
.bg-gris { 
    background-color: #c0c4c4; 
    color: #000000; 
}
.bg-azul { 
    background-color: #2980b9; 
    color: #ffffff; 
}
.bg-rojo { 
    background-color: #c0392b; 
    color: #ffffff; 
}
.bg-amarillo { 
    background-color: #FFD901; /* Tu amarillo institucional de la FEC */
    color: #000000; /* Negro puro para máximo contraste en el amarillo */
}

/* Refinamiento del título y ubicación */
.item-evento h3 {
    margin: 0 0 5px 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.info-lugar {
    font-size: 0.85rem;
    color: #777;
    margin: 0 0 15px 0; /* Más espacio antes de la línea de color */
    letter-spacing: 0.3px;
}

/* ==========================================================================
   DISEÑO PREMIUM: TABLA DE CATEGORÍAS (Lado Derecho)
   ========================================================================== */

.categorias-contenedor {
    background: #ffffff; /* Fondo blanco puro */
    border: 1px solid #f0f0f0; /* Borde ultra sutil */
    border-radius: 12px; /* Redondeado amigable */
    padding: 12px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* Sombra de profundidad mínima */
}

.cat-titulo {
    font-family: 'Sheepman-Bold', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: center;
    color: #1b50b3; /* Gris en lugar de azul para no competir con los colores del evento */
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.categorias-grid {
    display: flex;
    gap: 15px; /* Más aire entre letras */
}

.cat-columna {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 16px;
}

/* Letras de las categorías (P, I, P.J, etc) */
.cat-letra {
    font-family: 'Raleway-Light', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: #25282A;
    border-bottom: 2px solid #eee; /* Línea separadora limpia */
    padding-bottom: 6px;
    margin-bottom: 6px;
    width: 100%;
    text-align: center;
}

/* Iconos de estrella */
.cat-icono {
    font-size: 1rem;
    color: #1a1a1a; /* Estrella negra pura y sólida */
}

/* Guión minimalista para inactivos */
.cat-icono .inactivo {
    color: #dcdcdc;
    font-size: 0.8rem;
    font-weight: 300;
}

/* --- RESPONSIVE PARA CELULARES --- */
@media (max-width: 768px) {
    /* En móviles, la información va arriba y las categorías abajo */
    .item-evento {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .categorias-contenedor {
        width: 100%;
        box-sizing: border-box;
    }
    
    .categorias-grid {
        justify-content: space-between; /* Distribuye las letras a lo ancho del móvil */
    }
}
