:root {
    --primary: #ff4d6d;
    --accent: #ff85a1;
    --bg: #0a0a0c;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: white;
}

/* Control de Scroll: Bloqueado en el inicio, habilitado después */
body.no-scroll {
    overflow: hidden;
}

#canvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hidden {
    display: none;
    opacity: 0;
}

.glass-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    width: 85%;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: fadeIn 2s ease-out;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff4d6d, #ff85a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.typewriter {
    font-size: 1rem;
    color: #ccc;
    min-height: 3.5em;
    margin: 20px 0;
    line-height: 1.5;
}

.btn-portal {
    padding: 15px 35px;
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-portal:hover {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

/* --- MEDIA QUERIES PARA CELULAR --- */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .glass-box { padding: 30px 20px; }
    .typewriter { font-size: 0.9rem; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Clase para el desvanecimiento de salida */
.fade-out {
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none; /* Evita clics accidentales mientras se va */
}

/* Aseguramos que el body por defecto sea visible */
body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* --- ESTILO PARA TARJETA DESHABILITADA --- */
.card-disabled {
    cursor: not-allowed; /* Cambia el cursor a un círculo con raya */
    opacity: 0.6; /* Se ve un poco más transparente */
    filter: grayscale(0.3); /* Le quita un poco de color */
}

/* Evitamos que la tarjeta haga efectos de movimiento al pasar el mouse */
.card-disabled:hover {
    transform: none !important;
}

.card-disabled:hover .card-glass {
    background: var(--glass) !important;
    border-color: var(--glass-border) !important;
    box-shadow: none !important;
}

/* 1. Animación que fuerza la entrada */
@keyframes force-visible {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- ESTADO BASE --- */
body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0c;
    color: white;
    font-family: 'Montserrat', sans-serif;
    /* La página empieza invisible para que el efecto sea suave */
    opacity: 0; 
    transition: opacity 0.8s ease-in-out;
}

/* --- CUANDO LA PÁGINA YA CARGÓ --- */
body.loaded {
    opacity: 1;
}

/* --- EFECTO DE SALIDA (HACIA EL MENÚ) --- */
.fade-out {
    opacity: 0 !important;
}
