 /* =========================================================
   POKENEXO — EVENTOS
   Diseño específico de la página Eventos
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

.events-page {
    --events-bg: #7d82dc;

    --events-text: #ffffff;
    --events-text-soft: rgba(255, 255, 255, 0.82);
    --events-text-muted: rgba(255, 255, 255, 0.60);

    --events-accent: #ffffff;
    --events-accent-soft: rgba(255, 255, 255, 0.12);
    --events-accent-border: rgba(255, 255, 255, 0.30);

    --events-border: rgba(255, 255, 255, 0.16);
    --events-border-strong: rgba(255, 255, 255, 0.30);

    --events-radius: 16px;
    --events-radius-small: 10px;

    --events-max-width: 1500px;
}


/* =========================================================
   BASE
   ========================================================= */

html {
    min-height: 100%;
    margin: 0;

    background: #7d82dc;
}

body.events-page {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle,
            rgba(180, 220, 255, 0.10) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(180, 220, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(180, 220, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            135deg,
            #555aa3 0%,
            #686ec0 50%,
            #555aa3 100%
        );

    background-size:
        32px 32px,
        32px 32px,
        32px 32px,
        100% 100%;

    color: var(--events-text);

    overflow-x: hidden;
}

.events-page main {
    position: relative;
    z-index: 1;

    width: 100%;
}

.events-page button,
.events-page a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ELEMENTOS COMUNES
   ========================================================= */

.events-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.78);
}

.events-label::before {
    content: "";
    width: 18px;
    height: 1px;

    background: currentColor;
}

.events-section-heading,
.events-block-heading {
    position: relative;
}

.events-section-heading h2,
.events-block-heading h2 {
    margin: 10px 0 0;

    color: #ffffff;

    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.events-section-heading p,
.events-block-heading p {
    max-width: 650px;
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================================
   INTRO
   ========================================================= */

.events-intro {
    position: relative;

    padding: 105px 24px 75px;

    overflow: hidden;

    border-bottom: 1px solid var(--events-border);
}

.events-intro::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(63, 109, 246, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(63, 109, 246, 0.035) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.events-intro::after {
    display: none;
}

.events-intro-content {
    position: relative;
    z-index: 1;

    width: min(100%, var(--events-max-width));
    margin: 0 auto;
}

.events-intro h1 {
    max-width: 800px;

    margin: 16px 0 0;

    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;

    color: #ffffff;
}

.events-intro p {
    max-width: 650px;

    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}


/* =========================================================
   CALENDARIO + EVENTOS EN ACTIVO
   ========================================================= */

.events-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    align-items: start;
    gap: 28px;

    width: min(
        calc(100% - 48px),
        var(--events-max-width)
    );

    margin: 55px auto 0;
}

.events-calendar-layout-full {
    display: block;
}


/* =========================================================
   CALENDARIO
   ========================================================= */

.events-calendar {
    position: relative;

    min-width: 0;

    padding: 24px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--events-radius);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.055)
        );

    box-shadow:
        0 14px 35px rgba(35, 40, 120, 0.14);

    overflow: hidden;
}

.events-calendar-layout-full .events-calendar {
    width: 100%;
}


/* =========================================================
   CABECERA DEL CALENDARIO
   ========================================================= */

.events-calendar-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
}

.events-calendar-month {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;

    min-width: 0;

    text-align: center;
}

.events-calendar-month-name {
    color: #ffffff;

    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.events-calendar-year {
    color: rgba(255, 255, 255, 0.55);

    font-size: 0.9rem;
    font-weight: 600;
}

.events-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

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

    background: transparent;

    color: rgba(255, 255, 255, 0.86);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.events-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.34);

    transform: scale(1.05);
}

.events-calendar-nav i {
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   DÍAS DE LA SEMANA
   ========================================================= */

.events-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    margin-bottom: 8px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.events-calendar-weekdays span {
    padding: 8px 4px 10px;

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   CUADRÍCULA
   ========================================================= */

.events-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.06);

    overflow: hidden;

    border-radius: 8px;
}


/* =========================================================
   DÍA
   ========================================================= */

