/* =========================================================
   EVENTOS
   VIDA ABUNDANTE COLOMBIA
========================================================= */


/* =========================================================
   HERO
========================================================= */

.eventos-hero-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.eventos-hero-glow-one {
    width: 500px;
    height: 500px;

    top: -280px;
    right: -80px;

    background: rgba(78, 180, 255, .16);
}

.eventos-hero-glow-two {
    width: 420px;
    height: 420px;

    left: -180px;
    bottom: -260px;

    background: rgba(234, 179, 8, .11);
}


/* =========================================================
   SECCIÓN CARRUSEL
========================================================= */

.eventos-section {
    position: relative;

    padding: 5rem 0 6rem;

    overflow: hidden;
}

.eventos-kicker {
    color: #eab308;

    font-size: .78rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .18em;
}


/* =========================================================
   CONTROLES
========================================================= */

.event-nav-button {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 800;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}

.event-nav-button:hover:not(:disabled) {
    transform: scale(1.08);

    background: #eab308;

    color: #082f51;
}

.event-nav-button:disabled {
    opacity: .30;

    cursor: not-allowed;
}


/* =========================================================
   STAGE
========================================================= */

.eventos-stage {
    position: relative;

    width: 100%;

    height: 610px;

    margin-top: 3.5rem;

    perspective: 1500px;

    touch-action: pan-y;
}

.eventos-track {
    position: relative;

    width: 100%;
    height: 100%;
}


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

.evento-card {
    position: absolute;

    top: 50%;
    left: 50%;

    width: min(390px, 72vw);

    border-radius: 30px;

    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 35px 85px rgba(0, 0, 0, .32);

    transform-origin: center center;

    transition:
        transform .55s cubic-bezier(.22, .61, .36, 1),
        opacity .4s ease,
        filter .4s ease;

    cursor: pointer;

    user-select: none;
}

.evento-card-image {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #0c4375;
}

.evento-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .55s ease;
}

.evento-card.is-active
.evento-card-image img {
    transform: scale(1.015);
}

.evento-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(4, 27, 48, .96) 0%,
            rgba(4, 27, 48, .52) 34%,
            rgba(4, 27, 48, .03) 68%
        );
}


/* =========================================================
   INFORMACIÓN SOBRE LA IMAGEN
========================================================= */

.evento-card-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 1.5rem;

    color: #ffffff;
}

.evento-date {
    display: inline-flex;

    padding: .45rem .75rem;

    border-radius: 999px;

    background: #eab308;

    color: #082f51;

    font-size: .73rem;
    font-weight: 900;
}

.evento-card-title {
    margin-top: .85rem;

    font-size: 1.65rem;
    line-height: 1.08;

    font-weight: 900;

    letter-spacing: -.025em;
}

.evento-details {
    margin-top: .9rem;

    display: flex;
    flex-direction: column;

    gap: .35rem;

    color: rgba(255, 255, 255, .77);

    font-size: .82rem;
}

.evento-description {
    max-height: 0;

    margin-top: 0;

    overflow: hidden;

    opacity: 0;

    color: rgba(255, 255, 255, .72);

    font-size: .84rem;
    line-height: 1.6;

    transition:
        max-height .4s ease,
        opacity .4s ease,
        margin .4s ease;
}

.evento-card.is-active
.evento-description {
    max-height: 120px;

    margin-top: .9rem;

    opacity: 1;
}


/* =========================================================
   POSICIONES TIPO XBOX / CONSOLA
========================================================= */

.evento-card.position-center {
    z-index: 10;

    opacity: 1;

    filter: none;

    transform:
        translate(-50%, -50%)
        translateX(0)
        scale(1);
}

.evento-card.position-left-one {
    z-index: 8;

    opacity: .72;

    filter:
        brightness(.70)
        saturate(.75);

    transform:
        translate(-50%, -50%)
        translateX(-330px)
        scale(.80)
        rotateY(8deg);
}

.evento-card.position-right-one {
    z-index: 8;

    opacity: .72;

    filter:
        brightness(.70)
        saturate(.75);

    transform:
        translate(-50%, -50%)
        translateX(330px)
        scale(.80)
        rotateY(-8deg);
}

.evento-card.position-left-two {
    z-index: 5;

    opacity: .32;

    filter:
        brightness(.45)
        saturate(.45);

    transform:
        translate(-50%, -50%)
        translateX(-550px)
        scale(.62)
        rotateY(12deg);
}

.evento-card.position-right-two {
    z-index: 5;

    opacity: .32;

    filter:
        brightness(.45)
        saturate(.45);

    transform:
        translate(-50%, -50%)
        translateX(550px)
        scale(.62)
        rotateY(-12deg);
}

.evento-card.position-hidden {
    z-index: 1;

    opacity: 0;

    pointer-events: none;

    transform:
        translate(-50%, -50%)
        scale(.45);
}


/* =========================================================
   DOTS
========================================================= */

.eventos-dots {
    margin-top: .6rem;

    display: flex;
    justify-content: center;

    gap: .5rem;
}

.event-dot {
    width: 8px;
    height: 8px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .22);

    transition:
        width .25s ease,
        background .25s ease;
}

.event-dot.is-active {
    width: 28px;

    background: #eab308;
}


