/* css/landing.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #2A2A3C;
    color: #EC407A;
    font-family: 'Courier New', monospace;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Contenedor para los textos */
.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Estilos para los headings */
.text h1 {
    font-size: 2.5rem;
    display: none; /* Ocultos inicialmente */
    opacity: 0;
    margin: 10px 0;
    text-shadow: 0 0 10px #EC407A, 0 0 20px #EC407A;
    animation: textFadeIn 1s forwards;
    width: auto;
    text-align: center;
    white-space: nowrap;
}

/* Animación de aparición para los textos */
@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de scanlines para simular pantalla antigua */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(42, 42, 60, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

/* Efecto de parpadeo */
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 64, 122, 0.05);
    opacity: 0;
    z-index: 11;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.1; }
    5% { opacity: 0.1; }
    10% { opacity: 0; }
    15% { opacity: 0.1; }
    20% { opacity: 0; }
    25% { opacity: 0.3; }
    30% { opacity: 0.1; }
    35% { opacity: 0; }
    40% { opacity: 0.1; }
    45% { opacity: 0; }
    50% { opacity: 0.1; }
    55% { opacity: 0; }
    60% { opacity: 0.2; }
    65% { opacity: 0.1; }
    70% { opacity: 0; }
    75% { opacity: 0.1; }
    80% { opacity: 0; }
    85% { opacity: 0.1; }
    90% { opacity: 0; }
    95% { opacity: 0.1; }
    100% { opacity: 0; }
}

.loading-container {
    text-align: center;
    z-index: 5;
}

.percentage {
    font-size: 6rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #EC407A, 0 0 20px #EC407A;
}

.loading-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.progress-bar {
    width: 400px;
    height: 20px;
    background-color: #3A2A4C;
    border: 2px solid #EC407A;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #EC407A;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #EC407A;
}

.logo-container {
    position: absolute;
    display: none;
    cursor: pointer;
    z-index: 20;
    animation: screensaver 20s infinite linear;
    width: 300px;
    height: 300px;
}

.logo {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 8px #EC407A) drop-shadow(0 0 16px #EC407A);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 12px #EC407A) drop-shadow(0 0 24px #EC407A);
}

@keyframes screensaver {
    0% {
        top: 10%;
        left: 5%;
    }
    15% {
        top: 70%;
        left: 20%;
    }
    30% {
        top: 30%;
        left: 80%;
    }
    45% {
        top: 80%;
        left: 60%;
    }
    60% {
        top: 15%;
        left: 40%;
    }
    75% {
        top: 65%;
        left: 85%;
    }
    90% {
        top: 40%;
        left: 10%;
    }
    100% {
        top: 10%;
        left: 5%;
    }
}

.instruction {
    position: absolute;
    bottom: 20px;
    font-size: 1rem;
    color: #EC407A;
    display: none;
    z-index: 20;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 5px #EC407A;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Efecto de brillo en texto */
.glow {
    text-shadow: 0 0 5px #EC407A, 0 0 10px #EC407A, 0 0 15px #EC407A, 0 0 20px #EC407A;
}

/* Partículas de fondo */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: #EC407A;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 12s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100vw);
        opacity: 0;
    }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .text h1 {
        font-size: 75%;
    }
    
    .percentage {
        font-size: 4rem;
    }
    
    .progress-bar {
        width: 300px;
    }
    
    .logo-container {
        width: 200px;
        height: 200px;
    }
    
    .logo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .text h1 {
        font-size: 1.5rem;
    }
    
    .percentage {
        font-size: 3rem;
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .logo-container {
        width: 150px;
        height: 150px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
}