/**
 * Estilos para "Eventos Anteriores a 2022"
 * Usados tanto en el page template completo (eventos-anteriores-2022.php)
 * como en la sección compacta del front-page (seccion-anteriores-2022.php).
 *
 * Tema hijo: Eventos UTP - Hijo
 * Basado en: eventos/css/lista-eventos-anteriores.css (tema padre)
 */


.listaEventosAnteriores {
    padding: 0.4em 1em;
}

/* ── Grid de eventos ────────────────────────────────────────────── */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 5px;
    align-items: stretch;
}

.event-grid>article img {
    max-width: 100%;
    cursor: pointer;
}

/* ── Tarjeta individual ─────────────────────────────────────────── */

.event-item>* {
    word-wrap: break-word;
}

.text {
    padding: 0 20px 20px;
}

.titulo-evento {
    color: var(--institucional, #003d6d);
}

/* ── Badge de fecha flotante ────────────────────────────────────── */

.fecha-evento-flag {
    position: relative;
    top: 80px;
    left: 10px;
    width: 58px;
    height: 58px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: 'Oswald', sans-serif;
    margin-top: -15px;
    z-index: 1;
}

.fecha-dia {
    font-family: 'Oswald', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #003d6d;
    line-height: 1;
}

.fecha-mes {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

/* ── Navegación / barra de búsqueda ─────────────────────────────── */

.navegacion {
    padding-bottom: 40px;
    align-items: center;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #fff !important;
}

/* ── Modal de evento ────────────────────────────────────────────── */

.img-modal-event {
    width: 100%;
}

.modal-body.evento-single {
    word-break: break-all;
}

/* ── Botones ────────────────────────────────────────────────────── */

.btn-load-events {
    background-color: #003e69;
    text-align: center;
    padding: 10px 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-load-events:hover {
    background-color: #005a9e;
    color: #fff;
}

a {
    cursor: pointer;
}

/* ── Íconos de ayuda (Solicitud / Política) ─────────────────────── */

.icono-ayuda-anterior {
    justify-content: center;
    display: flex;
    align-content: center;
    margin-bottom: 10px;
}

/* ── Sección compacta en front-page ────────────────────────────── */

.seccion-anteriores-2022 {
    padding-bottom: 40px;
}

.seccion-anteriores-2022 .titulo-principal {
    font-size: 2rem;
    font-weight: 700;
    color: var(--institucional, #003d6d);
}

.seccion-anteriores-2022 .titulo-principal a {
    font-family: 'Oswald' !important;
}

.seccion-anteriores-2022 .titulo-principal a {
    color: inherit;
    text-decoration: none;
}

.seccion-anteriores-2022 .titulo-principal a:hover {
    text-decoration: underline;
}

.btn-ver-todos-anteriores {
    font-size: 0.875rem;
    color: #003e69;
    text-decoration: none;
    border: 1px solid #003e69;
    border-radius: 4px;
    padding: 4px 12px;
    white-space: nowrap;
}

.btn-ver-todos-anteriores:hover {
    background-color: #003e69;
    color: #fff;
}

/* Grid compacto: máximo 3 columnas para no sobrecargar el front-page */
.event-grid--compacto {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .icono-ayuda-anterior {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0;
        justify-content: flex-end;
    }
}

@media (min-width: 992px) {
    .icono-ayuda-anterior {
        justify-content: flex-end;
    }
}

@media (min-width: 1200px) {
    .event-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-gap: 30px;
    }

    .event-grid--compacto {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
    }

    .icono-ayuda-anterior {
        margin-bottom: 0;
    }

    .modal-dialog.info-general {
        max-width: 1200px;
    }
}