/* =========================================================
   1. RESET + FUENTES + BASE GLOBAL
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'mon';
    src: url('assets/Montserrat-Black.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 45%, #7b1fa2 0%, #4a0072 35%, transparent 70%),
        linear-gradient(to right, #000000 0%, #000000 45%, #2a004f 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* =========================================================
   2. SECCIONES BASE
   ========================================================= */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================================
   3. NAVEGACION LATERAL
   ========================================================= */
.side-nav {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.nav-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:first-child .nav-icon svg,
.nav-item:last-child .nav-icon svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.nav-label {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    background: #ff2a85;
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(255, 42, 133, 0.55), 0 0 28px rgba(255, 42, 133, 0.22);
}

.nav-item.active .nav-icon svg {
    filter: drop-shadow(0 0 5px rgba(255, 42, 133, 0.9));
}

/* =========================================================
   4. HERO / HOME
   ========================================================= */
#home {
    min-height: 100vh;

    background:
        url('assets/bg-hero.jpg');

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

    /* FONDO FIJO */
    background-attachment: fixed;

    padding: 60px 20px;
}

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

.hero-countdown {
    margin-top: 22px;
    margin-bottom: 4px;

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

    gap: 10px;

    color: #ffffff;

    text-align: center;
}

.countdown-item {
    min-width: 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-family: 'mon', sans-serif;

    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;

    line-height: 1;

    color: #ffffff;

    text-shadow:
        0 0 8px rgba(255,255,255,.6),
        0 0 18px rgba(52,135,255,.65),
        0 0 32px rgba(185,45,255,.45);
}

.countdown-item small {
    margin-top: 7px;

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

    letter-spacing: 0.16em;

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

.countdown-separator {
    margin-top: -2px;

    font-family: 'mon', sans-serif;

    font-size: 2rem;
    font-weight: 900;

    color: #ffffff;

    opacity: .6;
}


@media (max-width: 600px) {

    .hero-countdown {
        gap: 4px;
        margin-top: 18px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-item span {
        font-size: 1.55rem;
    }

    .countdown-item small {
        font-size: 0.52rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

}

/* =========================================================
   LOGOS SUPERIORES DEL HERO
   ========================================================= */
.hero-top-logos {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3; /* Encima de las estelas (1) y los titanes (2) */
    pointer-events: none; /* Evita bloquear clics o el giro con el cursor */
}

.hero-brand-logo {
    height: 55px; /* Ajusta la altura según la proporción de tus logos */
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* Ajuste para Tablet y Mobile */
@media (max-width: 991px) {
    .hero-top-logos {
        top: 24px;
        padding: 0 85px 0 20px; /* Deja margen derecho para no chocar con .side-nav */
    }

    .hero-brand-logo {
        height: 38px;
        max-width: 120px;
    }
}



/* =========================================================
   ESTELAS DE LUZ HERO
   ========================================================= */

#home {
    position: relative;
    overflow: hidden;
}

/* Capa detrás de los Titanes */
.hero-light-trails {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;
    pointer-events: none;
}

/* El contenido queda encima */
#home .hero-container {
    position: relative;
    z-index: 2;
}


/* BASE DE LAS DOS ESTELAS */

.light-trail {
    position: absolute;
    width: 45vw;
    height: 10vw;
    min-height: 55px;
    max-height: 120px;
    border-radius: 999px;
    opacity: 0.8;
    filter: blur(18px);
    will-change: transform, opacity;
}

/* =========================================================
   ESTELA AZUL - IZQUIERDA
   ========================================================= */

.light-trail-left {
    width: 55vw;
    height: 75px;

    right: 18%;
    bottom: -6%;

    transform-origin: left center;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(183, 229, 255, 0.95) 78%,
            rgba(45, 137, 255, 0.7) 52%,
            rgba(183, 229, 255, 0.95) 78%,
            transparent 100%
        );

    box-shadow:
        0 0 35px rgba(40, 120, 255, 0.8),
        0 0 85px rgba(68, 100, 255, 0.45);

    animation: trail-left-diagonal 5.5s ease-in-out infinite alternate;
}

.light-trail-left-1 {
    width: 55vw;
    height: 75px;
    animation-duration: 5.5s;
    
    --angulo-extra: 0deg;
}

.light-trail-left-2 {
    width: 48vw;
    height: 55px;

    left: 10%;
    bottom: 2%;

    opacity: 0.55;

    animation-duration: 7s;
    animation-delay: -2s;
    animation-name: trail-left-diagonal-2;
    
    --angulo-extra: 8deg;
}


/* =========================================================
   ESTELA ROSA - DERECHA
   ========================================================= */

.light-trail-right {
    width: 55vw;
    height: 75px;

    right: 18%;
    bottom: -6%;

    transform-origin: right center;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 40, 184, 0.12) 15%,
            rgba(230, 62, 255, 0.72) 50%,
            rgba(255, 210, 250, 0.95) 78%,
            transparent 100%
        );

    box-shadow:
        0 0 35px rgba(255, 34, 177, 0.78),
        0 0 85px rgba(166, 64, 255, 0.45);
}