.events-calendar-day {
    position: relative;

    min-width: 0;
    min-height: 100px;

    padding: 9px;

    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(10, 12, 28, 0.13);

    transition:
        background 0.2s ease;
}

.events-calendar-day:hover {
}

.events-calendar-day.is-other-month {
    background: rgba(10, 12, 28, 0.07);
}

.events-calendar-day.is-other-month
.events-calendar-day-number {
    color: rgba(255, 255, 255, 0.25);
}


/* =========================================================
   NÚMERO DEL DÍA
   ========================================================= */

.events-calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.76rem;
    font-weight: 600;
}

.events-calendar-day.is-today
.events-calendar-day-number {
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22);
}


/* =========================================================
   EVENTOS DENTRO DEL DÍA
   ========================================================= */

.events-calendar-event {
    display: block;

    width: 100%;

    margin-top: 4px;
    padding: 5px 7px;

    overflow: hidden;

    border-left: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-calendar-event:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* =========================================================
   INDICADORES DE EVENTOS — POKÉ BALL
   ========================================================= */

.events-calendar-day {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;

    font: inherit;
    text-align: left;

    color: inherit;

    cursor: default;
}

.events-calendar-day.has-events {
    cursor: pointer;
}

.events-calendar-day.has-events:hover {
    background: rgba(255, 255, 255, 0.07);
}

.events-calendar-day:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.70);
    outline-offset: -2px;
}


/* Contenedor de las Poké Balls */

.events-calendar-event-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 5px;

    width: 100%;

    margin-top: 7px;
}


/* Poké Ball individual */

.events-calendar-event-indicator {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.events-calendar-event-indicator img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
}


/* Efecto al pasar sobre un día con eventos */

.events-calendar-day.has-events:hover
.events-calendar-event-indicator {
    transform: scale(1.08);
}

.events-calendar-day.has-events:hover
.events-calendar-event-indicator img {
    filter:
        drop-shadow(
            0 2px 5px rgba(0, 0, 0, 0.35)
        );
}


/* Los días de otros meses mantienen las Poké Balls más discretas */

.events-calendar-day.is-other-month
.events-calendar-event-indicator {
    opacity: 0.45;
}


/* =========================================================
   MODAL DEL CALENDARIO
   ========================================================= */

body.events-modal-open {
    overflow: hidden;
}


.events-calendar-modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

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

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.events-calendar-modal.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* Fondo */

.events-calendar-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 12, 28, 0.72);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Ventana */

.events-calendar-modal-window {
    position: relative;
    z-index: 1;

    width: min(100%, 620px);
    max-height: min(80vh, 700px);

    overflow-y: auto;

    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--events-radius);

    background:
        linear-gradient(
            135deg,
            rgba(88, 94, 174, 0.98),
            rgba(48, 52, 105, 0.98)
        );

    box-shadow:
        0 24px 70px rgba(10, 12, 40, 0.45);

    transform: translateY(12px) scale(0.98);

    transition:
        transform 0.2s ease;
}

.events-calendar-modal.is-open
.events-calendar-modal-window {
    transform: translateY(0) scale(1);
}


/* Botón cerrar */

.events-calendar-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

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

    width: 36px;
    height: 36px;

    padding: 0;

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

    background: rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.88);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.events-calendar-modal-close:hover {
    background: rgba(255, 255, 255, 0.13);

    border-color: rgba(255, 255, 255, 0.34);

    transform: scale(1.05);
}

.events-calendar-modal-close i {
    font-size: 20px;
    line-height: 1;
}


/* Cabecera */

.events-calendar-modal-header {
    padding-right: 45px;

    margin-bottom: 24px;
}

.events-calendar-modal-header h2 {
    margin: 10px 0 0;

    color: #ffffff;

    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}


/* =========================================================
   EVENTOS DENTRO DEL MODAL
   ========================================================= */

.events-calendar-modal-content {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.events-calendar-modal-event {
    padding: 17px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--events-radius-small);

    background: rgba(10, 12, 28, 0.24);
}


/* Cabecera de cada evento */

.events-calendar-modal-event-header {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}