/* =========================================================
   LOADER
========================================================= */

.event-loader {
    width: 44px;
    height: 44px;

    border: 4px solid rgba(255, 255, 255, .15);
    border-top-color: #eab308;

    border-radius: 50%;

    animation:
        eventosSpin .7s linear infinite;
}

.event-loader-blue {
    border-color: #d5e7f2;
    border-top-color: #195fa8;
}

@keyframes eventosSpin {

    to {
        transform: rotate(360deg);
    }

}


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

.event-empty {
    margin-top: 3rem;

    padding: 4rem 2rem;

    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 28px;

    text-align: center;

    background: rgba(255, 255, 255, .04);

    color: #ffffff;
}

.event-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: rgba(234, 179, 8, .15);

    color: #eab308;
}

.event-empty h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.event-empty p {
    margin-top: .5rem;

    color: rgba(255, 255, 255, .52);
}

.event-empty-light {
    border-color: #cfdfe9;

    background: #ffffff;

    color: #153c5f;
}

.event-empty-light p {
    color: #72889a;
}


/* =========================================================
   TABLA VISUAL DE HORARIOS
========================================================= */

.horarios-card {
    overflow: hidden;

    border: 1px solid #dce8f0;
    border-radius: 26px;

    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(15, 55, 85, .08);
}

.horarios-header {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(120px, .7fr)
        minmax(120px, .6fr)
        minmax(220px, 1fr);

    gap: 1rem;

    padding: 1rem 1.4rem;

    background: #0c4375;

    color: #ffffff;

    font-size: .73rem;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.horario-row {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(120px, .7fr)
        minmax(120px, .6fr)
        minmax(220px, 1fr);

    gap: 1rem;

    align-items: center;

    padding: 1.2rem 1.4rem;

    border-bottom: 1px solid #edf2f6;

    transition:
        background .2s ease,
        transform .2s ease;
}

.horario-row:last-child {
    border-bottom: 0;
}

.horario-row:hover {
    background: #fffbea;
}

.horario-service {
    color: #123d62;

    font-weight: 800;
}

.horario-description {
    margin-top: .25rem;

    color: #8294a2;

    font-size: .78rem;
}

.horario-day {
    color: #195fa8;

    font-weight: 700;
}

.horario-time {
    display: inline-flex;

    width: max-content;

    padding: .45rem .75rem;

    border-radius: 999px;

    background: #eab308;

    color: #0b3558;

    font-size: .78rem;
    font-weight: 900;
}

.horario-site {
    color: #425f73;

    font-weight: 700;
}

.horario-city {
    display: block;

    margin-top: .2rem;

    color: #91a1ad;

    font-size: .75rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .eventos-stage {
        height: 560px;
    }

    .evento-card {
        width: min(340px, 72vw);
    }

    .evento-card.position-left-one {
        transform:
            translate(-50%, -50%)
            translateX(-245px)
            scale(.72);
    }

    .evento-card.position-right-one {
        transform:
            translate(-50%, -50%)
            translateX(245px)
            scale(.72);
    }

    .evento-card.position-left-two,
    .evento-card.position-right-two {
        opacity: 0;
    }

}


@media (max-width: 767px) {

    .eventos-section {
        padding: 4rem 0;
    }

    .eventos-stage {
        height: 540px;

        margin-top: 2.5rem;
    }

    .evento-card {
        width: min(315px, 82vw);
    }

    .evento-card.position-left-one {
        opacity: .35;

        transform:
            translate(-50%, -50%)
            translateX(-215px)
            scale(.68);
    }

    .evento-card.position-right-one {
        opacity: .35;

        transform:
            translate(-50%, -50%)
            translateX(215px)
            scale(.68);
    }


    /* TABLA -> TARJETAS */

    .horarios-card {
        overflow: visible;

        border: 0;

        background: transparent;

        box-shadow: none;
    }

    .horarios-header {
        display: none;
    }

    .horarios-body {
        display: grid;

        gap: .9rem;
    }

    .horario-row {
        display: block;

        padding: 1.2rem;

        border: 1px solid #dce8f0;
        border-radius: 20px;

        background: #ffffff;

        box-shadow:
            0 8px 25px rgba(15, 55, 85, .06);
    }

    .horario-day {
        margin-top: .9rem;
    }

    .horario-time {
        margin-top: .7rem;
    }

    .horario-site {
        margin-top: .9rem;
    }

}

/* =========================================================
   SELECTOR DE SEDES - SERVICIOS Y HORARIOS
========================================================= */

.servicios-sedes-botones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding: .85rem;
    border-radius: 24px;
    background: #eab308;
}

.servicios-sede-boton {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 15px;
    padding: .95rem 1.3rem;
    background: #fffaf0;
    color: #0c4375;
    font-size: .87rem;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.servicios-sede-boton:hover:not(.is-active) {
    background: #fff;
    box-shadow: 0 3px 10px rgba(7, 31, 54, .1);
}

.servicios-sede-boton.is-active {
    background: #0c4375;
    color: #fff;
}

.servicios-sede-boton:focus-visible {
    outline: 3px solid #071f36;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .servicios-sedes-botones {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        border-radius: 18px;
    }

    .servicios-sede-boton {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: .85rem 1rem;
    }
}
