/* =========================================================
   LANDING PÚBLICA DEL EVENTO
   SPI Events Platform
========================================================= */

:root {
    --evento-color-default: #6f42c1;
    --evento-background: #070810;
    --evento-surface: #10121d;
    --evento-surface-soft: #161926;
    --evento-text: #ffffff;
    --evento-text-soft: rgba(255, 255, 255, 0.72);
    --evento-text-muted: rgba(255, 255, 255, 0.52);
    --evento-border: rgba(255, 255, 255, 0.11);
    --evento-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   AJUSTES GENERALES
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--evento-background);
}

.evento-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(111, 66, 193, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(54, 104, 255, 0.1),
            transparent 30%
        ),
        var(--evento-background);
    color: var(--evento-text);
}


/* =========================================================
   HERO PRINCIPAL
========================================================= */

.evento-hero {
    --evento-color: var(--evento-color-default);

    position: relative;
    display: flex;
    min-height: 92vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 140px 24px 100px;
    background-color: #080910;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Capa oscura general */

.evento-hero::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            180deg,
            rgba(5, 6, 12, 0.28) 0%,
            rgba(5, 6, 12, 0.64) 52%,
            rgba(5, 6, 12, 0.98) 100%
        );
}


/* Luz dinámica basada en el color del evento */

.evento-hero::after {
    position: absolute;
    z-index: -2;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    content: "";
    background: var(--evento-color);
    filter: blur(190px);
    opacity: 0.22;
    pointer-events: none;
    transform: translate(42%, -20%);
}


/* Textura sutil */

.evento-hero__texture {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}


/* =========================================================
   CONTENIDO DEL HERO
========================================================= */

.evento-hero__content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin: 0 auto;
    text-align: center;
    animation: eventoHeroEntrance 0.85s ease both;
}


.evento-logo {
    display: block;
    width: clamp(90px, 12vw, 150px);
    height: clamp(90px, 12vw, 150px);
    margin: 0 auto 28px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(8, 9, 16, 0.68);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    object-fit: contain;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


.evento-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


.evento-hero h1 {
    max-width: 960px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(42px, 6.6vw, 82px);
    font-weight: 900;
    line-height: 0.91;
    letter-spacing: -0.055em;
    text-wrap: balance;
    text-shadow:
        0 10px 45px rgba(0, 0, 0, 0.42);
}


.evento-frase {
    max-width: 700px;
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
}


/* =========================================================
   INFORMACIÓN RÁPIDA
========================================================= */

.evento-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 38px auto 0;
}


.evento-meta > div {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(8, 9, 16, 0.58);
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.evento-meta i {
    flex: 0 0 auto;
    color: var(--evento-color);
    font-size: 18px;
}


/* =========================================================
   BOTONES DEL EVENTO
========================================================= */

.evento-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}


.btn-evento {
    position: relative;
    display: inline-flex;
    min-width: 190px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--evento-color);
    box-shadow:
        0 18px 45px color-mix(
            in srgb,
            var(--evento-color) 38%,
            transparent
        );
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        filter 0.24s ease;
}


.btn-evento::before {
    position: absolute;
    top: -60%;
    left: -35%;
    width: 42%;
    height: 220%;
    content: "";
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent
        );
    opacity: 0;
    transform: rotate(20deg);
    transition:
        left 0.55s ease,
        opacity 0.3s ease;
}


.btn-evento:hover {
    color: #ffffff;
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow:
        0 24px 60px color-mix(
            in srgb,
            var(--evento-color) 48%,
            transparent
        );
}


.btn-evento:hover::before {
    left: 110%;
    opacity: 1;
}


.btn-evento:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.42);
    outline-offset: 4px;
}


.btn-evento.disabled {
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.52);
    pointer-events: none;
}


/* Botón secundario preparado para después */

.btn-evento--outline {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(8, 9, 16, 0.5);
    box-shadow: none;
    color: #ffffff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.btn-evento--outline:hover {
    border-color:
        color-mix(
            in srgb,
            var(--evento-color) 65%,
            white
        );
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}


/* =========================================================
   INDICADOR PARA DESPLAZARSE
========================================================= */

.evento-scroll-indicator {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}


.evento-scroll-indicator i {
    font-size: 20px;
    animation: eventoScrollBounce 1.7s ease-in-out infinite;
}


/* =========================================================
   CONTENEDORES GENERALES PARA SIGUIENTES COMPONENTES
========================================================= */

.evento-container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}


