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

body,
html {
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Outfit', sans-serif;
    /* Fuente mucho más legible */
    display: flex;
    justify-content: center;
    /* Centrar el contenedor de la app en pantallas grandes */
    align-items: center;
}

/* Contenedor estricto formato móvil 9:16 */
#app {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px;
    /* Tamaño máximo para que no se deforme en escritorio */
    aspect-ratio: 9 / 16;
    max-height: calc(100vw * 16 / 9);
    background-color: #050014;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

@media (min-aspect-ratio: 9/16) {
    #app {
        height: 100vh;
        width: calc(100vh * 9 / 16);
        max-height: 100vh;
        max-width: none;
    }
}

/* Pantallas y transiciones */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
}

/* Fondo inmersivo */
.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    z-index: -2;
    animation: bgBreathe 25s infinite alternate ease-in-out;
}

.bg-screen-1 {
    background-image: url('background.png');
}

.bg-screen-2 {
    background-image: url('background2.jpg');
}

.bg-screen-3 {
    background-image: url('background3.jpg');
}

.bg-blur {
    filter: blur(8px) brightness(0.6);
}

@keyframes bgBreathe {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Luces cambiantes */
.light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(200, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
    animation: lightPulse 8s infinite alternate ease-in-out;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes lightPulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* Sistema de partículas (objetos flotantes) */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 100, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 100, 255, 0.8);
    animation: floatUp infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    15% {
        opacity: 0.7;
    }

    85% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* Posicionamiento exacto para máxima legibilidad según referencia */

/* Cabecera */
.header {
    position: absolute;
    top: 6%;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.brand {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #e0f2fe;
    opacity: 0.9;
}

/* Contenido Principal (Texto posicionado en el cielo oscuro) */
.content-container {
    position: absolute;
    top: 20%;
    /* Sube el texto para que no pise el sol brillante */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 5;
}

.screen-2-content {
    top: 40%;
}

.floating-wrapper {
    animation: floatText 5s infinite alternate ease-in-out;
}

@keyframes floatText {
    0% {
        transform: translateY(2px);
    }

    100% {
        transform: translateY(-5px);
    }
}

.main-title {
    font-size: 1.7rem;
    line-height: 1.35;
    color: #e2f1f8;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.highlight {
    color: #ff33cc;
    text-shadow: 0 0 10px rgba(255, 51, 204, 0.7);
    font-weight: 600;
    display: block;
    /* Para forzar salto de línea correcto */
    margin-top: 5px;
}

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 320px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Footer y Botón */
.footer {
    position: absolute;
    bottom: 12%;
    /* Posicionado justo encima de los bloques inferiores */
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 5;
}

.btn-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arrow {
    color: #ff33cc;
    font-size: 1.2rem;
    font-family: 'Space Mono', monospace;
    animation: pulseArrow 1.5s infinite alternate ease-in-out;
}

@keyframes pulseArrow {
    0% {
        opacity: 0.4;
        transform: translateX(3px);
    }

    100% {
        opacity: 1;
        transform: translateX(-3px);
    }
}

.neon-btn {
    background: rgba(10, 0, 20, 0.7);
    /* Más oscuro para resaltar texto */
    border: 2px solid #ff33cc;
    /* Borde más definido y brillante */
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 12px 30px;
    /* Un poco más de padding */
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 51, 204, 0.5) inset, 0 0 10px rgba(255, 51, 204, 0.6);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    letter-spacing: 0.5px;
}

.neon-btn:hover,
.neon-btn:active {
    background: rgba(255, 51, 204, 0.25);
    box-shadow: 0 0 12px rgba(255, 51, 204, 0.7) inset, 0 0 20px rgba(255, 51, 204, 0.7);
    transform: scale(1.05);
}

.footer-screen2 {
    margin-top: 40px;
}

/* Ajustes de Layout para Pantalla 3 */
.screen-3-content {
    top: 13.5%;
    /* Baja el texto para alinearse con la luna */
}

.text-cyan {
    color: #a0d8f1;
    margin-bottom: 25px;
    transform: translate(30px, 20px);
}

.retro-font {
    font-family: 'VT323', monospace;
    font-size: 1.7rem;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

h2.highlight-spaced.retro-font {
    font-size: 2.2rem;
    margin-bottom: 25px;
    line-height: 1.15;
    transform: translate(30px, 20px);
}

.subtitle-spaced {
    margin-top: 0px;
    font-size: 0.85rem;
    line-height: 1.6;
    transform: translate(30px, 20px);
}

/* Botón cuadrado para la flecha de regreso */
.sq-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Dual Footer Pantalla 2 */
.dual-footer {
    display: flex;
    justify-content: space-between;
    width: 85%;
    margin: 0 auto;
    padding: 0 10px;
}

.icon-btn {
    padding: 10px 18px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.text-btn {
    padding: 10px 24px;
    display: flex;
    align-items: center;
}

/* Chat Bubbles (Decorativas en Pantalla 2) */
.chat-bubbles-container {
    position: absolute;
    top: 10%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.chat-bubble {
    position: absolute;
    border: 1.5px solid #6b93d6;
    border-radius: 10px;
    padding: 6px 12px;
    color: #6b93d6;
    box-shadow: 0 0 10px rgba(107, 147, 214, 0.4);
    animation: floatBubble 4s infinite alternate ease-in-out;
    background: rgba(10, 20, 40, 0.4);
    backdrop-filter: blur(2px);
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6b93d6;
}

.bubble-left {
    top: 12%;
    left: 20%;
    animation-delay: 0s;
}

.bubble-left::after {
    left: 10px;
}

.bubble-right {
    top: 20%;
    right: 20%;
    border-color: #ff33cc;
    color: #ff33cc;
    box-shadow: 0 0 10px rgba(255, 51, 204, 0.4);
    animation-delay: 1s;
}

.bubble-right::after {
    right: 10px;
    border-top-color: #ff33cc;
}

.dots {
    font-size: 1.2rem;
    line-height: 0.5;
    letter-spacing: 2px;
    font-family: 'Space Mono', monospace;
}

@keyframes floatBubble {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-8px) scale(1.05); }
}

/* Layout Pantalla 4 */
.bg-screen-4 {
    background-image: url('background4.jpg');
}

.s4-header {
    top: 15%;
}

.screen-4-content {
    top: 25%;
    width: 100%;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 30px; /* espaciado vertical entre los dos bloques */
    width: 100%;
    align-items: center;
}

.option-container {
    position: relative;
    width: 85%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-window {
    position: absolute;
    bottom: 110%; /* Aparece por encima del botón */
    width: 100%;
    background: rgba(10, 15, 30, 0.85);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #e2f1f8;
    text-align: left;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.popup-window.show-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.popup-window::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-width: 8px 8px 0;
    border-style: solid;
    display: block;
    width: 0;
}

.popup-cyan {
    border: 1.5px solid #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.popup-cyan::after {
    border-color: #00e5ff transparent transparent transparent;
}

.popup-magenta {
    border: 1.5px solid #ff33cc;
    box-shadow: 0 0 10px rgba(255, 51, 204, 0.3);
}

.popup-magenta::after {
    border-color: #ff33cc transparent transparent transparent;
}

.interactive-btn {
    width: 100%;
    background: rgba(10, 15, 30, 0.7);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    backdrop-filter: blur(6px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.interactive-btn:active {
    transform: scale(0.95);
}

.btn-cyan {
    border: 1.5px solid #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4) inset, 0 0 15px rgba(0, 229, 255, 0.4);
    text-shadow: 0 0 5px #00e5ff;
}

.btn-magenta {
    border: 1.5px solid #ff33cc;
    box-shadow: 0 0 15px rgba(255, 51, 204, 0.4) inset, 0 0 15px rgba(255, 51, 204, 0.4);
    text-shadow: 0 0 5px #ff33cc;
}

.icon {
    font-size: 1.5rem;
}

.helper-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: center;
}

.helper-cyan {
    color: #00e5ff;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.8);
}

.helper-magenta {
    color: #ff33cc;
    text-shadow: 0 0 5px rgba(255, 51, 204, 0.8);
}

/* Layout Pantalla 5 */
.bg-screen-5 {
    background-image: url('background5.jpg');
}

.s5-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important; /* Quitar márgenes para no afectar flujo */
}

.divider-line {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.info-box {
    border: 1.5px solid;
    padding: 10px;
    border-radius: 8px;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(5px);
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #e2f1f8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 110px;
}

.concept-box {
    width: 85%;
    border: 1.5px solid #ff33cc;
    border-radius: 10px;
    padding: 15px;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(8px);
    font-family: 'Outfit', sans-serif;
    color: white;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 51, 204, 0.3) inset, 0 0 10px rgba(255, 51, 204, 0.5);
}

/* Layout Pantalla 6 */
.bg-screen-6 {
    background-image: url('background6.jpg');
}

.s6-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.bracket-box {
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) inset;
}

/* Layout Pantalla 7 */
.bg-screen-7 {
    background-image: url('background7.png');
}

.s7-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s7-box {
    border: 1.5px solid #b400ff;
    border-radius: 8px;
    padding: 10px;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(4px);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #e2f1f8;
    text-align: center;
    box-shadow: 0 0 10px rgba(180, 0, 255, 0.3) inset;
}

.s7-arrow {
    color: #ff33cc;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px #ff33cc;
}

/* Layout Pantalla 8 */
.bg-screen-8 {
    background-image: url('background8.jpg');
}

.s8-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s8-footer {
    position: absolute;
    bottom: 5%;
    width: 100%;
}

/* Layout Pantalla Misteriosa */
.bg-screen-misteriosa {
    background-image: url('background-misteriosa.jpg');
}

.sm-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 9 */
.bg-screen-9 {
    background-image: url('background9.jpg');
}

.s9-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 10 */
.bg-screen-10 {
    background-image: url('background10.jpg');
}

.s10-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 11 */
.bg-screen-11 {
    background-image: url('background11.jpg');
}

.s11-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 12 */
.bg-screen-12 {
    background-image: url('background12.jpg');
}

.s12-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 13 */
.bg-screen-13 {
    background-image: url('background13.jpg');
}

.s13-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s13-hud {
    border-left: 2px solid #b400ff;
    border-bottom: 2px solid #b400ff;
    padding: 20px 15px;
    background: rgba(10, 15, 30, 0.5);
    backdrop-filter: blur(4px);
    box-shadow: -5px 5px 15px rgba(180, 0, 255, 0.2);
}

.s13-inner-box {
    border: 1px solid #00e5ff;
    border-radius: 6px;
    padding: 12px;
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2) inset;
    text-align: left;
}

/* Layout Pantalla 14 */
.bg-screen-14 {
    background-image: url('background14.jpg');
}

.s14-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 15 */
.bg-screen-15 {
    background-image: url('background15.jpg');
}

.s15-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 16 */
.bg-screen-16 {
    background-image: url('background16.png');
}

.s16-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 17 */
.bg-screen-17 {
    background-image: url('background17.jpg');
}

.s17-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

/* Layout Pantalla 18 */
.bg-screen-18 {
    background-image: url('background18.jpg');
}

.s18-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s18-hud-box {
    border: 1px solid rgba(0, 229, 255, 0.4);
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1) inset;
    text-align: left;
    position: relative;
}
.s18-hud-box::before, .s18-hud-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid #ff33cc;
}
.s18-hud-box::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}
.s18-hud-box::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}
/* Layout Pantalla 19 */
.bg-screen-19 {
    background-image: url('background19.jpg');
}

