* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Cornered-Regular';
    src: url('../fuente/Cornered-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --fondo-espacial: #050710;
    --color-king-gizzard: #00ff00;
    --color-secundario: #eeffb5;
    --color-blanco: #ffeeee;
    --color-btn: #5b0082;
    --color-neon-blue: #00eaff;
    --fuente-principal: 'Cornered-Regular', sans-serif;
    --fuente-secundaria: "Asimovian", sans-serif;

}

body {
    background-color: var(--fondo-espacial);
    margin: 0;
    overflow: hidden;

}

body.scroll-active {
    overflow-y: auto;
    overflow-x: hidden;
}

canvas {
    display: block;

}

.btn-primario {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    color: var(--color-neon-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    font-size: 24px;
    overflow: hidden;
    transition: 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--fuente-principal);
    font-weight: bold;
}

.btn-primario:hover,
.btn-primario.active {
    color: var(--fondo-espacial);
    background: var(--color-neon-blue);
    box-shadow: 0 0 10px var(--color-neon-blue),
        0 0 40px var(--color-neon-blue),
        0 0 80px var(--color-neon-blue);
    transition-delay: 1s;
}

.btn-primario span {
    position: absolute;
    display: block;
}

.btn-primario span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent, var(--color-neon-blue));
}

.btn-primario:hover span:nth-child(1),
.btn-primario.active span:nth-child(1) {
    left: 100%;
    transition: 1s;
}

.btn-primario span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg,
            transparent, var(--color-neon-blue));
}

.btn-primario:hover span:nth-child(3),
.btn-primario.active span:nth-child(3) {
    right: 100%;
    transition: 1s;
    transition-delay: 0.5s;
}

.btn-primario span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent, var(--color-neon-blue));
}

.btn-primario:hover span:nth-child(2),
.btn-primario.active span:nth-child(2) {
    top: 100%;
    transition: 1s;
    transition-delay: 0.25s;
}

.btn-primario span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg,
            transparent, var(--color-neon-blue));
}

.btn-primario:hover span:nth-child(4),
.btn-primario.active span:nth-child(4) {
    bottom: 100%;
    transition: 1s;
    transition-delay: 0.75s;
}

#particles-js {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#horizontal {
    display: flex;
    height: 100vh;
    width: 600vw;

    position: relative;

}

.ship {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    left: -500px;

    z-index: 10;

}

.panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: relative;
    flex-shrink: 0;
    /* Evita que se encojan */
}

.panel h1 {
    position: relative;
    z-index: 10;
    font-family: var(--fuente-principal);
    text-shadow: 0 0 20px currentColor;
}

.fill {
    height: 100%;
    /* background-color: rgba(255, 255, 255, 0.1); */
    width: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}


.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: calc(100vh - 40px);
    margin: 20px;
    border: 2px solid var(--color-neon-blue);
    box-shadow: 0 0 15px var(--color-neon-blue), inset 0 0 15px var(--color-neon-blue);
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.intro-ship {
    position: absolute;
    top: -200px;
    /* Fuera de pantalla arriba */
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 120px;
    z-index: -1;
    /* Detrás del texto */
    opacity: 0;
}

.mute-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid var(--color-neon-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-neon-blue);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--color-neon-blue);
}

.mute-btn:hover {
    background: var(--color-neon-blue);
    color: var(--fondo-espacial);
    box-shadow: 0 0 20px var(--color-neon-blue);
    transform: scale(1.1);
}

.mute-btn svg {
    width: 24px;
    height: 24px;
}



.hero p {
    text-shadow:
        0 0 15px var(--fondo-espacial),
        0 0 20px var(--color-king-gizzard),
        0 0 30px var(--color-king-gizzard);

    animation-name: titileo-texto;
    animation-duration: 1.9s;
    /* La duración de cada ciclo (puedes ajustar el valor) */
    animation-iteration-count: infinite;
    /* Repetir sin parar */
    animation-timing-function: ease-in-out;
    /* Suaviza la transición */
}


