﻿/* ==========================================================
   GENERAL
========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.eventos-section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 35px 20px 70px;
}


/* ==========================================================
   TITULO
========================================================== */

.eventos-encabezado {
    text-align: center;
    margin-bottom: 30px;
}

.eventos-encabezado h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: normal;
    color: #222;
}

.linea-titulo {
    width: 44px;
    height: 3px;
    background: #8b1820;
    margin: 22px auto 0;
}


/* ==========================================================
   TIPOS DE EVENTOS
========================================================== */

.event-types {
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    width: 100%;

    border-bottom: 1px solid #d8d8d8;

    margin-bottom: 48px;
}

.event-type {
    position: relative;

    flex: 1;

    min-height: 160px;

    border: 0;
    background: transparent;

    padding: 20px 10px 25px;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;

    transition: all .2s ease;
}

.event-type i {
    font-size: 48px;

    color: #967548;

    margin-bottom: 20px;

    transition:
        color .2s ease,
        transform .2s ease;
}

.event-type span {
    color: #333;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.35;
}

.event-type:hover i {
    color: #8b1820;

    transform: translateY(-4px);
}

.event-type.active i {
    color: #8b1820;
}

.event-type.active::after {
    content: "";

    position: absolute;

    bottom: -2px;

    left: 25%;

    width: 50%;

    height: 4px;

    background: #8b1820;
}


/* ==========================================================
   FILTROS
========================================================== */

.eventos-filtros {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

    margin-bottom: 38px;
}


/* SELECT */

.select-container {
    width: 340px;
}

.select-container select {
    width: 100%;

    height: 62px;

    border: 1px solid #ccc;

    background: #fff;

    padding: 0 22px;

    font-size: 14px;

    color: #333;

    cursor: pointer;
}


/* BUSCADOR */

.buscador-eventos {
    display: flex;

    width: 405px;

    height: 62px;

    border: 1px solid #ccc;

    background: #fff;
}

.buscador-icono {
    width: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-right: 1px solid #ccc;
}

.buscador-icono i {
    font-size: 23px;

    color: #555;
}

.buscador-eventos input {
    flex: 1;

    border: 0;

    outline: none;

    padding: 0 15px;

    font-size: 14px;

    background: transparent;
}


/* ==========================================================
   GRID DE EVENTOS
========================================================== */

.eventos-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;
}


/* ==========================================================
   TARJETA
========================================================== */

.evento-card {
    position: relative;

    background: #fff;

    border: 1px solid #dedede;

    border-radius: 12px 12px 0 0;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    min-height: 520px;
}

.evento-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, .13);
}


/* ==========================================================
   IMAGEN
========================================================== */

.evento-imagen {
    position: relative;

    height: 225px;

    overflow: hidden;
}

.evento-imagen img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.evento-card:hover
.evento-imagen img {
    transform: scale(1.04);
}


/* ==========================================================
   FECHA
========================================================== */

.evento-fecha {
    position: absolute;

    left: 22px;

    bottom: -1px;

    width: 84px;

    height: 88px;

    background: #8b1820;

    color: #fff;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;
}

.evento-dia {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 36px;

    line-height: 1;
}

.evento-mes {
    font-family: Arial, sans-serif;

    margin-top: 7px;

    font-size: 14px;
}


/* ==========================================================
   CONTENIDO
========================================================== */

.evento-contenido {
    padding:
        66px
        24px
        28px;
}

.evento-tipo {
    margin-bottom: 17px;

    font-family: Arial, sans-serif;

    font-size: 13px;

    color: #777;

    text-transform: uppercase;
}

.evento-contenido h3 {
    margin: 0 0 28px;

    min-height: 68px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    line-height: 1.28;

    font-weight: normal;

    color: #222;
}


/* ==========================================================
   DATOS
========================================================== */

.evento-info {
    display: flex;

    flex-direction: column;

    gap: 15px;

    font-family: Arial, sans-serif;

    font-size: 14px;

    color: #666;
}

.evento-info > div {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}

.evento-info i {
    width: 18px;

    color: #aa8a50;

    font-size: 18px;
}


/* ==========================================================
   CARGANDO / SIN EVENTOS
========================================================== */

