* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --title-p-color: #415ba3;
    --title-s-color: #616161;
    --title-t-color: #f0f0f0;
}
.eventos-container {
    width: 100%;
    margin: 60px auto;
    max-width: 1440px;
    padding: 0 6%;
    font-family: "Helvetica", sans-serif;
    font-size: 16px;
    color: var(--title-s-color);
}
.eventos-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: "Helvetica", sans-serif;
    align-items: center;
}
.eventos-header h1 {
    color: var(--title-p-color);
    font-size: 2em;
    font-family: "Helvetica", sans-serif;
}
.eventos-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.eventos-menu button {
    background: var(--title-t-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--title-s-color);
    padding: 10px 20px;
    border-radius: 8px;
}
.eventos-menu button.active {
    background: var(--title-p-color);
    color: white;
}

.eventos-items {
    margin: 60px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.eventos-item {
    display: none;
    position: relative;
    width: 100%;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-height: 450px;
}
.eventos-item.active {
    display: block;
}
.eventos-item:hover .eventos-img img {
    transform: scale(1.1);
}
.eventos-item-img {
    width: 100%;
    height: 247px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.eventos-item-img::after {
    content: "";
    width: 100%;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}
.eventos-img {
    position: relative;
    width: 100%;
    height: 100%;
}
.eventos-img img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: all ease 0.3s;
}
.eventos-fecha {
    position: absolute;
    z-index: 10;
    top: 20px;
    left: 0;
    background: var(--title-p-color);
    /* background: linear-gradient(
    90deg,
    rgba(95, 109, 178, 1) 0%,
    rgba(67, 73, 99, 1) 100%
  ); */
    padding: 10px 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.eventos-sold {
    position: absolute;
    top: 20px;
    right: 0;
    padding: 10px 20px;
    background: red;
    color: white;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
    display: none;
}
.eventos-sold.active {
    display: block;
}
.eventos-fecha h5 {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}
.eventos-nombre {
    position: absolute;
    left: 20px;
    bottom: 30px;
    z-index: 10;
}
.eventos-nombre h2 {
    color: white;
    font-size: 1.4em;
    margin: 0;
    font-weight: bold;
}
.eventos-nombre h2 sup {
    font-size: 0.5em;
}
.eventos-nombre P {
    color: rgb(224, 224, 224);
    font-size: 0.7em;
    margin-top: 10px;
}
.eventos-item-info {
    width: 100%;
    height: auto;
    padding: 20px;
    display: grid;
    /* grid-template-columns: 2fr 1fr; */
    grid-template-columns: 1fr;
    gap: 10px;
}
.eventos-item-tyc {
    display: none;
}
.eventos-precio {
    display: none;
    align-items: center;
    position: relative;
    gap: 10px;
}
.eventos-precio::before {
    content: "Desde";
    position: absolute;
    top: -8px;
    left: 40px;
    font-size: 0.8em;
}
.eventos-precio img {
    width: 30px;
    position: relative;
    z-index: 1;
}
.eventos-precio p {
    max-width: 100%;
    font-weight: bold;
    font-size: 0.8em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.eventos-item-info button {
    padding: 10px 20px;
    background: var(--title-p-color);
    color: white;
    border: none;
    border-radius: 10px;
    width: 70%;
    margin: 0 auto;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.7em;
    transition: all ease 0.3s;
}
.eventos-item-info button:hover {
    opacity: 0.9;
}
.eventos-item-info button:disabled {
    opacity: 0.6;
    cursor: default;
}

.modal__eventos {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
}
.modal__eventos.active {
    display: block;
}
.modal__eventos_body {
    width: 100%;
    border-radius: 20px;
    max-width: 800px;
    min-height: 480px;
    background: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.modal__eventos_cerrar {
    position: absolute;
    z-index: 10;
    right: -20px;
    overflow: auto;
    top: -20px;
    cursor: pointer;
}
.modal__eventos_body > p {
    font-size: 0.8em;
    text-align: center;
    margin-top: 20px;
}
.modal__eventos_img {
    position: relative;
    width: 100%;
}
.modal__eventos_img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0);
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}
.modal__eventos_img img {
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.modal__eventos_info {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    position: absolute;
    bottom: 160px;
}
.modal__info_item {
    width: 33%;
    height: 100px;
    border-right: 1px solid var(--title-t-color);
    padding: 0 10px;
}
.modal__info_item:last-child {
    border-right: none;
}

.modal__info_item img {
    width: 30px;
    max-height: 30px;
    margin-bottom: 5px;
    filter: brightness(0) invert(1);
}
.modal__info_item p,
.modal__contacto_item p {
    font-size: 0.7em;
}
.modal__info_item p {
    color: white;
}
.modal__contacto {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}
.modal__contacto_item a {
    background: #4da94c;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.8em;
    margin-bottom: 10px;
}
.modal__contacto_item:nth-child(2) a {
    background: var(--title-p-color);
}
.modal__contacto_item img {
    width: 15px;
}
.modal__contacto_item img:nth-child(2) {
    width: 10px;
}
.modal__eventos_body.active .modal__tyc {
    display: block;
}
.modal__tyc {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--title-s-color);
    top: 0;
    left: 0;
    border-radius: 20px;
    padding: 20px;
    display: none;
    color: var(--title-t-color);
}
.modal__tyc > h1 {
    text-align: center;
    font-size: 1em;
}
.modal__tyc > p {
    text-align: justify;
    margin-top: 10px;
    font-size: 0.7em;
}
#btnTycEventos {
    text-align: center;
    margin: 10px auto 20px;
    display: block;
    border: none;
    background-color: transparent;
    padding: 0;
    border-radius: 20px;
    color: var(--title-s-color);
    cursor: pointer;
    font-size: 0.8em;
}
#btnTycCerrar {
    display: flex;
    border: none;
    margin: 20px auto;
    background: transparent;
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 7px;
    padding: 10px 20px;
    transition: all ease 0.6s;
}
#btnTycCerrar img {
    width: 10px;
    transform: rotate(90deg);
    animation: wiggleAnimation ease-in 1s infinite;
}
.banner_exp img {
    width: 100%;
}
.banner_exp_desk {
    display: block;
}
.banner_exp_mb {
    display: none;
}
@keyframes wiggleAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(0);
    }
}