@keyframes titileo-texto {
    0% {
        /* Estado 1: Sombra menos intensa */
        text-shadow:
            0 0 10px var(--fondo-espacial),
            0 0 15px var(--color-king-gizzard),
            0 0 25px var(--color-king-gizzard);
    }

    50% {
        /* Estado 2: Sombra más intensa (el máximo del "titileo") */
        text-shadow:
            0 0 20px var(--fondo-espacial),
            0 0 35px var(--color-king-gizzard),
            0 0 50px var(--color-king-gizzard);
    }

    100% {
        /* Vuelve al Estado 1 */
        text-shadow:
            0 0 10px var(--fondo-espacial),
            0 0 15px var(--color-king-gizzard),
            0 0 25px var(--color-king-gizzard);
    }
}

.king {
    font-family: var(--fuente-principal);
    color: var(--color-king-gizzard);
    font-size: 120px;
    width: 100%;
    text-transform: uppercase;
    text-align: center;
    padding: 0;

}

.lizzard {
    font-family: var(--fuente-principal);
    color: var(--color-king-gizzard);
    font-size: 60px;
    width: 100%;
    text-transform: uppercase;
    text-align: center;

}

.hero h1 {
    color: var(--color-secundario);
    font-family: var(--fuente-secundaria);
    font-size: 100px;
    margin-top: 40px;
    position: relative;
}

.hero h1::before,
.hero h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fondo-espacial);
}

.hero h1::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.hero h1::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

/* --- Filtro Cámara Vieja --- */
.old-camera-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    /* Permite hacer clic a través del filtro */
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
    /* Viñeta */
    mix-blend-mode: overlay;
}

.old-camera-overlay::before {
    /* Ruido / Grano */
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.15;
    animation: noise-animation 0.2s infinite;
}

.old-camera-overlay::after {

    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    background-size: 100% 4px;
}

@keyframes noise-animation {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }

    100% {
        transform: translate(5%, 0);
    }
}

/* Asteroides */
.asteroid {
    position: absolute;
    background: #777;
    width: 50px;
    height: 50px;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.5);
    z-index: 0;
    opacity: 0.8;
}


.panel .asteroid:nth-child(1) {
    top: 20%;
    left: 20%;
    width: 60px;
    height: 55px;
    clip-path: polygon(10% 10%, 90% 0%, 100% 80%, 80% 100%, 10% 90%);
}

.panel .asteroid:nth-child(2) {
    top: 60%;
    left: 70%;
    width: 40px;
    height: 40px;
    clip-path: polygon(20% 0%, 100% 30%, 80% 100%, 0% 80%);
    background: #666;
}

.panel .asteroid:nth-child(3) {
    top: 40%;
    left: 40%;
    width: 80px;
    height: 70px;
    clip-path: polygon(0% 20%, 80% 0%, 100% 60%, 50% 100%, 0% 80%);
    background: #888;
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(85px, 9999px, 98px, 0);
    }

    10% {
        clip: rect(45px, 9999px, 9px, 0);
    }

    15% {
        clip: rect(3px, 9999px, 63px, 0);
    }

    20% {
        clip: rect(68px, 9999px, 26px, 0);
    }

    25% {
        clip: rect(5px, 9999px, 94px, 0);
    }

    30% {
        clip: rect(93px, 9999px, 54px, 0);
    }

    35% {
        clip: rect(25px, 9999px, 13px, 0);
    }

    40% {
        clip: rect(6px, 9999px, 78px, 0);
    }

    45% {
        clip: rect(61px, 9999px, 3px, 0);
    }

    50% {
        clip: rect(32px, 9999px, 86px, 0);
    }

    55% {
        clip: rect(99px, 9999px, 35px, 0);
    }

    60% {
        clip: rect(12px, 9999px, 67px, 0);
    }

    65% {
        clip: rect(76px, 9999px, 4px, 0);
    }

    70% {
        clip: rect(54px, 9999px, 91px, 0);
    }

    75% {
        clip: rect(21px, 9999px, 49px, 0);
    }

    80% {
        clip: rect(88px, 9999px, 16px, 0);
    }

    85% {
        clip: rect(9px, 9999px, 72px, 0);
    }

    90% {
        clip: rect(43px, 9999px, 29px, 0);
    }

    95% {
        clip: rect(65px, 9999px, 81px, 0);
    }

    100% {
        clip: rect(18px, 9999px, 58px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(15px, 9999px, 6px, 0);
    }

    20% {
        clip: rect(91px, 9999px, 42px, 0);
    }

    25% {
        clip: rect(8px, 9999px, 23px, 0);
    }

    30% {
        clip: rect(36px, 9999px, 95px, 0);
    }

    35% {
        clip: rect(69px, 9999px, 51px, 0);
    }

    40% {
        clip: rect(24px, 9999px, 88px, 0);
    }

    45% {
        clip: rect(57px, 9999px, 12px, 0);
    }

    50% {
        clip: rect(83px, 9999px, 39px, 0);
    }

    55% {
        clip: rect(4px, 9999px, 66px, 0);
    }

    60% {
        clip: rect(96px, 9999px, 19px, 0);
    }

    65% {
        clip: rect(31px, 9999px, 77px, 0);
    }

    70% {
        clip: rect(62px, 9999px, 48px, 0);
    }

    75% {
        clip: rect(11px, 9999px, 92px, 0);
    }

    80% {
        clip: rect(73px, 9999px, 27px, 0);
    }

    85% {
        clip: rect(46px, 9999px, 59px, 0);
    }

    90% {
        clip: rect(89px, 9999px, 34px, 0);
    }

    95% {
        clip: rect(28px, 9999px, 61px, 0);
    }

    100% {
        clip: rect(55px, 9999px, 97px, 0);
    }
}