.s19-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s19-hud-box {
    border: 2px solid rgba(0, 150, 255, 0.6);
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.2) inset;
    text-align: left;
    position: relative;
}

.s19-line-box {
    border-left: 2px solid #ff33cc;
    padding-left: 15px;
    text-align: left;
    position: relative;
}
.s19-line-box::before {
    content: '♦';
    color: #ff33cc;
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Layout Pantalla 20 */
.bg-screen-20 {
    background-image: url('background20.jpg');
}

.s20-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s20-hud-box {
    border: 1.5px solid rgba(0, 150, 255, 0.6);
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    padding: 15px;
    padding-left: 55px; /* space for icon */
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.2) inset;
    text-align: left;
    position: relative;
}
.s20-hud-box::before {
    content: '📖';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    filter: hue-rotate(270deg) brightness(200%); /* Make it pinkish/cyan */
}
.s20-hud-box::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(0, 150, 255, 0.8);
    border-left: 2px solid rgba(0, 150, 255, 0.8);
    top: -2px; left: -2px;
    border-radius: 2px 0 0 0;
}
.s20-hud-box-br {
    position: absolute;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid rgba(0, 150, 255, 0.8);
    border-right: 2px solid rgba(0, 150, 255, 0.8);
    bottom: -2px; right: -2px;
    border-radius: 0 0 2px 0;
}