.light-trail-right-1 {
    width: 55vw;
    height: 75px;

    animation: trail-right-diagonal 6s ease-in-out infinite alternate;
}

.light-trail-right-2 {
    width: 48vw;
    height: 55px;

    right: 10%;
    bottom: 2%;

    opacity: 0.55;

    animation: trail-right-diagonal-2 7.5s ease-in-out infinite alternate;
    animation-delay: -3s;
}


/* =========================================================
   MOVIMIENTO ESTELA IZQUIERDA
   ========================================================= */

@keyframes trail-left-diagonal {

    0% {
        transform:
            translate(-8vw, 6vh)
            rotate(-58deg)
            scaleX(0.9);

        opacity: 0.45;
    }

    50% {
        transform:
            translate(6vw, -4vh)
            rotate(-50deg)
            scaleX(1.05);

        opacity: 0.95;
    }

    100% {
        transform:
            translate(18vw, -10vh)
            rotate(-44deg)
            scaleX(1.15);

        opacity: 0.55;
    }
}

@keyframes trail-left-diagonal-2 {

    0% {
        transform:
            translate(-4vw, 7vh)
            rotate(-68deg)
            scaleX(0.85);
    }

    50% {
        transform:
            translate(5vw, -1vh)
            rotate(-57deg)
            scaleX(1);
    }

    100% {
        transform:
            translate(12vw, -7vh)
            rotate(-50deg)
            scaleX(1.1);
    }
}

/* =========================================================
   MOVIMIENTO ESTELA DERECHA
   ========================================================= */

@keyframes trail-right-diagonal {

    0% {
        transform:
            translate(8vw, 6vh)
            rotate(58deg)
            scaleX(0.9);

        opacity: 0.45;
    }

    50% {
        transform:
            translate(-6vw, -4vh)
            rotate(50deg)
            scaleX(1.05);

        opacity: 0.95;
    }

    100% {
        transform:
            translate(-18vw, -10vh)
            rotate(44deg)
            scaleX(1.15);

        opacity: 0.55;
    }
}

@keyframes trail-right-diagonal-2 {

    0% {
        transform:
            translate(4vw, 7vh)
            rotate(68deg)
            scaleX(0.85);

        opacity: 0.35;
    }

    50% {
        transform:
            translate(-5vw, -1vh)
            rotate(57deg)
            scaleX(1);

        opacity: 0.75;
    }

    100% {
        transform:
            translate(-12vw, -7vh)
            rotate(50deg)
            scaleX(1.1);

        opacity: 0.45;
    }
}

@media (max-width: 600px) {

    .light-trail-left,
    .light-trail-right {
        width: 78vw;
        height: 55px;
        filter: blur(14px);
    }

    .light-trail-left {
        left: 6%;
        bottom: -4%;
    }

    .light-trail-right {
        left: 6%;
        bottom: -4%;
    }

    @keyframes trail-left-diagonal {
        0% {
            transform:
                translate(-5vw, 4vh)
                rotate(-62deg)
                scaleX(0.9);

            opacity: 0.4;
        }

        50% {
            transform:
                translate(8vw, -2vh)
                rotate(-52deg)
                scaleX(1.05);

            opacity: 0.9;
        }

        100% {
            transform:
                translate(17vw, -6vh)
                rotate(-46deg)
                scaleX(1.1);

            opacity: 0.5;
        }
    }

    @keyframes trail-right-diagonal {
        0% {
            transform:
                translate(5vw, 4vh)
                rotate(62deg)
                scaleX(0.9);

            opacity: 0.4;
        }

        50% {
            transform:
                translate(-8vw, -2vh)
                rotate(52deg)
                scaleX(1.05);

            opacity: 0.9;
        }

        100% {
            transform:
                translate(-17vw, -6vh)
                rotate(46deg)
                scaleX(1.1);

            opacity: 0.5;
        }
    }
}