.btn-primario {
    margin-top: 40px;
}

/* comienzo de seccion horizontal */

.section.one {
    position: relative;
    width: 200vw;
    height: 100vh;
}


.ship-container {
    position: relative;
    width: 200vw;

    height: 100%;
}

/* Nave */
.ship {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    left: -500px;

}


.asteroid-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.asteroid-img {
    position: absolute;

}


.asteroid-img.a1 {
    width: 80px;
    top: 10%;
    left: 20%;
    z-index: 1;
}

.asteroid-img.a2 {
    width: 120px;
    top: 70%;
    left: 50%;
    z-index: 1;
}

.asteroid-img.a3 {
    width: 60px;
    top: 40%;
    left: 80%;
    z-index: 1;
}


.asteroid-img.a4 {
    width: 150px;
    top: 20%;
    left: 40%;
    z-index: 20;
    filter: blur(1px);
}

.asteroid-img.a5 {
    width: 90px;
    top: 80%;
    left: 90%;
    z-index: 1;
}

.asteroid-img.a6 {
    width: 70px;
    top: 15%;
    left: 60%;
    z-index: 0;
    opacity: 0.6;
}

.asteroid-img.a7 {
    width: 110px;
    top: 65%;
    left: 30%;
    z-index: 2;
}

.asteroid-img.a8 {
    width: 40px;
    top: 30%;
    left: 10%;
    z-index: 0;
    filter: blur(2px);
}

.asteroid-img.a9 {
    width: 130px;
    top: 50%;
    left: 85%;
    z-index: 15;

    filter: blur(1px);
}

.asteroid-img.a10 {
    width: 65px;
    top: 85%;
    left: 45%;
    z-index: 1;
}


.circle-img {
    position: absolute;
    width: 100px;

    z-index: 1;
    opacity: 0.8;
}


#spaceship-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;

}

.crawl-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 400px;
    perspective-origin: 50% 50%;
    z-index: 1;
    pointer-events: none;
}

.crawl {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 50% 100%;
    transform: rotateX(20deg);
    animation: crawl 60s linear infinite;
    animation-play-state: paused;
}

.active-animation .crawl {
    animation-play-state: running;
}

.crawl-text {
    width: 450px;
    margin: 0 auto;
    text-align: justify;
    color: #feda4a;
    font-family: var(--fuente-principal);
    font-size: 24px;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(254, 218, 74, 0.5);
}

.crawl-text h1 {
    font-size: 80px;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 8px;
    color: #feda4a;
}

.crawl-text p {
    margin-bottom: 30px;
    text-indent: 40px;
}

@keyframes crawl {
    0% {
        top: 100%;
        transform: rotateX(20deg) translateZ(0);
    }

    100% {
        top: -300%;
        transform: rotateX(20deg) translateZ(-250px);
    }
}




.warp-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    z-index: -1;
}

.star-streak {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-neon-blue), transparent);
    transform-origin: center top;
    opacity: 0;
}


.star-streak:nth-child(1) {
    transform: rotate(0deg) translateY(0);
    animation: warp-anim 1s infinite linear;
    --angle: 0deg;
}

