/*
 * SMDP - Eventos y Actividades
 * v1.0.0
 */


/* =========================================================
   CONTENEDOR
   ========================================================= */

.ep-eventos {
    width: 100%;
}


/* =========================================================
   GRID
   ========================================================= */

.ep-eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}


/* =========================================================
   EVENTO
   ========================================================= */

.ep-evento {
    min-width: 0;
}


/* =========================================================
   CARTEL
   ========================================================= */

.ep-evento-cartel {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 4px;
}

.ep-evento-cartel img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    transition: transform .2s ease;
}

.ep-evento-cartel:hover img {
    transform: scale(1.015);
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.ep-evento-info {
    padding-top: 14px;
}

.ep-evento-titulo {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.25;
    font-weight: 700;
}


/* =========================================================
   DATOS
   ========================================================= */

.ep-evento-dato {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.4;
}

.ep-evento-icono {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.ep-evento-icono svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}


/* =========================================================
   SIN EVENTOS
   ========================================================= */

.ep-eventos-vacio {
    margin: 0;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.ep-eventos-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: rgba(0, 0, 0, .88);
}

.ep-eventos-lightbox.activo {
    display: flex;
}

.ep-eventos-lightbox-imagen {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    object-fit: contain;
}

.ep-eventos-lightbox-cerrar {
    position: fixed;
    top: 16px;
    right: 22px;
    z-index: 2;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 44px;
    font-weight: 300;
    line-height: 42px;
    cursor: pointer;
}

body.ep-lightbox-abierto {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ep-eventos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .ep-eventos-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ep-eventos-lightbox {
        padding: 15px;
    }

    .ep-eventos-lightbox-imagen {
        max-width: 96vw;
        max-height: 90vh;
    }

}


/* =========================================================
   TARJETAS EVENTOS - RECUADRO
   ========================================================= */

.ep-evento {
    min-width: 0;

    border: 1px solid #7D0400;
    border-radius: 12px;

    padding: 14px;

    background: #FFF8F2;

    overflow: hidden;
}


/* El cartel respeta el radio interior de la tarjeta */

.ep-evento-cartel {
    border-radius: 8px;
}


/* Separación de la información respecto al cartel */

.ep-evento-info {
    padding: 14px 2px 4px 2px;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .ep-evento {
        padding: 12px;
        border-radius: 12px;
    }

}


/* =========================================================
   AJUSTE GRID Y ALTURA DE TARJETAS
   ========================================================= */

/*
 * Menor separación entre eventos.
 * Las tarjetas de cada fila se igualan automáticamente
 * a la altura de la tarjeta más alta.
 */
.ep-eventos-grid {
    gap: 16px;
    align-items: stretch;
}


/*
 * La tarjeta ocupa toda la altura disponible
 * dentro de su celda del grid.
 */
.ep-evento {
    height: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}


/*
 * La información continúa debajo del cartel.
 */
.ep-evento-info {
    flex: 1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ep-eventos-grid {
        gap: 14px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .ep-eventos-grid {
        gap: 16px;
    }

}


/* =========================================================
   COLOR CORPORATIVO
   ========================================================= */

/* Título del evento */
.ep-evento-titulo {
    color: #7D0400;
}


/* Iconos: fecha, hora y ubicación */
.ep-evento-icono {
    color: #EC8900;
}


/* Los SVG heredan el azul */
.ep-evento-icono svg {
    fill: currentColor;
}

/* Enlace a todos los eventos */
.ep-eventos-resumen-enlace {
    margin-top: 12px;
    text-align: center;
}

.ep-eventos-resumen-enlace a {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #7D0400;
    text-decoration: none;
    line-height: 1.4;
}

.ep-eventos-resumen-enlace a:hover {
    color: #126000;
    text-decoration: underline;
}


/* ======================================================
   ELPARAMO.NET - IDENTIDAD VISUAL
   ====================================================== */

/* Tarjetas */
.ep-evento {
    background: #FFF8F2;
    border-color: #7D0400;
}

/* Títulos */
.ep-evento-titulo {
    color: #7D0400;
}

/* Iconos */
.ep-evento-icono {
    color: #EC8900;
}

.ep-evento-icono svg {
    fill: currentColor;
}

/* Enlace resumen */
.ep-eventos-resumen-enlace a {
    color: #7D0400;
}

.ep-eventos-resumen-enlace a:hover {
    color: #126000;
}

/* Mensaje sin eventos */
.ep-eventos-vacio {
    background: #FFF8F2;
    border-color: #7D0400;
}


/* Pueblo del evento enlazado a su página */
.ep-evento-pueblo-enlace {
    color: inherit !important;
    text-decoration: none !important;
}

.ep-evento-pueblo-enlace:hover,
.ep-evento-pueblo-enlace:focus {
    color: #126000 !important;
    text-decoration: underline !important;
}


/* Pueblo del evento: enlace a la ficha del pueblo */
.ep-evento-pueblo-enlace {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit !important;
}

.ep-evento-pueblo-enlace:hover,
.ep-evento-pueblo-enlace:focus {
    color: #126000 !important;
    text-decoration: underline !important;
}



/* =========================================================
   ENLACE MÁS INFORMACIÓN
   ========================================================= */

.ep-evento-mas-info {
    margin-top: 12px;
}

.ep-evento-mas-info a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7D0400;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.ep-evento-mas-info a span {
    color: #EC8900;
    font-size: 17px;
    line-height: 1;
}

.ep-evento-mas-info a:hover,
.ep-evento-mas-info a:focus {
    color: #126000;
    text-decoration: underline;
}

.ep-evento-mas-info a:hover span,
.ep-evento-mas-info a:focus span {
    color: #EC8900;
}



/* =========================================================
   FILTRO DE PUEBLOS
   ========================================================= */

.ep-eventos-filtro {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.ep-eventos-filtro label {
    font-size: 15px;
    font-weight: 600;
    color: #7D0400;
}

.ep-eventos-filtro-pueblo {
    min-width: 230px;
    max-width: 100%;
    height: 42px;
    padding: 7px 38px 7px 12px;
    border: 1px solid #7D0400;
    border-radius: 12px;
    background-color: #FFF8F2;
    color: #000000;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
}

.ep-eventos-filtro-pueblo:hover {
    border-color: #126000;
}

.ep-eventos-filtro-pueblo:focus {
    border-color: #126000;
    outline: 2px solid rgba(18, 96, 0, .15);
    outline-offset: 2px;
}

.ep-evento.ep-evento-oculto {
    display: none !important;
}

@media (max-width: 600px) {

    .ep-eventos-filtro {
        display: block;
        margin-bottom: 18px;
    }

    .ep-eventos-filtro label {
        display: block;
        margin-bottom: 6px;
    }

    .ep-eventos-filtro-pueblo {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================
   EVENTOS - CABECERA DE PORTADA
   ========================================= */

.ep-eventos-portada-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ep-eventos-portada-titulo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    color: #7D0400;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.3;
    font-weight: 700;
}

.ep-eventos-portada-titulo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #7D0400;
}

.ep-eventos-portada-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: #126000 !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
}

.ep-eventos-portada-ver-todos:hover {
    text-decoration: underline !important;
}

.ep-eventos-portada-ver-todos span {
    font-size: 23px;
    line-height: 1;
}

@media (max-width: 700px) {
    .ep-eventos-portada-cabecera {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ep-eventos-portada-titulo {
        font-size: 21px;
        gap: 10px;
    }

    .ep-eventos-portada-titulo svg {
        width: 27px;
        height: 27px;
    }

    .ep-eventos-portada-ver-todos {
        margin-left: auto;
        font-size: 14px;
    }
}