.hero-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-center {
    text-align: center;
}

.main-logo {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
}

.hero-date,
.hero-site {
    font-family: 'mon';
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 1000;
    letter-spacing: 1px;
    text-shadow:
        0 3px 5px rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.35),
        0 0 10px rgba(255, 255, 255, 0.12);
}

.hero-coment {
    font-family: 'mon';
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 1000;
    letter-spacing: 1px;
    text-shadow:
        0 3px 5px rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.35),
        0 0 10px rgba(255, 255, 255, 0.12);
}

.hero-date {
    margin-top: 15px;
}

.hero-site {
    margin-top: 8px;
}

.titan-img {
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   5. BOTON HERO - VER LINE UP
   ========================================================= */
.hero-lineup-btn {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(126, 190, 255, 0.9);
    border-radius: 999px;
    background: linear-gradient(135deg, #0b55ff 0%, #159dff 100%);
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 0 18px rgba(30, 126, 255, 0.58),
        0 0 42px rgba(44, 98, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero-lineup-btn::before {
    content: '';
    position: absolute;
    inset: -35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, transparent 58%);
    transform: translateX(-65%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.hero-lineup-btn:hover {
    transform: translateY(-3px) scale(1.025);
    filter: brightness(1.08);
    box-shadow:
        0 0 24px rgba(46, 151, 255, 0.8),
        0 0 60px rgba(42, 81, 255, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero-lineup-btn:hover::before {
    transform: translateX(55%);
}

.hero-lineup-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.hero-lineup-arrow {
    font-size: 1.15em;
    line-height: 1;
}

/* =========================================================
   6. SECCION INFO
   ========================================================= */
#info {
    position: relative;
    background: transparent;
    padding: 60px 40px;
}

.info-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.info-text-block {
    max-width: 550px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}

.info-logo {
    width: 240px;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.description {
    margin-bottom: 30px;
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.info-date {
    font-size: 1.4rem;
    font-weight: 800;
}
.info-segu {
    font-size: 1rem;
    font-weight: 600;
}

.info-titans-wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(80px);
}

.titan-duo-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   7. LINE UP - ESTRUCTURA GENERAL
   ========================================================= */

#lineup,
.lineup-section {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: 100vh;

    padding: 0;

    /* Dejamos tu imagen como respaldo */
    background:
        #07000f
        url('assets/bg-lineup.png')
        center center / cover
        no-repeat;

    /*
       Quitamos el fixed porque ahora el canvas
       será el fondo animado que permanece detrás.
    */
    background-attachment: scroll;

    overflow: clip;
}


/* =========================================================
   FONDO WEBGL ANIMADO
   ========================================================= */

#lineup-lights {
    position: sticky;
    top: 0;

    display: block;

    width: 100%;
    height: 100vh;

    /* Hace que el contenido pase encima */
    margin-bottom: -100vh;

    z-index: 0;

    pointer-events: none;

    opacity: 0.9;
}


/* =========================================================
   DEGRADADO SOBRE LA ANIMACIÓN
   ========================================================= */

#lineup::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(65, 15, 150, 0.05) 0%,
            rgba(30, 4, 80, 0.20) 48%,
            rgba(6, 0, 20, 0.65) 100%
        );
}


/* =========================================================
   OCULTAR LUCES DEL HERO DENTRO DEL LINEUP
   ========================================================= */

#lineup .hero-light-trails {
    display: none;
}


/* =========================================================
   CONTENIDO DEL LINE UP
   ========================================================= */

.lineup-content,
.lineup-section .lineup-content {
    position: relative;

    z-index: 2;

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 90px 70px 110px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.section-title {
    margin-bottom: 54px;

    text-align: center;

    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* =========================================================
   8. LINE UP - GRID DE ARTISTAS
   ========================================================= */
.artists-grid,
.lineup-section .artists-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 90px;
    display: grid;
    grid-template-columns: repeat(3, 280px);
    justify-content: center;
    align-items: start;
    column-gap: 80px;
    row-gap: 80px;
}

/* =========================================================
   9. LINE UP - TARJETA DEL ARTISTA
   ========================================================= */
.artist-card-wrap {
    position: relative;
    width: 280px;
    padding-bottom: 85px;

    display: flex;
    justify-content: center;

    transition: transform 0.35s ease;

    will-change: transform, opacity;
}

.artist-card-wrap:hover {
    transform: translateY(-10px);
}

.circle,
.artist-card {
    position: relative;
    width: 270px;
    height: 280px;
    overflow: hidden;
    border:2px solid #b8edff;
    
    background:
        url('assets/Cubo.png')  no-repeat center / cover;
    box-shadow:
        0 0 8px rgba(185, 235, 255, 0.9),
        0 0 22px rgba(92, 204, 255, 0.55),
        0 0 45px rgba(116, 67, 190, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.artist-card-wrap:hover .circle {
    box-shadow:
        0 0 12px rgba(190, 240, 255, 1),
        0 0 35px rgba(70, 190, 255, 0.85),
        0 0 70px rgba(149, 71, 255, 0.55);
}

/* =========================================================
   10. LINE UP - FOTO DEL ARTISTA
   ========================================================= */
.artist-photo {
    position: absolute;
    left: 50%;
    bottom: -8%;
    width: 110%;
    height: 108%;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    z-index: 2;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.45s ease;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
    /* Suaviza el cambio */

}

.artist-card-wrap:hover .artist-photo {
    filter: grayscale(0%);
    transform: translateX(-50%) scale(1.045);
}

/* =========================================================
   11. LINE UP - LUZ / DEGRADADO INTERNO
   ========================================================= */
.artist-bg {
    position: absolute;
    width: 75%;
    height: 75%;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
}

/* =========================================================
   12. LINE UP - NOMBRE DEL ARTISTA COMO IMAGEN
   ========================================================= */

.artist-name-img {
    position: absolute;
    left: 50%;
    bottom: -10px;

    transform: translateX(-50%);

    width: 300px;
    max-width: 110%;

    height: 80px;

    object-fit: contain;
    object-position: center;

    z-index: 5;

    pointer-events: none;

    filter:
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.85))
        drop-shadow(0 8px 12px rgba(105, 47, 255, 0.55));
}

@media (max-width: 991px) {

    .artist-name-img {
        width: min(82vw, 340px);
        height: 90px;
        bottom: -5px;
    }

}


/* =========================================================
   13. PATROCINADORES
   ========================================================= */
.sponsors-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 20px;
    background: #ffffff;
    color: #000000;
    text-align: center;
}

.sponsors-title {
    margin-bottom: 20px;
    color: #000000;
    font-size: 2rem;
}

.sponsor-track {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 1.1rem;
    font-weight: 800;
}

/* =========================================================
   PATROCINADORES - LOOP INFINITO REAL
   ========================================================= */

.sponsors-wrapper {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 38px 0 45px;

    overflow: hidden;

    background: #ffffff;
    color: #000000;
}

.sponsors-title {
    margin-bottom: 30px;

    text-align: center;

    color: #000000;

    font-size: 2rem;
}


/* VENTANA */

.sponsors-carousel {
    position: relative;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    overflow: hidden;

    -webkit-mask-image:
        linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);

    mask-image:
        linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
}


/* TRACK COMPLETO */

.sponsors-track {
    display: flex;

    width: max-content;

    animation: sponsors-loop 25s linear infinite;

    will-change: transform;
}


/* CADA COPIA DEL CARRUSEL */

.sponsors-group {
    display: flex;
    align-items: center;

    gap: 90px;

    flex-shrink: 0;

    /* Importante:
       crea también la separación entre el último
       logo y el primero de la siguiente copia */
    padding-right: 90px;
}


/* LOGOS */

.sponsor-logo {
    flex-shrink: 0;

    width: auto;
    height: 65px;

    max-width: 180px;

    object-fit: contain;

    opacity: 0.92;

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

.sponsor-logo:hover {
    transform: scale(1.08);
    opacity: 1;
}


/* LOOP */

@keyframes sponsors-loop {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* PAUSA AL PASAR EL CURSOR */

.sponsors-carousel:hover .sponsors-track {
    animation-play-state: paused;
}


/* =========================================================
   14. FOOTER
   ========================================================= */
footer {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-logo {
    width: 200px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.footer-divider {
    height: 1px;
    margin-bottom: 20px;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* =========================================================
   15. BOTON FLOTANTE - VOLVER ARRIBA
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(8, 8, 24, 0.76);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffffff;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #ff2a85;
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        0 0 20px rgba(255, 42, 133, 0.6),
        0 0 44px rgba(255, 42, 133, 0.22);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   16. DESKTOP
   ========================================================= */
@media (min-width: 992px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .info-container {
        flex-direction: row;
    }

    .info-text-block {
        text-align: left;
    }
}

/* =========================================================
   17. TABLET / MOBILE
   Hero basado en la referencia vertical enviada.
   Desktop queda intacto.
   ========================================================= */
@media (max-width: 991px) {

    /* -----------------------------------------------------
       MOBILE - BASE
       ----------------------------------------------------- */
    body {
        background-attachment: scroll;
    }

    .section {
        min-height: 100svh;
    }

    /* -----------------------------------------------------
       MOBILE - NAVEGACION
       ----------------------------------------------------- */
    .side-nav {
        top: 30px;
        right: 22px;
        left: auto;
        transform: none;
        align-items: flex-end;
        gap: 16px;
        z-index: 3000;
    }

    .nav-item {
        flex-direction: row-reverse;
        gap: 10px;
        font-size: 0.88rem;
    }

    .nav-icon {
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.46);
        border: 1px solid rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .nav-icon svg {
        width: 21px;
        height: 21px;
    }

    .nav-label {
        padding: 4px 2px;
        background: transparent;
        font-size: 0.9rem;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
    }

    /* En mobile solo mostramos el texto del boton activo. */
    .nav-item:not(.active) .nav-label {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-8px);
    }

    .nav-item.active .nav-label {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* -----------------------------------------------------
       MOBILE - HERO
       Dos Titanes arriba, contenido debajo.
       ----------------------------------------------------- */
    #home {
        min-height: 100svh;
        padding: 0 14px 34px;
        background-position: center top;
        overflow: hidden;

    background-attachment: scroll;
    }

    #home .hero-container {
        width: 100%;
        max-width: none;
        min-height: 100svh;
        margin: 0 auto;
        padding-top: clamp(120px, 26vw, 190px);

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "regional pop"
            "center center";
        align-content: center;
        align-items: end;
        justify-items: center;
        column-gap: 0;
        row-gap: 4px;
    }

    #home .titan-regional-canvas {
        grid-area: regional;
        justify-self: end;
        transform: translateX(5%);
    }

    #home .titan-pop-canvas {
        grid-area: pop;
        justify-self: start;
        transform: translateX(-5%);
    }

    /* Sobrescribe el tamaño que main.js inyecta para mobile. */
    #home .hero-container > .titan-3d-container {
        width: min(48vw, 300px) !important;
        max-width: none !important;
        height: clamp(245px, 57vw, 360px) !important;
        min-width: 0;
    }

    #home .titan-3d-container canvas {
        width: 100% !important;
        height: 100% !important;
    }

    #home .hero-center {
        grid-area: center;
        width: 100%;
        min-width: 0;
        margin: -18px 0 0;
        padding: 0 4px;
        text-align: center;
        z-index: 2;
    }

    #home .main-logo {
        width: min(92vw, 590px);
        max-width: none;
        height: auto;
        margin: 0 auto;
    }

    #home .hero-date,
    #home .hero-site {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-family: 'mon', sans-serif;
        line-height: 1.05;
        letter-spacing: 0;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
        text-shadow:
            3px 3px 0 rgba(0, 0, 0, 0.92),
            0 6px 14px rgba(0, 0, 0, 0.4);
        paint-order: stroke fill;
    }

    #home .hero-date {
        margin-top: 4px;
        font-size: clamp(1.18rem, 5vw, 1.65rem);
    }

    #home .hero-site {
        margin-top: 10px;
        font-size: clamp(1.16rem, 4.8vw, 1.55rem);
    }

    #home .hero-lineup-btn {
        min-width: min(78vw, 350px);
        margin-top: 26px;
        padding: 17px 28px;
        border-radius: 999px;
        font-size: clamp(0.86rem, 3.8vw, 1rem);
        letter-spacing: 0.1em;
    }

    #home .hero-lineup-arrow {
        font-size: 1.35em;
    }

    /* -----------------------------------------------------
       MOBILE - INFO
       ----------------------------------------------------- */
    #info {
        min-height: auto;
        padding: 76px 24px 84px;
    }

    .info-container {
        flex-direction: column;
        gap: 38px;
    }

    .info-text-block {
        width: 100%;
        max-width: 540px;
        text-align: center;
    }

    .info-logo {
        width: min(62vw, 245px);
        margin-left: auto;
        margin-right: auto;
    }

    .description {
        font-size: 1rem;
        line-height: 1.65;
    }

    .info-date {
        font-size: 1.2rem;
    }

    .info-titans-wrapper {
        max-width: 420px;
    }

    .titan-duo-img {
        max-width: 390px;
    }

    /* -----------------------------------------------------
       MOBILE - LINE UP
       ----------------------------------------------------- */