.star-streak:nth-child(2) {
    transform: rotate(36deg) translateY(0);
    animation: warp-anim 1.2s infinite linear 0.1s;
    --angle: 36deg;
}

.star-streak:nth-child(3) {
    transform: rotate(72deg) translateY(0);
    animation: warp-anim 0.8s infinite linear 0.2s;
    --angle: 72deg;
}

.star-streak:nth-child(4) {
    transform: rotate(108deg) translateY(0);
    animation: warp-anim 1.5s infinite linear 0.3s;
    --angle: 108deg;
}

.star-streak:nth-child(5) {
    transform: rotate(144deg) translateY(0);
    animation: warp-anim 1.1s infinite linear 0.4s;
    --angle: 144deg;
}

.star-streak:nth-child(6) {
    transform: rotate(180deg) translateY(0);
    animation: warp-anim 0.9s infinite linear 0.5s;
    --angle: 180deg;
}

.star-streak:nth-child(7) {
    transform: rotate(216deg) translateY(0);
    animation: warp-anim 1.3s infinite linear 0.6s;
    --angle: 216deg;
}

.star-streak:nth-child(8) {
    transform: rotate(252deg) translateY(0);
    animation: warp-anim 1.4s infinite linear 0.7s;
    --angle: 252deg;
}

.star-streak:nth-child(9) {
    transform: rotate(288deg) translateY(0);
    animation: warp-anim 1s infinite linear 0.8s;
    --angle: 288deg;
}

.star-streak:nth-child(10) {
    transform: rotate(324deg) translateY(0);
    animation: warp-anim 1.2s infinite linear 0.9s;
    --angle: 324deg;
}

@keyframes warp-anim {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateY(0) scaleY(0);
    }

    20% {
        opacity: 1;
        transform: rotate(var(--angle)) translateY(100px) scaleY(1);
    }

    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateY(800px) scaleY(2);
    }
}

/* Glitch Effect - Screen shake when asteroids appear */
@keyframes screen-glitch {
    0% {
        transform: translate(0);
        filter: none;
    }

    20% {
        transform: translate(-5px, 5px);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(-5px, -5px);
        filter: invert(1);
    }

    60% {
        transform: translate(5px, 5px);
        filter: none;
    }

    80% {
        transform: translate(5px, -5px);
        filter: hue-rotate(-90deg);
    }

    100% {
        transform: translate(0);
        filter: none;
    }
}

.glitch-active {
    animation: screen-glitch 0.2s 3;
    overflow-x: hidden;
}

/* Secciones verticales después del scroll horizontal */
.vertical-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.vertical-section h2 {
    font-family: var(--fuente-principal);
    font-size: 80px;
    text-transform: uppercase;
    text-shadow: 0 0 20px currentColor;
    position: relative;
    z-index: 2;
    /* Ensure text is above video */
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Slight transparency to blend with background */
}

/* Custom cursor for bajo section */
.panel[data-channel="bajo"] {
    cursor: url('../img/nave.png') 16 16, auto;
}

/* Piano section background - Nave Interna Overlay */
.panel[data-channel="piano"] {
    position: relative;
    overflow: hidden;
    /* Ensure image doesn't spill out */
}

.piano-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/NAVEINTERNA-.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 100;
    /* Above everything */
    pointer-events: none;
    /* Allow clicks to pass through */
    transition: filter 0.5s ease;
    /* Smooth transition for filters if needed */
}

/* ========================================
   AUDIO CONTROL PANEL - SECCIÓN 1
   ======================================== */

.audio-control-panel {
    width: 90%;
    max-width: 1200px;
    padding: 60px 40px;
    background: rgba(5, 7, 16, 0.8);
    border: 2px solid var(--color-neon-blue);
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(0, 234, 255, 0.3),
        inset 0 0 30px rgba(0, 234, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.audio-control-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 234, 255, 0.05) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.panel-title {
    font-family: var(--fuente-principal);
    font-size: 60px;
    color: var(--color-neon-blue);
    text-align: center;
    margin-bottom: 10px;
    text-shadow:
        0 0 10px var(--color-neon-blue),
        0 0 20px var(--color-neon-blue),
        0 0 30px var(--color-neon-blue);
    letter-spacing: 5px;
    position: relative;
    z-index: 1;
}

.panel-subtitle {
    font-family: var(--fuente-secundaria);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.audio-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.audio-channel-control {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 234, 255, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-channel-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-channel-control:hover {
    border-color: var(--color-neon-blue);
    box-shadow:
        0 0 20px rgba(0, 234, 255, 0.3),
        inset 0 0 20px rgba(0, 234, 255, 0.1);
    transform: translateY(-5px);
}

.audio-channel-control:hover::before {
    opacity: 1;
}

.channel-icon {
    width: 80px;
    height: 80px;
    color: var(--color-neon-blue);
    filter: drop-shadow(0 0 10px var(--color-neon-blue));
    transition: all 0.3s ease;
}

.audio-channel-control:hover .channel-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--color-neon-blue));
}