.events-calendar-modal-event-ball {
    display: block;

    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    object-fit: contain;
}


.events-calendar-modal-event-header h3 {
    min-width: 0;

    margin: 0;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}


/* Fechas */

.events-calendar-modal-event-dates {
    margin: 10px 0 0;

    color: rgba(255, 255, 255, 0.52);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}


/* Descripción */

.events-calendar-modal-event-description {
    margin: 10px 0 0;

    color: var(--events-text-soft);

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

    white-space: pre-line;
}


/* Enlace */

.events-calendar-modal-event a {
    display: inline-flex;

    margin-top: 13px;

    color: #ffffff;

    font-size: 0.73rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.events-calendar-modal-event a:hover {
    opacity: 0.72;

    transform: translateX(3px);
}


/* =========================================================
   RESPONSIVE — CALENDARIO
   ========================================================= */

@media (max-width: 600px) {

    .events-calendar-event-indicators {
        gap: 3px;

        margin-top: 5px;
    }

    .events-calendar-event-indicator {
        width: 17px;
        height: 17px;

        flex-basis: 17px;
    }


    /* =====================================================
       MODAL
       ===================================================== */

    .events-calendar-modal {
        align-items: center;
        padding: 18px;
    }

    .events-calendar-modal-window {
        width: 100%;
        max-height: 85vh;
        padding: 24px 18px 22px;
        border-radius: 18px;
        transform: translateY(12px) scale(0.98);
    }

    .events-calendar-modal.is-open
    .events-calendar-modal-window {
        transform: translateY(0) scale(1);
    }

    .events-calendar-modal-close {
        top: 15px;
        right: 15px;

        width: 34px;
        height: 34px;
    }

    .events-calendar-modal-header {
        padding-right: 42px;

        margin-bottom: 20px;
    }

    .events-calendar-modal-header h2 {
        font-size: 1.45rem;
    }

    .events-calendar-modal-event {
        padding: 15px;
    }

    .events-calendar-modal-event-header h3 {
        font-size: 0.98rem;
    }

    .events-calendar-modal-event-description {
        font-size: 0.84rem;
    }

}

/* =========================================================
   EVENTOS EN ACTIVO
   ========================================================= */

.events-active {
    padding: 0;
}

.events-active-content {
    width: 100%;
    margin: 0 auto;
}

.events-active-header {
    margin-bottom: 18px;
}

.events-active-event {
    position: relative;

    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--events-radius);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.055)
        );

    box-shadow:
        0 14px 35px rgba(35, 40, 120, 0.12);

    overflow: hidden;
}

.events-active-event + .events-active-event {
    margin-top: 18px;
}

.events-active-event > img {
    display: block;

    width: 100%;
    height: 135px;

    object-fit: contain;

    border-radius: var(--events-radius-small);

    background: rgba(0, 0, 0, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.10);
}

.events-active-event-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.events-active-event-info h2 {
    position: relative;

    margin: 0;
    padding-left: 14px;

    color: #ffffff;

    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.events-active-event-info h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.08em;
    bottom: 0.08em;

    width: 3px;

    border-radius: 3px;

    background: rgba(255, 255, 255, 0.70);
}

.events-active-event-info p {
    max-width: 700px;

    margin: 12px 0 0;

    color: var(--events-text-soft);

    font-size: 0.88rem;
    line-height: 1.6;

    white-space: normal;
}

.events-active-event-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 15px;
    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: var(--events-radius-small);

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.events-active-event-info a:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.60);

    transform: translateY(-1px);
}


/* =========================================================
   LISTA DE EVENTOS
   ========================================================= */

.events-list {
    padding: 70px 24px 100px;
}