.evento-section {
    position: relative;
    padding: 110px 0;
}


.evento-section__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--evento-color-default);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.evento-section__title {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}


.evento-section__description {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--evento-text-soft);
    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes eventoHeroEntrance {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes eventoScrollBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .evento-hero {
        min-height: 88vh;
        padding-top: 120px;
    }

    .evento-hero::after {
        width: 520px;
        height: 520px;
        filter: blur(145px);
    }

    .evento-meta {
        max-width: 680px;
    }
}


@media (max-width: 680px) {
    .evento-hero {
        min-height: 100svh;
        padding:
            110px
            18px
            90px;
        background-position: center;
    }

    .evento-logo {
        width: 92px;
        height: 92px;
        margin-bottom: 22px;
        border-radius: 23px;
    }

    .evento-badge {
        margin-bottom: 18px;
        padding: 8px 13px;
        font-size: 10px;
    }

    .evento-hero h1 {
        font-size: clamp(44px, 15vw, 72px);
        line-height: 0.94;
    }

    .evento-frase {
        margin-top: 20px;
        font-size: 17px;
    }

    .evento-meta {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 28px;
    }

    .evento-meta > div {
        width: 100%;
        min-height: 50px;
        justify-content: flex-start;
        padding: 12px 15px;
        text-align: left;
    }

    .evento-buttons {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .btn-evento {
        width: 100%;
        min-height: 54px;
    }

    .evento-scroll-indicator {
        display: none;
    }

    .evento-container {
        width: min(100% - 30px, 1180px);
    }

    .evento-section {
        padding: 80px 0;
    }

    .evento-section__description {
        font-size: 16px;
    }
}


@media (max-width: 390px) {
    .evento-hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .evento-hero h1 {
        font-size: 42px;
    }

    .evento-meta > div {
        font-size: 13px;
    }
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .evento-hero__content,
    .evento-scroll-indicator i {
        animation: none;
    }

    .btn-evento {
        transition: none;
    }
}
/* ==========================================================
   CARDS DE INFORMACIÓN
========================================================== */

.evento-info-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:24px;

    margin-top:60px;

}

.evento-card{

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:35px;

    transition:.35s;

    text-align:center;

}

.evento-card:hover{

    transform:translateY(-10px);

    border-color:var(--evento-color);

    box-shadow:0 25px 60px rgba(0,0,0,.35);

}

.evento-card-icon{

    width:70px;

    height:70px;

    margin:auto;

    margin-bottom:20px;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--evento-color);

    color:white;

    font-size:28px;

}

.evento-card h3{

    margin-bottom:10px;

    color:white;

    font-size:20px;

    font-weight:700;

}

.evento-card p{

    color:#bfc6d5;

    margin:0;

    line-height:1.6;

}

/* Información compacta y legible */
.evento-page .evento-section:has(.evento-info-grid) { padding-top:48px; padding-bottom:48px; }
.evento-page .evento-section:has(.evento-info-grid) .evento-container { max-width:1220px; }
.evento-page .evento-section:has(.evento-info-grid) .evento-section__title { font-size:clamp(30px,3.7vw,46px); }
.evento-page .evento-section:has(.evento-info-grid) .evento-section__description { max-width:720px; font-size:16px; }
.evento-info-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:34px; }
.evento-card { min-height:210px; padding:24px 18px; border-radius:18px; display:flex; flex-direction:column; align-items:center; }
.evento-card:hover { transform:translateY(-4px); }
.evento-card-icon { width:48px; height:48px; margin:0 auto 14px; border-radius:14px; background:color-mix(in srgb,var(--evento-color) 20%,#171725); color:var(--evento-color); }
.evento-card-icon svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.evento-card h3 { margin:0 0 7px; font-size:17px; }
.evento-card p { font-size:14px; line-height:1.5; }
.evento-card__secondary { display:block; margin-top:5px; font-size:12px; line-height:1.45; color:#929bad; }
.evento-card__maps { display:inline-flex; align-items:center; justify-content:center; gap:7px; margin-top:auto; padding:9px 13px; border:1px solid color-mix(in srgb,var(--evento-color) 50%,transparent); border-radius:999px; color:#fff; background:color-mix(in srgb,var(--evento-color) 16%,transparent); font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.evento-card__maps svg { width:15px; height:15px; fill:none; stroke:var(--evento-color); stroke-width:2; }

@media (max-width:900px) { .evento-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .evento-info-grid { grid-template-columns:1fr; gap:10px; } .evento-card { min-height:0; padding:20px 16px; } }
/* =========================================================
   CUENTA REGRESIVA
========================================================= */

.evento-countdown-section {
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 0%,
            color-mix(
                in srgb,
                var(--evento-color) 22%,
                transparent
            ),
            transparent 42%
        ),
        #090b13;
}

.evento-countdown-header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.evento-countdown-header .evento-section__title {
    margin-inline: auto;
}

.evento-countdown-header .evento-section__description {
    margin-inline: auto;
}

.evento-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 58px auto 0;
}

.evento-countdown__item {
    position: relative;
    overflow: hidden;
    padding: 34px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.025)
        );
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.evento-countdown__item::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 60%;
    height: 3px;
    border-radius: 999px;
    content: "";
    background: var(--evento-color);
    box-shadow:
        0 0 24px var(--evento-color);
    transform: translateX(-50%);
}

