:root {
    --bg: #000000;
    --text: #ffffff;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.demo-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* --- CONTENEDOR ACUARIO --- */
.aquarium-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.aquarium-view {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 1313 / 775;
}

.aquarium-svg {
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10;
    position: relative;
}

/* --- CAPA DE SIMULACIÓN --- */
.simulation-layer {
    position: absolute;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}



/* BARRAS LED (en la lámpara) */
.led-bars {
    position: absolute;
    top: 16.6%;
    left: 7.8%;
    width: 84.3%;
    height: 1.7%;
    z-index: 100;
}

.led-bar {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: transparent;
    transition: all 0.3s ease;
    mix-blend-mode: screen;
}

#led-0 { width: 80%; left: 10%; }
#led-1 { width: 60%; right: 0; }
#led-2 { width: 60%; left: 0; }
#led-3 { width: 100%; left: 0; }
#led-4 { width: 100%; left: 0; }

/* HACES TRAPEZOIDALES */
.trapezoid-beams {
    position: absolute;
    top: 18.3%;
    left: 0;
    width: 100%;
    height: 79.3%;
    z-index: 50;
}

.t-beam {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--beam-color) 0%, transparent 95%);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.5s ease;
    filter: blur(1px);
}

/* GEOMETRÍA CLIPPING */
#t-beam-0 { clip-path: polygon(16.2% 0%, 83.7% 0%, 95% 100%, 5% 100%); }
#t-beam-1 { clip-path: polygon(41.5% 0%, 92.1% 0%, 100% 100%, 30% 100%); }
#t-beam-2 { clip-path: polygon(7.8% 0%, 58.4% 0%, 68% 100%, 0% 100%); }
#t-beam-3 { clip-path: polygon(7.8% 0%, 92.1% 0%, 100% 100%, 0% 100%); }
#t-beam-4 { clip-path: polygon(7.8% 0%, 92.1% 0%, 100% 100%, 0% 100%); }

/* --- MOCKUP DERECHA --- */
.mockup-container {
    width: 320px;
    height: 640px;
    flex-shrink: 0;
    z-index: 200;
}

.smartphone-mockup {
    width: 100%;
    height: 100%;
    background: #000000;
    border: 10px solid #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app-iframe {
    width: 375px;
    height: 700px;
    flex-shrink: 0;
    border: none;
    transform: scale(0.8);
}

@media (max-width: 1100px) {
    .demo-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem 0 4rem 0;
        gap: 0;
        margin-top: 0;
    }
    .aquarium-view {
        width: 95%;
        max-width: 400px;
        margin: 0 auto;
        z-index: 1;
    }
    .mockup-container {
        width: 250px;
        height: 480px;
        margin-top: -70px;
        z-index: 10;
        position: relative;
    }
    #app-iframe {
        transform: scale(0.6133);
    }
}