.events-list-content {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.event-item {
    position: relative;

    margin-bottom: 14px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--events-radius);

    background: #20223d;

    box-shadow:
        0 10px 28px rgba(35, 20, 50, 0.18);

    overflow: hidden;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   FONDOS DE EVENTOS
   ========================================================= */

.event-item::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    right: 0;

    height: 112px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.event-item::after {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    right: 0;

    height: 112px;

    background:
        linear-gradient(
            90deg,
            rgba(10, 12, 28, 0.78),
            rgba(10, 12, 28, 0.48) 50%,
            rgba(10, 12, 28, 0.72)
        );

    pointer-events: none;

    z-index: 0;
}

.event-bg-torneo::before {
    background-image: url("../img/evento-torneos.webp");
}

.event-bg-comunidad::before {
    background-image: url("../img/evento-comunidad.webp");
}

.event-bg-reto::before {
    background-image: url("../img/evento-retos.webp");
}

.event-bg-creativo::before {
    background-image: url("../img/evento-creativo.webp");
}

.event-bg-otros::before {
    background-image: url("../img/evento-otros.webp");
}


/* =========================================================
   HOVER DE LA TARJETA
   ========================================================= */

.event-item:hover {
    border-color: rgba(255, 255, 255, 0.38);

    box-shadow:
        0 14px 34px rgba(30, 20, 50, 0.24);

    transform: translateY(-1px);
}


/* =========================================================
   BOTÓN DEL EVENTO
   ========================================================= */

.event-item-toggle {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;

    min-height: 112px;

    padding: 14px 24px;

    border: 0;

    background: transparent;

    color: #ffffff;

    font: inherit;
    text-align: left;

    cursor: pointer;
}


/* =========================================================
   ALTERNANCIA VISUAL
   ========================================================= */

.event-item:nth-child(even) .event-item-toggle {
    flex-direction: row-reverse;

    text-align: right;
}

.event-item:nth-child(even) .event-item-name {
    padding-left: 0;
    padding-right: 18px;
}

.event-item:nth-child(even) .event-item-name::before {
    left: auto;
    right: 0;
}

.event-item:nth-child(even) .event-item-toggle:hover .event-item-name {
    transform: translateX(-3px);
}


/* =========================================================
   NOMBRE DEL EVENTO
   ========================================================= */

.event-item-name {
    position: relative;

    flex: 1 1 auto;

    padding-left: 18px;

    color: #ffffff;

    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 650;
    letter-spacing: -0.03em;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.event-item-name::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;

    width: 3px;

    border-radius: 3px;

    background: rgba(255, 255, 255, 0.40);

    transition:
        background 0.25s ease,
        height 0.25s ease;
}

.event-item-toggle:hover .event-item-name {
    transform: translateX(3px);
}

.event-item-toggle:hover .event-item-name::before {
    background: rgba(255, 255, 255, 0.90);
}


/* =========================================================
   ICONO DE APERTURA
   ========================================================= */

.event-item-icon {
    position: relative;

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

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    color: rgba(255, 255, 255, 0.88);


    border: 0;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.event-item-icon i {
    display: block;

    font-size: 28px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}

.event-item-toggle:hover .event-item-icon {
    color: #ffffff;
}

.event-item-toggle:hover .event-item-icon i {
    transform: scale(1.08);
}


/* =========================================================
   CONTENIDO DESPLEGABLE
   ========================================================= */

.event-item-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;
}


/* =========================================================
   PARTE PRINCIPAL DEL EVENTO
   ========================================================= */

.event-item-main {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);

    align-items: center;

    gap: 40px;

    padding: 28px 24px 24px;
}

.event-item-main > img {
    display: block;

    width: 180px;
    height: 180px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.14);

    transition:
        transform 0.3s ease;
}

.event-item.is-open .event-item-main > img {
    transform: scale(1.01);
}


/* =========================================================
   INFORMACIÓN DEL EVENTO
   ========================================================= */

.event-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.event-item-info p {
    max-width: 760px;

    margin: 0;

    color: var(--events-text-soft);

    font-size: 0.98rem;
    line-height: 1.8;

    white-space: pre-line;
}