.s20-line-box {
    border-left: 3px solid #ff33cc;
    padding-left: 15px;
    text-align: left;
    position: relative;
}

/* Layout Pantalla 21 */
.bg-screen-21 {
    background-image: url('background21.jpg');
}

.s21-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.red-neon-btn {
    background: rgba(10, 0, 0, 0.7);
    border: 2px solid #ff003c;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 12px 30px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 0, 60, 0.5) inset, 0 0 10px rgba(255, 0, 60, 0.6);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    letter-spacing: 0.5px;
}
.red-neon-btn:hover {
    background: rgba(255, 0, 60, 0.2);
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.8) inset, 0 0 20px rgba(255, 0, 60, 0.9);
}

/* Layout Pantalla 22 */
.bg-screen-22 {
    background-image: url('background22.jpg');
}

.s22-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s22-hud-box {
    border: 1px solid rgba(255, 0, 60, 0.6);
    background: rgba(10, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3) inset, 0 0 10px rgba(255, 0, 60, 0.4);
    text-align: left;
    position: relative;
}
.s22-hud-box-tl::before {
    content: '✦';
    position: absolute;
    top: 5px;
    left: 10px;
    color: #ff003c;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ff003c;
}
.s22-hud-box-tr::before {
    content: '✦';
    position: absolute;
    top: 5px;
    right: 10px;
    color: #ff003c;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ff003c;
}

