@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#magic-entrance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d0614;
    z-index: 100;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

/* Reglas comunes para todas las capas de fondo */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat; /* Corregido aquí */
    background-position: center center;
    background-size: cover;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hidden {
    opacity: 0;
}

/* Interfaz flotando arriba de los fondos */
.entrance-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.magic-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    letter-spacing: 6px;
    color: #ebd1ff;
    text-shadow: 0 0 15px rgba(216, 180, 254, 0.5);
    margin-bottom: 5px;
    margin-top: -12vh;
}

.magic-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #a78bfa;
    margin-bottom: 4vh;
}

/* Zona de clic perfectamente ubicada sobre el círculo de los chakras del fondo */
.chakra-click-zone {
    width: 160px;
    height: 160px;
    margin-bottom: 24vh;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.chakra-click-zone:hover {
    background: rgba(167, 139, 250, 0.05);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.2);
}

#enter-btn {
    background: rgba(13, 6, 20, 0.6);
    border: 2px solid #a78bfa;
    color: #ebd1ff;
    padding: 14px 40px;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s ease;
}

#enter-btn:hover {
    background: #a78bfa;
    color: #0d0614;
    box-shadow: 0 0 20px #a78bfa;
}

/* ==========================================================================
   VIDEO CINEMÁTICAL VERTICAL (Crece desde el centro ocupando el alto)
   ========================================================================== */
.cinema-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: auto;
    height: 0vh;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                height 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.cinema-overlay.active {
    transform: translate(-50%, -50%) scale(1);
    height: 100vh; /* Ocupa todo el alto de la pantalla */
}

#bg-magic-video {
    height: 100%;
    width: auto; /* Mantiene la proporción vertical intacta */
}

#particle-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
}

.fade-out { opacity: 0; pointer-events: none; }