/* ESTILOS BASE */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: sans-serif;
    isolation: isolate;
}

/* IMAGEN DE FONDO CON OPACIDAD */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/banner.png'); 
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: -1;
}

/* CAPAS DE LLUVIA (3D) */
#canvasBack, #canvasFront {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#canvasBack { z-index: 1; }
#canvasFront { z-index: 3; pointer-events: none; }

/* TEXTO CENTRAL */
.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    pointer-events: none;
    width: 100%;
}

.centered-text h1 {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: 5px; 
    color: white;
    /* Efecto de fusión que deja pasar los colores oscuros del fondo */
    mix-blend-mode: overlay; 
    /* Sombra fuerte para dar volumen */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.9));
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
        /* Efecto de resplandor inicial */
    text-shadow: 
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px rgba(0, 162, 255, 0.6),
        0 0 82px rgba(0, 162, 255, 0.4);
    
    /* Aplicamos la animación de parpadeo */
    animation: neon-flicker 5s infinite alternate;
}

/* Definición de la animación de fallo de neón */
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        /* Estado: Encendido brillante */
        text-shadow: 
            0 0 3px #fff,
            0 0 3px #fff,
            0 0 3px #fff,
            0 0 42px rgba(0, 162, 255, 0.6),
            0 0 82px rgba(0, 162, 255, 0.4);
        opacity: 1;
    }
    20%, 24%, 55% {        
        /* Estado: "Fallo" o parpadeo rápido (se apaga casi del todo) */
        text-shadow: none;
        opacity: 0.4;
    }
}

/* REDES SOCIALES (GLASSMORPHISM) */
.social-links {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.link-item {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 4s ease-in-out infinite;
}

.link-item:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Etiqueta flotante */
.link-item::after {
    content: attr(data-name);
    position: absolute;
    top: -45px;
    background: white;
    color: #000;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.link-item:hover::after { opacity: 1; top: -55px; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}