.channel-icon svg {
    width: 100%;
    height: 100%;
}

.channel-name {
    font-family: var(--fuente-principal);
    font-size: 24px;
    color: var(--color-neon-blue);
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--color-neon-blue);
}

.channel-toggle {
    width: 120px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 234, 255, 0.5);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fuente-principal);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.channel-toggle:hover {
    border-color: var(--color-neon-blue);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
}

.toggle-indicator {
    position: absolute;
    left: 5px;
    width: 40px;
    height: 40px;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.channel-toggle.active .toggle-indicator {
    left: calc(100% - 45px);
    background: var(--color-neon-blue);
    box-shadow:
        0 0 20px var(--color-neon-blue),
        0 0 30px var(--color-neon-blue);
}

.channel-toggle.active {
    background: rgba(0, 234, 255, 0.1);
    border-color: var(--color-neon-blue);
    color: var(--color-neon-blue);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
}

.toggle-text {
    position: relative;
    z-index: 1;
    font-weight: bold;
    letter-spacing: 2px;
}

.channel-visualizer {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 50px;
    justify-content: center;
    width: 100%;
}

.vis-bar {
    width: 8px;
    background: linear-gradient(to top, var(--color-neon-blue), rgba(0, 234, 255, 0.3));
    border-radius: 4px;
    height: 10%;
    transition: height 0.1s ease;
    box-shadow: 0 0 5px var(--color-neon-blue);
}

.audio-channel-control .channel-toggle.active~.channel-visualizer .vis-bar {
    animation: visualizer-bounce 0.6s ease-in-out infinite;
}

.audio-channel-control .channel-toggle.active~.channel-visualizer .vis-bar:nth-child(1) {
    animation-delay: 0s;
}

.audio-channel-control .channel-toggle.active~.channel-visualizer .vis-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.audio-channel-control .channel-toggle.active~.channel-visualizer .vis-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.audio-channel-control .channel-toggle.active~.channel-visualizer .vis-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.audio-channel-control .channel-toggle.active~.channel-visualizer .vis-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes visualizer-bounce {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 80%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-control-panel {
        padding: 40px 20px;
    }

    .panel-title {
        font-size: 40px;
    }

    .panel-subtitle {
        font-size: 14px;
    }

    .audio-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .channel-icon {
        width: 60px;
        height: 60px;
    }

    .channel-name {
        font-size: 20px;
    }
}

/* ========================================
   BAJO PLANET CANVAS
   ======================================== */

#bajo-planet-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.panel[data-channel="bajo"] h1 {
    position: relative;
    z-index: 10;
}

/* ========================================
   ORIENTATION WARNING
   ======================================== */

#orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--fondo-espacial);
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#orientation-warning svg {
    width: 100px;
    height: 100px;
    fill: var(--color-neon-blue);
    margin-bottom: 20px;
    animation: rotate-phone 2s infinite ease-in-out;
}

#orientation-warning p {
    font-family: var(--fuente-principal);
    color: var(--color-neon-blue);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes rotate-phone {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Show warning only on portrait devices smaller than 900px */
@media (max-width: 900px) and (orientation: portrait) {
    #orientation-warning {
        display: flex;
    }

    /* Hide main content to prevent scrolling/interaction behind warning */
    body>*:not(#orientation-warning) {
        display: none !important;
    }
}

#orientation-warning .subtitle {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.8;
    text-align: center;
    max-width: 80%;
}

/* Show warning on all mobile/tablet devices */
@media (max-width: 900px) {
    #orientation-warning {
        display: flex;
    }

    /* Hide main content to prevent scrolling/interaction behind warning */
    body>*:not(#orientation-warning) {
        display: none !important;
    }
}