.event-item-info a {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-top: 20px;

    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.event-item-info a:hover {
    opacity: 0.75;
    transform: translateX(3px);
}


/* =========================================================
   GALERÍA
   ========================================================= */

.event-item-gallery {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 18px 24px 26px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.event-item-gallery-window {
    min-width: 0;

    overflow: hidden;
}

.event-item-gallery-track {
    display: flex;

    gap: 16px;

    min-width: 0;

    transform: translateX(0);

    transition:
        transform 0.4s ease;
}

.event-item-gallery-card {
    display: flex;
    flex: 0 0 calc((100% - 32px) / 3);

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--events-radius-small);

    background: rgba(10, 12, 28, 0.42);

    color: #ffffff;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.event-item-gallery-thumb {
    position: relative;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

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

    aspect-ratio: 16 / 9;
    overflow: hidden;

    background-color: rgba(10, 12, 28, 0.35);

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}




.event-item-gallery-thumb::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 0;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(14px);
    opacity: 0.9;
    pointer-events: none;
}

.event-item-gallery-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.event-item-gallery-thumb i {
    position: relative;
    z-index: 2;

    width: 52px;
    height: 52px;

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

    flex: 0 0 52px;

    font-size: 26px;
    line-height: 1;

    color: rgba(255, 255, 255, 0.95);

    background: rgba(10, 12, 28, 0.62);

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

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(255, 255, 255, 0.08);

    transform: translateY(20px) !important;
}

.event-item-gallery-card-info {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 11px 13px 13px;

    min-width: 0;
}

.event-item-gallery-platform {
    color: rgba(255, 255, 255, 0.56);

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-item-gallery-title {
    overflow: hidden;

    color: #ffffff;

    font-size: 0.84rem;
    font-weight: 600;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-item-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

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

    background: rgba(255, 255, 255, 0.05);

    color: rgba(255, 255, 255, 0.88);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.event-item-gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.34);

    transform: scale(1.05);
}

.event-item-gallery-arrow i {
    font-size: 20px;

    line-height: 1;
}

.event-item-gallery-arrow.is-disabled {
    opacity: 0.25;

    pointer-events: none;
}

.event-item-gallery-card:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.34);

    transform: translateY(-2px);
}

.event-item-gallery-card:hover .event-item-gallery-thumb i {
    color: #ffffff;

    transform: scale(1.10);
}


/* =========================================================
   GALERÍA SIN CONTENIDO
   ========================================================= */

.event-item-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    grid-column: 1 / -1;
    min-height: 82px;

    padding: 18px 24px;

    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: var(--events-radius-small);

    background: rgba(10, 12, 28, 0.18);

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;

    text-align: center;
}

