/* Mundomio Onboarding Styles v2.6.0 - Ramiro Loizaga */

body, #mm-full-viewport {
    font-family: 'Fredoka', sans-serif;
}

#mm-full-viewport {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    overflow: hidden;
    background: #000;
}

#mm-bg-video-full {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* --- BICHO DE LUZ (HADA AMBIGUA DIFUMINADA) --- */
#mouse-follower {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none; 
    z-index: 999999;
    display: none; 
    transform: translate(-50%, -50%); 
}

.css-fairy-bird {
    position: relative;
    width: 60px; height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: blur(2px); /* Difumina toda la figura para ocultar bordes */
}

.fairy-body {
    width: 25px; height: 25px;
    background: radial-gradient(circle, #ffffff 10%, #00e5ff 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px #00e5ff, 0 0 40px #00e5ff, 0 0 60px #ffffff;
    z-index: 2;
    animation: pulseBody 1.5s infinite alternate ease-in-out;
}

.fairy-wing {
    position: absolute;
    width: 35px; height: 18px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.9) 0%, rgba(179, 136, 255, 0.5) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px #b388ff;
    top: 20px;
    filter: blur(3px); /* Hace que las alas parezcan destellos de movimiento */
}

.fairy-wing.left { left: -15px; transform-origin: center right; animation: flapLeft 0.05s infinite alternate linear; }
.fairy-wing.right { right: -15px; transform-origin: center left; animation: flapRight 0.05s infinite alternate linear; }

@keyframes pulseBody { 
    0% { transform: scale(0.8); opacity: 0.8; } 
    100% { transform: scale(1.2); opacity: 1; filter: brightness(1.3); } 
}
@keyframes flapLeft { 0% { transform: rotate(30deg); } 100% { transform: rotate(-50deg); } }
@keyframes flapRight { 0% { transform: rotate(-30deg); } 100% { transform: rotate(50deg); } }

/* --- ARDILLA AL RAS DEL SUELO --- */
#ardilla-container {
    position: absolute;
    bottom: -5px; /* Pegada al borde inferior de la pantalla */
    right: -250px; 
    width: 160px; 
    z-index: 15;
    pointer-events: none;
}

#ardilla-video {
    width: 100%; height: auto;
}

/* --- ESTRELLAS VOLADORAS --- */
#flying-elements-container {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: 5;
    pointer-events: none;
}

.flying-star {
    position: absolute;
    width: 15px; height: 15px;
    background: radial-gradient(circle, #fff 20%, #ffeb3b 80%);
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px #ffeb3b;
    opacity: 0.8;
}

#mm-main-interface {
    position: relative;
    z-index: 10;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-around;
}

/* --- PRINCESA Y AURA --- */
#princesa-container {
    position: absolute;
    bottom: -10px; right: 5%;
    width: 35%;
    display: flex;
    justify-content: center;
    z-index: 5;
}

.princesa-video {
    width: 100%; max-width: 550px;
    z-index: 10;
    filter: drop-shadow(0 -10px 30px rgba(255, 255, 255, 0.6));
}

.magic-aura-v2 {
    position: absolute; bottom: 0%;
    width: 160%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 245, 180, 0.8) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: 2;
    animation: glowHeavy 3s infinite alternate ease-in-out;
}

.magic-particles span {
    position: absolute;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffeb3b, 0 0 30px #fff;
    z-index: 15;
    animation: floatParticles 2.5s infinite linear;
}

.p-1 { top: 30%; left: 10%; }
.p-2 { top: 60%; right: 15%; }
.p-3 { bottom: 40%; left: 25%; }
.p-4 { top: 15%; right: 30%; }
.p-5 { bottom: 20%; right: 10%; }
.p-6 { top: 5%; left: 40%; }

@keyframes floatParticles {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-150px) scale(1.5); opacity: 0; }
}

@keyframes glowHeavy {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* --- TARJETAS CENTRALES --- */
#cards-center-container {
    position: relative;
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    perspective: 1500px;
}

.mm-scene {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mm-scene.active { display: flex; }

.tilt-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; 
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.4));
}

.img-fondo-tarjeta {
    width: 100%; height: auto;
    display: block;
    border-radius: 30px;
}

.pop-out { transform: translateZ(60px); }

.tarjeta-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10%;
    box-sizing: border-box;
}

.burbuja-capibara {
    position: relative;
    background: rgba(255,255,255,0.95);
    padding: 40px 30px;
    border-radius: 40px;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
}

.burbuja-capibara-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; height: auto;
}

/* --- TIPOGRAFÍAS E INPUTS --- */
.title-magico {
    font-weight: 700;
    color: #6a1b9a;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #fff;
    text-align: center;
}

.glow-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff85a1;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 133, 161, 0.8), 0 0 30px rgba(255, 133, 161, 0.4);
    animation: textPulse 2s infinite alternate;
}

@keyframes textPulse { from { transform: scale(1); } to { transform: scale(1.05); } }

input {
    width: 80%; max-width: 350px;
    padding: 15px;
    border-radius: 20px;
    border: 3px solid #e1bee7;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    outline: none;
}

.mm-btn-magico {
    background: linear-gradient(to bottom, #ffeb3b, #fbc02d);
    border: none;
    padding: 15px 45px;
    border-radius: 35px;
    color: #5d4037;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 8px 0 #f9a825, 0 15px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    transform: translateZ(30px);
}

.capibara-video-small { width: 180px; margin-bottom: 15px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2)); }
#palabra-magica { color: #fbc02d; text-shadow: 0 0 20px rgba(251, 192, 45, 0.6); }

@media (max-width: 768px) {
    #princesa-container { bottom: 0; right: 0; width: 60%; opacity: 0.9; }
    #cards-center-container { flex: 0 0 100%; perspective: none; }
    .tilt-card { transform: none !important; }
    #mouse-follower { display: none !important; } 
    #ardilla-container { width: 100px; bottom: 0; }
}