/* Layout Pantalla 23 */
.bg-screen-23 {
    background-image: url('background23.jpg');
}

.s23-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s23-hud-main {
    border: 2px solid rgba(255, 0, 60, 0.7);
    background: rgba(20, 0, 5, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4) inset;
    text-align: center;
    position: relative;
}

.s23-list-item {
    border: 1.5px solid rgba(255, 0, 60, 0.5);
    background: rgba(10, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.2) inset;
    justify-content: flex-start;
}

/* Conector vertical principal - solo visible entre cajas contiguas de la lista, pero usaremos divs en HTML para ser exactos */

/* Decoraciones en los items */
.s23-list-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff003c;
    box-shadow: 0 0 5px #ff003c;
    transform: translateY(-50%);
}
.s23-list-item-right::before {
    left: auto;
    right: -4px;
}

.s23-icon {
    font-size: 1.8rem;
    filter: sepia(1) hue-rotate(300deg) saturate(10) brightness(1.2);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
    opacity: 0.9;
    flex-shrink: 0;
}

/* Layout Pantalla 24 */
.bg-screen-24 {
    background-image: url('background24.jpg');
}

.s24-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s24-main-box {
    border: 2px solid rgba(255, 0, 60, 0.6);
    background: rgba(15, 0, 5, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.3) inset, 0 0 10px rgba(255, 0, 60, 0.3);
    text-align: left;
    position: relative;
}

.s24-main-box::before {
    content: '✦';
    position: absolute;
    top: 5px;
    left: 10px;
    color: #ff003c;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ff003c;
}