.cargando,
.sin-eventos {
    padding: 50px 15px;

    text-align: center;

    font-family: Arial, sans-serif;

    font-size: 16px;

    color: #777;
}

.sin-eventos {
    display: none;
}


/* ==========================================================
   MODAL
========================================================== */

.modal-evento {
    position: fixed;

    z-index: 99999;

    inset: 0;

    background:
        rgba(0, 0, 0, .72);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.modal-evento.mostrar {
    opacity: 1;

    visibility: visible;
}

.modal-evento-contenido {
    position: relative;

    width: 100%;

    max-width: 920px;

    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 4px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .35);

    transform: translateY(25px);

    transition: transform .25s ease;
}

.modal-evento.mostrar
.modal-evento-contenido {
    transform: translateY(0);
}


/* ==========================================================
   CERRAR MODAL
========================================================== */

.modal-cerrar {
    position: absolute;

    z-index: 5;

    top: 12px;

    right: 16px;

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(0, 0, 0, .65);

    color: #fff;

    font-size: 31px;

    line-height: 38px;

    cursor: pointer;
}

.modal-cerrar:hover {
    background: #8b1820;
}


/* ==========================================================
   IMAGEN MODAL
========================================================== */

.modal-imagen-container {
    width: 100%;

    max-height: 380px;

    overflow: hidden;
}

.modal-imagen {
    width: 100%;

    height: 380px;

    display: block;

    object-fit: cover;
}


/* ==========================================================
   INFORMACIÓN MODAL
========================================================== */

.modal-informacion {
    padding:
        38px
        50px
        50px;
}

.modal-tipo {
    display: inline-block;

    color: #8b1820;

    font-family: Arial, sans-serif;

    font-weight: bold;

    font-size: 13px;

    text-transform: uppercase;

    margin-bottom: 15px;
}

.modal-informacion h2 {
    margin:
        0
        0
        25px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;

    line-height: 1.25;

    font-weight: normal;

    color: #252525;
}


/* ==========================================================
   DATOS MODAL
========================================================== */

.modal-datos {
    display: flex;

    flex-wrap: wrap;

    gap: 16px 28px;

    padding-bottom: 24px;

    border-bottom: 1px solid #ddd;

    margin-bottom: 28px;
}

.modal-dato {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #666;

    font-family: Arial, sans-serif;

    font-size: 14px;
}

.modal-dato i {
    color: #a5854d;

    font-size: 18px;
}


/* ==========================================================
   DESCRIPCIÓN
========================================================== */

.modal-descripcion {
    color: #444;

    font-family: Arial, sans-serif;

    font-size: 16px;

    line-height: 1.75;
}

.modal-descripcion p {
    margin:
        0
        0
        18px;
}

.modal-descripcion img {
    max-width: 100%;

    height: auto;
}

.modal-descripcion a {
    color: #8b1820;
}


/* impide scroll detrás del modal */

body.modal-abierto {
    overflow: hidden;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .eventos-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .event-types {
        flex-wrap: wrap;
    }

    .event-type {
        flex:
            0
            0
            25%;
    }

}


/* ==========================================================
   TABLET PEQUEÑA
========================================================== */

@media (max-width: 850px) {

    .eventos-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .event-type {
        flex:
            0
            0
            33.333%;
    }

    .eventos-filtros {
        flex-direction: column;

        align-items: stretch;
    }

    .select-container,
    .buscador-eventos {
        width: 100%;
    }

}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 560px) {

    .eventos-section {
        padding:
            25px
            14px
            50px;
    }

    .eventos-encabezado h2 {
        font-size: 30px;
    }

    .event-types {
        margin-bottom: 30px;
    }

    .event-type {
        flex:
            0
            0
            50%;

        min-height: 125px;
    }

    .event-type i {
        font-size: 38px;

        margin-bottom: 14px;
    }

    .event-type span {
        font-size: 12px;
    }

    .eventos-grid {
        grid-template-columns:
            1fr;
    }

    .evento-card {
        min-height: auto;
    }

    .modal-evento {
        padding: 15px;
    }

    .modal-informacion {
        padding:
            28px
            22px
            35px;
    }

    .modal-informacion h2 {
        font-size: 27px;
    }

    .modal-imagen,
    .modal-imagen-container {
        height: 240px;
    }

}