.event-item-gallery-empty i {
    flex: 0 0 auto;

    font-size: 20px;

    color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   ESTADO ABIERTO
   ========================================================= */

.event-item.is-open .event-item-content {
    max-height: 500px;

    opacity: 1;
}

.event-item.is-open .event-item-icon {
    color: #ffffff;
}

.event-item.is-open .event-item-name::before {
    background: rgba(255, 255, 255, 0.90);
}


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

@media (max-width: 1050px) {

    .events-calendar-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .events-active {
        width: 100%;
    }

    .events-active-event {
        grid-template-columns: 190px minmax(0, 1fr);

        gap: 22px;
    }

    .events-active-event > img {
        height: 150px;
        min-height: 150px;
    }


    /* Cabecera plegada */

    .event-item-toggle {
        min-height: 100px;

        gap: 18px;

        padding-left: 18px;
        padding-right: 18px;
    }


    /* Contenido desplegado */

    .event-item-main {
        grid-template-columns: 170px minmax(0, 1fr);

        gap: 24px;
    }

    .event-item-main > img {
        width: 150px;
        height: 150px;
    }


    /* Galería */

    .event-item-gallery-card {
        flex-basis: calc((100% - 16px) / 2);
    }

}


@media (max-width: 600px) {

    .events-intro {
        padding: 90px 18px 60px;
    }


    /* Calendario */

    .events-calendar-layout {
        width: calc(100% - 36px);

        margin-top: 45px;
    }

    .events-calendar {
        padding: 16px 10px 12px;
    }

    .events-calendar-header {
        grid-template-columns: 38px minmax(0, 1fr) 38px;

        gap: 8px;

        margin-bottom: 16px;
    }

    .events-calendar-nav {
        width: 34px;
        height: 34px;
    }

    .events-calendar-nav i {
        font-size: 18px;
    }

    .events-calendar-month {
        gap: 6px;
    }

    .events-calendar-month-name {
        font-size: 1.15rem;
    }

    .events-calendar-year {
        font-size: 0.78rem;
    }

    .events-calendar-weekdays span {
        padding: 7px 2px 8px;

        font-size: 0.58rem;
    }

    .events-calendar-day {
        min-height: 74px;

        padding: 5px;
    }

    .events-calendar-day-number {
        width: 24px;
        height: 24px;

        margin-bottom: 3px;

        font-size: 0.68rem;
    }

    .events-calendar-event {
        padding: 3px 4px;

        font-size: 0.56rem;
    }


    /* Eventos activos */

    .events-active,
    .events-list {
        padding-left: 18px;
        padding-right: 18px;
    }

    .events-active {
        padding-top: 0;
    }

    .events-list {
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .events-active-event {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 16px;
    }

    .events-active-event > img {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }


    /* Cabecera plegada */

    .event-item-toggle {
        min-height: 92px;

        padding: 14px 2px;

        gap: 12px;
    }

    .event-item-name {
        font-size: 1.2rem;
    }

    .event-item-icon {
        width: 32px;
        height: 32px;

        flex-basis: 32px;
    }

    .event-item-icon i {
        font-size: 25px;
    }


    /* Contenido desplegado */

    .event-item-main {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 24px 18px 20px;

        text-align: center;
    }

    .event-item-main > img {
        width: 150px;
        height: 150px;
    }

    .event-item-info {
        align-items: center;
    }

    .event-item-info p {
        text-align: center;
    }


    /* Galería */

    .event-item-gallery {
        grid-template-columns: 38px minmax(0, 1fr) 38px;

        gap: 8px;

        padding: 16px 18px 22px;
    }

    .event-item-gallery-arrow {
        width: 34px;
        height: 34px;
    }

    .event-item-gallery-card {
        flex-basis: 100%;
    }

    .event-item-gallery-empty {
        min-height: 76px;

        padding: 16px 18px;

        font-size: 0.74rem;
    }

    .event-item.is-open .event-item-content {
        max-height: 800px;
    }

}

/* =========================================================
   RESPONSIVE — LANDSCAPE
   ========================================================= */

@media (orientation: landscape) and (min-width: 601px) and (max-width: 1150px) {

    .events-intro {
        padding-top: 75px;
        padding-bottom: 55px;
    }

    .events-calendar-layout {
        margin-top: 40px;
    }

    .events-calendar {
        padding: 18px;
    }

    .events-calendar-header {
        margin-bottom: 16px;
    }

    .events-calendar-day {
        min-height: 78px;
        padding: 7px;
    }

    .events-calendar-day-number {
        width: 25px;
        height: 25px;

        margin-bottom: 4px;

        font-size: 0.70rem;
    }

    .events-active-event {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 18px;
        padding: 14px;
    }

    .events-active-event > img {
        height: 125px;
        min-height: 125px;
    }

    .events-list {
        padding-top: 55px;
        padding-bottom: 80px;
    }

}


@media (orientation: landscape) and (max-width: 600px) {

    .events-intro {
        padding-top: 65px;
        padding-bottom: 45px;
    }

    .events-calendar-layout {
        margin-top: 35px;
    }

    .events-calendar {
        padding: 12px 8px 10px;
    }

    .events-calendar-header {
        margin-bottom: 12px;
    }

    .events-calendar-weekdays span {
        padding-top: 5px;
        padding-bottom: 6px;
    }

    .events-calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .events-calendar-day-number {
        width: 22px;
        height: 22px;

        margin-bottom: 2px;

        font-size: 0.64rem;
    }

    .events-calendar-event-indicators {
        gap: 2px;
        margin-top: 3px;
    }

    .events-calendar-event-indicator {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .events-active-event {
        gap: 14px;
        padding: 14px;
    }

    .events-active-event > img {
        height: 120px;
        min-height: 120px;
    }

    .events-list {
        padding-top: 45px;
        padding-bottom: 60px;
    }

}