#lineup,
.lineup-section {
    min-height: auto;
    padding: 0;
}

.lineup-content,
.lineup-section .lineup-content {
    width: 100%;

    padding: 78px 16px 90px;
}

    .section-title {
        margin-bottom: 46px;
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .artists-grid,
    .lineup-section .artists-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 54px;
        margin-bottom: 50px;
    }

    .artist-card-wrap {
        width: min(86vw, 330px);
        padding-bottom: 54px;
    }

    .circle,
    .artist-card {
        width: min(72vw, 285px);
        height: min(72vw, 285px);
    }

    .artist-name {
        width: min(118vw, 430px);
        bottom: 2px;
        font-size: clamp(2rem, 9vw, 2.8rem);
        -webkit-text-stroke: 1px #050505;
    }

    /* -----------------------------------------------------
       MOBILE - PATROCINADORES
       ----------------------------------------------------- */
    .sponsors-wrapper {
        padding: 34px 0 42px;
    }

    .sponsors-title {
        margin-bottom: 24px;
        font-size: 1.65rem;
    }

    .sponsors-carousel {
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                #000 12%,
                #000 88%,
                transparent 100%);
        mask-image: linear-gradient(to right,
                transparent 0%,
                #000 12%,
                #000 88%,
                transparent 100%);
    }

    .sponsors-group {
        gap: 54px;
        padding-right: 54px;
    }

    .sponsor-logo {
        height: 50px;
        max-width: 145px;
    }

    .sponsors-track {
        animation-duration: 22s;
    }

    /* -----------------------------------------------------
       MOBILE - FOOTER + BACK TO TOP
       ----------------------------------------------------- */
    footer {
        padding: 34px 20px 24px;
    }

    .footer-logo {
        width: 170px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

/* =========================================================
   18. MOBILE PEQUENO
   ========================================================= */
@media (max-width: 480px) {
    .side-nav {
        align-items: flex-end;
        margin-right: 15px;
    }

    .nav-item {
        flex-direction: row;
        justify-content: flex-end;
        width: 100%;
        gap: 10px;
    }

    .nav-label {
        order: 1;
        text-align: right;
    }

    .nav-icon {
        order: 2;
        flex-shrink: 0;
    }

    /* HERO MOBILE */
    #home {
        background:
            url('assets/bg-hero-mobile.jpg');

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }


    #home .hero-container {
        padding-top: 104px;
    }

    #home .hero-container > .titan-3d-container {
        width: 49vw !important;
        height: clamp(220px, 61vw, 300px) !important;
    }

    #home .hero-center {
        margin-top: -14px;
    }

    #home .main-logo {
        width: 94vw;
    }

    #home .hero-lineup-btn {
        min-width: 76vw;
        padding: 15px 22px;
    }


    .artist-card-wrap {
        width: 90vw;
    }

    .circle,
    .artist-card {
        width: min(76vw, 275px);
        height: min(76vw, 275px);
    }

    .artist-name {
        width: 112vw;
        font-size: clamp(1.5rem, 9.5vw, 2.5rem);
    }
    
        #lineup,
    .lineup-section {
        background:
            linear-gradient(
                rgba(16, 0, 43, 0.55),
                rgba(0, 0, 0, 0.82)
            ),
            url('assets/bg-lineup-mobile.jpg');

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    
}

/* =========================================================
   19. DESKTOP - GRID FINAL LINE UP
   ========================================================= */
@media (min-width: 992px) {


    .artists-grid {
        display: grid;
        grid-template-columns: repeat(3, 280px);
        justify-content: center;
        align-items: start;
        column-gap: 80px;
        row-gap: 80px;
        width: 100%;
        max-width: 1180px;
        margin: 0 auto 90px;
    }

    .artists-grid .artist-card-wrap:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}





