:root {
            /* Paleta Multiverso */
            --bg-black: #050505;
            --spidey-red: #FF003C;
            --spidey-blue: #04D9FF; /* Cian Eléctrico */
            --miles-black: #111111;
            --gwen-pink: #E056FD;
            --glitch-green: #00FF00;
        }

        body {
            background-color: var(--bg-black);
            font-family: 'Roboto', sans-serif;
            overflow-x: hidden;
            color: #fff;
            margin: 0;
            padding: 0;
            /* Textura de Puntos de Cómic (Ben-Day Dots) */
            background-image: radial-gradient(#222 15%, transparent 16%), radial-gradient(#222 15%, transparent 16%);
            background-size: 20px 20px;
            background-position: 0 0, 10px 10px;
        }

        /* --- TIPOGRAFÍA GLITCH --- */
        .font-comic { font-family: 'Bangers', cursive; }
        .font-graffiti { font-family: 'Permanent Marker', cursive; }

        .glitch-text {
            position: relative;
            color: white;
            text-shadow: 3px 3px 0px var(--spidey-blue), -3px -3px 0px var(--spidey-red);
            animation: glitch-skew 3s infinite linear alternate-reverse;
        }

        @keyframes glitch-skew {
            0% { transform: skew(0deg); text-shadow: 3px 3px 0px var(--spidey-blue), -3px -3px 0px var(--spidey-red); }
            20% { transform: skew(-2deg); text-shadow: -3px 3px 0px var(--spidey-red), 3px -3px 0px var(--spidey-blue); }
            40% { transform: skew(0deg); }
            42% { transform: skew(5deg); opacity: 0.9; }
            44% { transform: skew(0deg); opacity: 1; }
            100% { transform: skew(0deg); }
        }

        /* --- ESTILOS PARA LIGHTBOX Y ROTACIÓN INTELIGENTE --- */
        .rotate-mobile {
            transform: rotate(90deg);
            /* REGLA PREMIUM: Dimensiones absolutas para evitar bordes negros */
            width: 100vh !important; 
            height: 100vw !important;
            max-width: 100vh !important;
            max-height: 100vw !important;
            object-fit: contain;
        }
        .pointer-events-auto { pointer-events: auto; }
        
        /* Modificado para fondo solido solicitado */
        #lightbox-modal { 
            transition: opacity 0.3s ease-in-out, visibility 0.3s; 
            background-color: #000 !important; /* Fondo Negro Puro */
        }

        /* --- GHOST DOT (GUÍA VISUAL) --- */
        #swipe-hint {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 70;
            pointer-events: none;
            /* Contenedor semitransparente para contraste */
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            padding: 20px 30px;
            border-radius: 20px;
            border: 1px solid var(--spidey-blue);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0; /* JS controla esto */
            transition: opacity 0.5s ease;
        }

        .hand-dot {
            width: 20px;
            height: 20px;
            background-color: white;
            border-radius: 50%;
            box-shadow: 0 0 15px var(--spidey-blue), 0 0 5px white;
            margin-bottom: 10px;
            animation: swipe-gesture 3s infinite ease-in-out;
        }

        @keyframes swipe-gesture {
            0% { transform: translate(0, 0); opacity: 0; }
            10% { opacity: 1; }
            30% { transform: translate(-40px, 0); opacity: 1; } /* Izquierda */
            50% { transform: translate(40px, 0); opacity: 1; } /* Derecha */
            70% { transform: translate(0, -40px); opacity: 1; } /* Arriba */
            90% { transform: translate(0, 40px); opacity: 0; } /* Abajo */
            100% { transform: translate(0, 0); opacity: 0; }
        }

        /* Ocultar flechas en móvil para UX limpia */
        @media (max-width: 768px) {
            .mobile-hide-arrows { display: none !important; }
        }

        /* --- PANTALLA DE INTRODUCCIÓN (SENTIDO ARÁCNIDO) --- */
        #intro-screen {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: #000;
            z-index: 100;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.8s ease-in-out, visibility 0.8s;
            overflow: hidden;
        }

        /* Efecto de Sentido Arácnido (Ondas) */
        .spider-sense-btn {
            position: relative;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: radial-gradient(circle, #2a2a2a, #000000);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            border: 4px solid white;
            box-shadow: 0 0 25px rgba(255, 0, 60, 0.8);
        }

        .sense-wave {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            border: 2px solid var(--spidey-blue);
            width: 100%; height: 100%;
            animation: senseRipple 2s infinite linear;
            z-index: -1;
        }
        .sense-wave:nth-child(1) { animation-delay: 0s; border-color: var(--spidey-red); }
        .sense-wave:nth-child(2) { animation-delay: 0.5s; border-color: var(--spidey-blue); }
        .sense-wave:nth-child(3) { animation-delay: 1s; border-color: var(--gwen-pink); }

        @keyframes senseRipple {
            0% { width: 100px; height: 100px; opacity: 1; border-width: 4px; }
            100% { width: 400px; height: 400px; opacity: 0; border-width: 0px; }
        }

        .spider-icon-img {
            width: 180%;  
            height: 180%;
            object-fit: contain;
            z-index: 20;
            filter: drop-shadow(0px 0px 5px rgba(255,255,255,0.9)); 
            animation: pulse-logo 2s infinite ease-in-out;
        }

        @keyframes pulse-logo {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); } 
            100% { transform: scale(1); }
        }

        .portal-active { animation: portalExplode 0.8s forwards cubic-bezier(0.1, 0.7, 1.0, 0.1); }

        @keyframes portalExplode {
            0% { transform: scale(1) rotate(0deg); filter: hue-rotate(0deg); }
            50% { transform: scale(0.5) rotate(180deg); filter: hue-rotate(180deg) invert(1); }
            100% { transform: scale(20); opacity: 0; }
        }

        .intro-text {
            margin-top: 60px;
            font-family: 'Permanent Marker', cursive;
            color: var(--spidey-blue);
            font-size: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            animation: glitch-text-anim 2s infinite;
            text-align: center;
            width: 100%;
            padding: 0 20px;
            box-sizing: border-box;
            line-height: 1.2;
        }

        /* --- CONTENIDO PRINCIPAL --- */
        .main-content-hidden { opacity: 0; pointer-events: none; transition: opacity 1.5s ease-in; }
        .reveal-content { opacity: 1; pointer-events: auto; }

        /* Fondo de Telaraña */
        .web-bg {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50 L0 0 M50 50 L100 0 M50 50 L100 100 M50 50 L0 100 M50 50 L50 0 M50 50 L100 50 M50 50 L50 100 M50 50 L0 50' stroke='%23333' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='10' stroke='%23333' fill='none'/%3E%3Ccircle cx='50' cy='50' r='20' stroke='%23333' fill='none'/%3E%3Ccircle cx='50' cy='50' r='30' stroke='%23333' fill='none'/%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23333' fill='none'/%3E%3C/svg%3E");
            background-size: 300px 300px;
            background-position: center;
            opacity: 0.2;
            z-index: -1;
            pointer-events: none;
        }

        .comic-float {
            position: absolute;
            font-family: 'Bangers', cursive;
            padding: 5px 10px;
            background: #fff;
            color: #000;
            border: 3px solid #000;
            box-shadow: 5px 5px 0px rgba(0,0,0,0.5);
            font-size: 1.2rem;
            pointer-events: none;
            z-index: 1;
        }

        /* --- FOTOS --- */
        .photo-frame {
            border: 4px solid #fff;
            box-shadow: 
                0 0 0 4px #000,
                8px 8px 0px var(--spidey-red),
                -8px -8px 0px var(--spidey-blue);
            position: relative;
            overflow: hidden;
            background: #000;
            transform: rotate(-2deg);
        }

        /* --- BOTONES ESTILO SPIDEY --- */
        .btn-spidey-primary {
            background: linear-gradient(135deg, var(--spidey-red) 0%, #990000 100%);
            border: 3px solid #000;
            color: #fff;
            text-transform: uppercase;
            font-family: 'Bangers', cursive;
            letter-spacing: 2px;
            position: relative;
            box-shadow: 4px 4px 0px var(--spidey-blue);
            transition: all 0.2s ease;
        }
        .btn-spidey-primary:hover {
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px var(--spidey-blue);
            background: linear-gradient(135deg, var(--spidey-blue) 0%, #0099cc 100%);
        }
        .btn-spidey-primary:active {
            transform: translate(2px, 2px);
            box-shadow: 0px 0px 0px var(--spidey-blue);
        }

        .countdown-box {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid var(--spidey-blue);
            color: var(--spidey-blue);
            padding: 10px;
            clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
            width: 80px; height: 80px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            box-shadow: 0 0 10px var(--spidey-blue);
            position: relative;
        }
        .countdown-box span.val { color: white; text-shadow: 2px 2px 0 var(--spidey-red); }

        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: #000; }
        ::-webkit-scrollbar-thumb { background: var(--spidey-blue); border: 2px solid #000; }
        
        .card-comic {
            background-color: rgba(17, 17, 17, 0.95); 
            border: 2px solid #fff;
            box-shadow: 10px 10px 0px rgba(4, 217, 255, 0.3);
            color: #fff;
        }

        @media (min-width: 768px) {
            #swipe-hint {
            display: none !important;
        }
        }