@media screen and (max-width: 1130px) {
    .eventos-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal__eventos_body {
        max-width: 600px;
    }
    .modal__eventos_body.active .modal__tyc {
        overflow-y: scroll;
    }
}
@media screen and (max-width: 748px) {
    .eventos-items {
        grid-template-columns: repeat(1, 1fr);
    }
    .eventos-nombre h2 {
        font-size: 1em;
    }
    .eventos-fecha h5,
    .eventos-sold h5 {
        font-size: 0.7em;
    }
    .modal__eventos_body {
        max-width: 90%;
    }
    .modal__eventos_cerrar {
        top: -15px;
        right: -15px;
    }
    .modal__eventos_cerrar img {
        width: 30px;
    }
}
@media screen and (max-width: 600px) {
    .eventos-header h1 {
        font-size: 1.5em;
    }
    .modal__eventos_info {
        bottom: 0;
        position: relative;
        padding: 20px 10px;
    }
    .modal__info_item img {
        filter: none;
    }
    .modal__info_item p {
        color: var(--title-s-color);
    }
    .modal__info_item {
        height: auto;
        width: 33%;
        border-right: none;
    }
    .modal__info_item p,
    .modal__contacto_item p,
    .modal__contacto_item a {
        font-size: 0.6em;
    }
    .modal__contacto_item a {
        padding: 10px;
    }
    .modal__tyc > h1 {
        font-size: 0.8em;
    }
    .modal__eventos_body {
        min-height: auto;
    }
    .modal__eventos_body > p {
        margin-top: 10px;
        padding: 0 10px;
    }
    .banner_exp_desk {
        display: none;
    }
    .banner_exp_mb {
        display: block;
    }
}
@media screen and (max-width: 500px) {
    .eventos-header h1 {
        font-size: 1.2em;
    }
}
@media screen and (max-width: 440px) {
    .eventos-header {
        flex-direction: column;
        gap: 20px;
    }
    .eventos-items {
        margin: 30px 0;
    }
    .modal__contacto_item img {
        width: 12px;
    }
    .modal__tyc > p {
        font-size: 0.6em;
    }
    .modal__contacto_item {
        width: 60%;
    }
    .modal__contacto .modal__contacto_item:nth-child(1) {
        display: none;
    }
}
@media screen and (max-width: 360px) {
    .eventos-item-info button {
        font-size: 0.6em;
    }
}