.evento-countdown__item strong {
    display: block;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.evento-countdown__item span {
    display: block;
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.evento-countdown__message {
    display: flex;
    max-width: 600px;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 50px auto 0;
    padding: 20px 26px;
    border: 1px solid
        color-mix(
            in srgb,
            var(--evento-color) 55%,
            transparent
        );
    border-radius: 24px;
    background:
        color-mix(
            in srgb,
            var(--evento-color) 18%,
            rgba(255, 255, 255, 0.04)
        );
    color: #ffffff;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    text-align: center;
}

.evento-countdown__message i {
    color: var(--evento-color);
    font-size: 28px;
}

.evento-countdown__message[hidden] {
    display: none;
}

/* Anuncios multimedia configurables por evento */
.evento-video-showcase { margin: 38px auto 0; text-align: left; }
.evento-video-showcase__heading { display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:15px; }
.evento-video-showcase__heading span { color:#d8b66f;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase; }
.evento-video-showcase__heading strong { color:rgba(255,255,255,.68);font-size:14px; }
.evento-video-rail { display:grid;grid-auto-flow:column;grid-auto-columns:min(680px,82vw);gap:16px;overflow-x:auto;padding:2px 2px 16px;scroll-snap-type:x mandatory;scrollbar-color:var(--evento-color) rgba(255,255,255,.08); }
.evento-video-card { overflow:hidden;aspect-ratio:16/9;border:1px solid rgba(255,255,255,.15);border-radius:22px;background:#050507;box-shadow:0 25px 70px rgba(0,0,0,.42);scroll-snap-align:start; }
.evento-video-card iframe,.evento-video-card video { width:100%;height:100%;border:0;object-fit:cover; }
.evento-anuncios { padding:76px 24px 110px;background:linear-gradient(180deg,#090a12,#050507); }
.evento-anuncios__container { max-width:1120px; }
.evento-anuncios__heading { max-width:760px;margin:0 auto 34px;text-align:center; }
.evento-anuncios__heading h2 { margin:10px 0 0;font-size:clamp(30px,5vw,58px);line-height:1;letter-spacing:-.045em; }
.evento-anuncios__copy { margin-top:18px;color:var(--evento-text-soft);font-size:15px;line-height:1.65; }
.evento-anuncios__copy p,.evento-anuncios__image { margin:0; }
.evento-anuncios__image img { display:block;width:min(100%,920px);max-height:1380px;margin:0 auto;object-fit:contain;border:1px solid rgba(216,182,111,.3);border-radius:28px;background:#080808;box-shadow:0 36px 100px rgba(0,0,0,.55); }
.evento-page .evento-section { padding-top:66px;padding-bottom:66px; }
.evento-page .evento-section__title { font-size:clamp(30px,4.6vw,54px); }

@media (max-width: 700px) {
    .evento-video-showcase { margin-top:28px; }
    .evento-video-showcase__heading { display:block; }
    .evento-video-showcase__heading strong { display:block;margin-top:6px; }
    .evento-video-rail { grid-auto-columns:88vw; }
    .evento-video-card,.evento-anuncios__image img { border-radius:18px; }
    .evento-anuncios { padding:58px 16px 78px; }
}

@media (max-width: 760px) {
    .evento-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .evento-countdown {
        gap: 10px;
    }

    .evento-countdown__item {
        padding: 26px 12px;
        border-radius: 20px;
    }

    .evento-countdown__item strong {
        font-size: 42px;
    }

    .evento-countdown__item span {
        font-size: 10px;
        letter-spacing: 0.1em;
    }
}