.s24-main-box::after {
    content: '---';
    position: absolute;
    top: 5px;
    right: 15px;
    color: #ff003c;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff003c;
}

.s24-list-item {
    border: 1px solid rgba(255, 0, 60, 0.4);
    background: rgba(10, 0, 5, 0.5);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.s24-star {
    color: #ff003c;
    font-size: 1.2rem;
    text-shadow: 0 0 8px #ff003c;
    flex-shrink: 0;
}

/* Layout Pantalla 25 */
.bg-screen-25 {
    background-image: url('background25.jpg');
}

.s25-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s25-capsule {
    border: 2px solid rgba(255, 0, 60, 0.7);
    background: rgba(15, 0, 5, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3) inset, 0 0 10px rgba(255, 0, 60, 0.4);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Esquinas decorativas de las cápsulas */
.s25-capsule::before {
    content: '...';
    position: absolute;
    top: 5px;
    right: 15px;
    color: #ff003c;
    font-size: 1.2rem;
    line-height: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff003c;
}

.s25-text-box {
    flex: 1;
}

.s25-title {
    font-family: 'Outfit', sans-serif;
    color: #ff33cc;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(255, 51, 204, 0.5);
}

.s25-text {
    font-family: 'Outfit', sans-serif;
    color: #e2f1f8;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

.s25-icon {
    font-size: 2.2rem;
    filter: sepia(1) hue-rotate(300deg) saturate(10) brightness(1.2);
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.9);
    flex-shrink: 0;
}
/* Layout Pantalla 26 */
.bg-screen-26 {
    background-image: url('background26.png');
}

.s26-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s26-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s26-panel {
    border: 1.5px solid rgba(255, 0, 60, 0.6);
    background: rgba(10, 0, 5, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2) inset;
    position: relative;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
}

.s26-panel-main {
    padding-top: 45px;
}

.s26-panel-main::before {
    content: '📖';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.5rem;
    filter: sepia(1) hue-rotate(300deg) saturate(10) brightness(1.2);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}

.s26-panel-main::after {
    content: '...';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ff003c;
    font-size: 1.2rem;
    line-height: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff003c;
}

.s26-panel-narrow {
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-left: 3px solid #ff003c;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.s26-panel-dots::after {
    content: '...';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #ff003c;
    font-size: 1.2rem;
    line-height: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff003c;
}

.s26-panel-star::after {
    content: '✦';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #ff003c;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #ff003c;
}

.s26-panel-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.s26-icon {
    font-size: 2rem;
    filter: sepia(1) hue-rotate(300deg) saturate(10) brightness(1.2);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
    flex-shrink: 0;
}
/* Layout Pantalla 27 */
.bg-screen-27 {
    background-image: url('background27.jpg');
}

.s27-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s27-capsule {
    border: 1.5px solid rgba(255, 0, 60, 0.7);
    background: rgba(15, 0, 5, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3) inset, 0 0 10px rgba(255, 0, 60, 0.4);
    margin-bottom: 12px;
    position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    text-align: left;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.s27-capsule-main {
    padding-top: 30px;
    padding-bottom: 25px;
    font-size: 1.3rem;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%, 0 20px);
}

.s27-capsule::after {
    content: '...';
    position: absolute;
    top: 5px;
    right: 15px;
    color: #ff003c;
    font-size: 1.2rem;
    line-height: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff003c;
}

.s27-capsule-main::before {
    content: '---';
    position: absolute;
    top: 8px;
    left: 20px;
    color: #ff003c;
    font-size: 1rem;
    line-height: 0.5;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #ff003c;
}

.s27-highlight {
    color: #ff33cc;
    text-shadow: 0 0 10px rgba(255, 51, 204, 0.6);
}

/* Layout Pantalla 28 */
.bg-screen-28 {
    background-image: url('background28.jpg');
}

.s28-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s28-panel {
    border: 1.5px solid rgba(255, 0, 60, 0.8);
    background: rgba(10, 0, 5, 0.65);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 25px 25px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3) inset, 0 0 10px rgba(255, 0, 60, 0.4);
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    text-align: left;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.s28-panel-main {
    font-size: 1.5rem;
    font-weight: 700;
    padding-top: 35px;
}

.s28-panel-sub {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 20px 25px;
}

.s28-panel-red {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff003c;
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.6);
    padding-top: 35px;
}

.s28-panel-star::before {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 25px;
    color: #ff003c;
    font-size: 1.3rem;
    text-shadow: 0 0 10px #ff003c;
}

.s28-panel-dots::after {
    content: '...';
    position: absolute;
    top: 5px;
    right: 20px;
    color: #ff003c;
    font-size: 1.2rem;
    line-height: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff003c;
}

/* Layout Pantalla 29 */
.bg-screen-29 {
    background-image: url('background29.png');
}

.s29-abs {
    position: absolute;
    z-index: 5;
    margin: 0 !important;
}

.s29-panel {
    border: 2px solid rgba(0, 255, 60, 0.8);
    background: rgba(0, 15, 5, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 30px 20px 20px 20px;
    box-shadow: 0 0 15px rgba(0, 255, 60, 0.3) inset, 0 0 10px rgba(0, 255, 60, 0.4);
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    text-align: center;
    color: #00ff3c;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 255, 60, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.s29-icon-img {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 60, 0.8));
}

.s29-panel::before {
    content: '✦';
    position: absolute;
    top: 15px;
    left: 20px;
    color: #00ff3c;
    font-size: 1.3rem;
    text-shadow: 0 0 10px #00ff3c;
}

.s29-panel-dots::after {
    content: '...';
    position: absolute;
    top: 10px;
    right: 20px;
    color: #00ff3c;
    font-size: 1.2rem;
    line-height: 0.5;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff3c;
}

.s29-panel-corner::after {
    content: '⌝';
    position: absolute;
    top: 15px;
    right: 20px;
    color: #00ff3c;
    font-size: 1.5rem;
    line-height: 0.5;
    text-shadow: 0 0 10px #00ff3c;
}

.green-neon-btn {
    background: transparent;
    color: #00ff3c;
    border: 2px solid #00ff3c;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 60, 0.4), inset 0 0 10px rgba(0, 255, 60, 0.2);
    text-shadow: 0 0 8px rgba(0, 255, 60, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.green-neon-btn:hover {
    background: rgba(0, 255, 60, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 60, 0.6), inset 0 0 15px rgba(0, 255, 60, 0.3);
}

.green-neon-btn:active {
    background: rgba(0, 255, 60, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 60, 0.8), inset 0 0 20px rgba(0, 255, 60, 0.5);
}
/* =========================================
   SISTEMA DE EDICIÓN VISUAL
   ========================================= */
#editor-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Deja pasar los clics hacia la app */
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.editor-panel {
    position: absolute;
    top: 50px;
    width: 260px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid #333;
    color: white;
    padding: 25px;
    border-radius: 12px;
    pointer-events: auto; /* Atrapa los clics del usuario */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

#editor-left {
    left: 30px;
}

#editor-right {
    right: 30px;
}

.editor-panel label {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.editor-panel input[type="color"] {
    width: 100%;
    height: 35px;
    border: none;
    background: none;
    margin-top: 5px;
    cursor: pointer;
}

.editor-panel input[type="range"] {
    width: 100%;
    margin-top: 10px;
}

.editor-panel select {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    background: #1a1a24;
    border: 1px solid #444;
    color: white;
    border-radius: 6px;
    font-family: inherit;
}

.ed-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

.ed-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Estado de los elementos editables */
[data-editable="true"] {
    cursor: grab;
    transition: outline 0.1s;
}

[data-editable="true"]:active {
    cursor: grabbing;
}

[data-editable="true"].ed-selected {
    outline: 2px dashed #00e5ff !important;
    outline-offset: 6px;
    z-index: 100;
}