/* ============================================
   WELCOME SCREEN STYLES (Pantalla de Bienvenida)
   ============================================ */

.welcome-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: #121212;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

/* Efecto de grano/ruido */
.grain-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
}

.main-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font);
}

/* --- Top Header --- */
.top-header {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-bottom: -20px;
    margin-left: 50px;
}

.circle-outline {
    width: 25px;
    height: 25px;
    border: 1px solid var(--secondary-bg-color);
    border-radius: 50%;
}

.year-badge {
    border: 1px solid var(--secondary-bg-color);
    padding: 2px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--secondary-bg-color);
}

/* --- Título y Cápsulas de Cristal --- */
.title-wrapper {
    position: relative;
    padding: 20px 0;
    width: fit-content;
    margin: 0 auto;
}

.main-title {
    font-size: 10rem;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--secondary-bg-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.glass-capsule {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    height: 90px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.glass-capsule.left {
    width: 380px;
    bottom: 0;
    left: -80px;
    animation: capsule-left-move 3.5s ease-in-out infinite alternate;
}

.glass-capsule.right {
    width: 250px;
    top: 5px;
    right: -40px;
    animation: capsule-right-move 3.5s ease-in-out infinite alternate;
}

@keyframes capsule-left-move {
    0% { left: -80px; }
    100% { left: 40px; }
}

@keyframes capsule-right-move {
    0% { right: -40px; }
    100% { right: 80px; }
}

/* --- Footer --- */
.bottom-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    align-self: flex-end;
    margin-top: -10px;
    margin-right: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.dot-white {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--secondary-bg-color);
    border-radius: 50%;
    transition: none;
}

.bottom-footer:hover .dot-white {
    transform: none;
}

.name-pill {
    background-color: var(--secondary-bg-color);
    color: #fff;
    padding: 5px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-style: italic;
    font-size: 1.2rem;
    font-family: var(--font);
    border: 2px solid var(--secondary-bg-color);
    position: relative;
    overflow: hidden;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.name-pill::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-bg-color);
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.bottom-footer:hover .name-pill {
    color: var(--secondary-bg-color);
    background: transparent;
}

.bottom-footer:hover .name-pill::after {
    transform: translateX(-100%);
}

/* Animación de salida */
.welcome-screen.slide-up {
    transform: translateY(-100%);
}

/* Ajustes Móvil */
@media (max-width: 768px) {
    .main-title { 
        font-size: 4rem; 
    }
    
    .glass-capsule { 
        height: 40px; 
    }
    
    .glass-capsule.left { 
        width: 150px; 
        left: -20px; 
    }
    
    .glass-capsule.right { 
        width: 100px; 
        right: -10px; 
    }

    .top-header {
        margin-left: 20px;
        gap: 8px;
    }

    .circle-outline {
        width: 20px;
        height: 20px;
    }

    .year-badge {
        font-size: 0.75rem;
        padding: 2px 15px;
    }

    .bottom-footer {
        margin-right: 10px;
    }

    .name-pill {
        font-size: 1rem;
        padding: 4px 20px;
    }

    .dot-white {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .main-title { 
        font-size: 2.5rem; 
    }

    .glass-capsule { 
        height: 30px; 
    }

    .glass-capsule.left { 
        width: 100px; 
        left: -15px; 
    }

    .glass-capsule.right { 
        width: 80px; 
        right: -5px; 
    }
}
