/* --- PALETA DE COLORES (ROYAL LILAC & GOLD) --- */
        :root {
            --bg-base: #faf5ff; 
            --text-primary: #581c87; 
            --gold-accent: #d4af37; 
            --soft-purple: #d8b4fe; 
            --glass-bg: rgba(255, 255, 255, 0.9);
        }

        body {
            background-color: var(--bg-base);
            font-family: 'Cormorant Garamond', serif;
            overflow-x: hidden;
            color: var(--text-primary);
            margin: 0;
            padding: 0;
            cursor: default;
            -webkit-user-select: none;
            user-select: none;
        }

        h1, .script-font { font-family: 'Great Vibes', cursive; }
        h2, h3, .royal-font { font-family: 'Cinzel', serif; }
        .subtitle-font {
            font-family: 'Montserrat', sans-serif;
            letter-spacing: 0.2em;
            text-transform: uppercase;
        }

        /* --- ESTILOS PARA LIGHTBOX Y ROTACIÓN INTELIGENTE --- */
        /* --- CORRECCIÓN DE ROTACIÓN --- */
        .rotate-mobile {
            /* 1. Sacar del flujo normal y centrar en la pantalla */
            position: absolute !important;
            top: 50% !important;
            left: 50% !important;
            
            /* 2. Definir dimensiones invertidas (Ancho = Alto de pantalla) */
            width: 100vh !important;
            height: 100vw !important;
            
            /* 3. CRUCIAL: Eliminar límites de Tailwind que "aplastan" la imagen */
            max-width: none !important;
            max-height: none !important;
            min-width: 0 !important;
            min-height: 0 !important;
            
            /* 4. Centrar y Rotar */
            transform: translate(-50%, -50%) rotate(90deg) !important;
            
            /* 5. Ajuste visual */
            object-fit: contain !important;
            z-index: 50;
        }

        .pointer-events-auto { pointer-events: auto; }
        
        #lightbox-modal {
            transition: opacity 0.3s ease-in-out, visibility 0.3s;
            touch-action: none; 
        }

        /* --- ANIMACIÓN SWIPE VISUAL (SLIDE) --- */
        #lightbox-img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
            opacity: 1;
            transform: translateX(0);
        }

        .slide-out-left {
            transform: translateX(-100px) !important;
            opacity: 0 !important;
        }
        .slide-out-right {
            transform: translateX(100px) !important;
            opacity: 0 !important;
        }
        .prepare-enter-left {
            transform: translateX(-100px) !important;
            opacity: 0 !important;
            transition: none !important;
        }
        .prepare-enter-right {
            transform: translateX(100px) !important;
            opacity: 0 !important;
            transition: none !important;
        }

        /* --- NUEVA ANIMACIÓN SWIPE UNIVERSAL (MULTI-EJE) --- */
        /* Enseña al usuario que puede mover en X y en Y */
        @keyframes swipeGestureUniversal {
            0% { 
                transform: translate(0, 0) scale(1); 
                opacity: 0; 
            }
            15% {
                opacity: 1;
                transform: translate(0, 0) scale(1);
            }
            /* Movimiento Horizontal */
            40% { 
                transform: translate(-40px, 0) scale(1); 
                opacity: 1; 
            }
            50% {
                transform: translate(0, 0) scale(1); 
                opacity: 1;
            }
            /* Movimiento Vertical */
            80% { 
                transform: translate(0, -40px) scale(1); 
                opacity: 1; 
            }
            100% { 
                transform: translate(0, -40px) scale(0.8); 
                opacity: 0; 
            }
        }
        
        @keyframes pulseGold {
            0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
            50% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
        }

        /* --- PANTALLA DE INTRODUCCIÓN --- */
        #intro-screen {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            background: radial-gradient(circle at center, #f3e8ff 0%, #e9d5ff 100%);
            z-index: 100;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            transition: opacity 1.5s ease-in-out, visibility 1.5s;
        }

        .seal-container {
            position: relative; cursor: pointer;
            width: 220px; height: 220px;
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.5s ease;
        }
        .seal-container:hover { transform: scale(1.05); }

        .soul-circle {
            position: absolute; width: 100%; height: 100%;
            border-radius: 50%; border: 2px solid var(--gold-accent);
            box-shadow: 0 0 40px rgba(88, 28, 135, 0.15);
            animation: spinSlow 25s linear infinite;
        }
        .soul-circle::after {
            content: ''; position: absolute;
            top: -12px; left: -12px; right: -12px; bottom: -12px;
            border: 1px dotted rgba(212, 175, 55, 0.6); border-radius: 50%;
        }

        @keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        .soul-fill {
            position: absolute; width: 90%; height: 90%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(216, 180, 254, 0.3) 0%, transparent 70%);
            transform: scale(0); transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .character-head {
            width: 130px; height: 130px; object-fit: contain; z-index: 10;
            filter: drop-shadow(0 4px 8px rgba(88, 28, 135, 0.25));
            transition: filter 0.3s ease;
        }

        .intro-text {
            margin-top: 2.5rem; color: var(--text-primary);
            font-family: 'Cinzel', serif; font-size: 1.5rem;
            letter-spacing: 0.1em; animation: pulseText 3s infinite;
            text-align: center; padding: 0 1rem;
        }

        .shatter-anim { animation: bloomEffect 1.2s forwards ease-out; }

        @keyframes bloomEffect {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0; filter: blur(5px) brightness(1.2); }
            100% { transform: scale(1.5); opacity: 0; filter: blur(20px); }
        }

        @keyframes pulseText {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 10px rgba(216, 180, 254, 0.6); }
        }

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

        /* --- FONDO --- */
        .background-layer {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
            background-color: #faf5ff;
            background-image: radial-gradient(#e9d5ff 1px, transparent 1px);
            background-size: 50px 50px; opacity: 0.4;
        }
        .vignette {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle, transparent 40%, rgba(255, 255, 255, 0.7) 100%);
            z-index: -1; pointer-events: none;
        }
        .particle-container {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 0; overflow: hidden;
        }
        .grub-bubble {
            position: absolute; display: flex; align-items: center; justify-content: center;
            font-size: 24px; opacity: 0.6;
            filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
        }

        /* --- TARJETAS --- */
        .xv-card {
            background: var(--glass-bg);
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 10px 40px -10px rgba(88, 28, 135, 0.15);
            position: relative; backdrop-filter: blur(8px); border-radius: 12px;
        }
        .xv-border-inner {
            position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px;
            border: 1px solid var(--gold-accent); border-radius: 8px;
            opacity: 0.5; pointer-events: none;
        }
        .xv-btn {
            background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
            border: none; color: white;
            font-family: 'Montserrat', sans-serif; text-transform: uppercase;
            font-weight: 500; letter-spacing: 0.15em;
            transition: all 0.3s ease; position: relative; overflow: hidden;
            box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3); border-radius: 2px;
        }
        .xv-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(126, 34, 206, 0.5);
            background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
        }
        .xv-btn-map {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
            background: white; color: var(--text-primary);
            border: 1px solid #d8b4fe; border-radius: 2px;
        }
        .xv-btn-map:hover {
            background: #faf5ff; border-color: var(--gold-accent); color: var(--gold-accent);
        }

        @keyframes floatUpBubble {
            0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
            10% { opacity: 0.8; }
            90% { opacity: 0.6; }
            100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
        }

        .countdown-digit {
            font-family: 'Cinzel', serif; font-weight: 700; color: #b45309; 
            background: -webkit-linear-gradient(#d4af37, #854d0e);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #faf5ff; }
        ::-webkit-scrollbar-thumb { background: #c084fc; border-radius: 4px; }

        /* --- MEJORA: LIMPIEZA VISUAL EN MÓVILES --- */
        @media (max-width: 768px) {
            /* Ocultar botones de flechas solo en pantallas de celular para priorizar Swipe */
            #btn-prev, #btn-next {
                display: none !important;
            }
        }