/* component_superheroes.css */
body {
    margin: 0;
    padding: 0;
    background: #000;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #000);
    position: relative;
    overflow: hidden;
}

/* Efecto de energía en el fondo */
#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0,102,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255,0,0,0.1) 0%, transparent 50%);
    animation: energyPulse 4s infinite;
}

@keyframes energyPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

h2 {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: 'Arial Black', sans-serif;
    opacity: 0;
    margin: 0;
    font-size: 28px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Efecto de rayos eléctricos */
.lightning {
    position: absolute;
    width: 3px;
    height: 100%;
    background: rgba(255,255,255,0.7);
    filter: blur(1px);
    pointer-events: none;
}

@keyframes heroicEntrance {
    0% { 
        opacity: 0; 
        transform: translateY(-50%) scale(0.1);
        filter: blur(20px);
    }
    15% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
        filter: blur(0);
        text-shadow: 
            0 0 20px rgba(0,102,255,0.8),
            0 0 30px rgba(0,102,255,0.6),
            0 0 40px rgba(0,102,255,0.4);
    }
	20%, 60% { /* Aumentado el tiempo de visibilidad */
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
        filter: blur(0);
        text-shadow: 
            0 0 20px rgba(0,102,255,0.8),
            0 0 30px rgba(0,102,255,0.6),
            0 0 40px rgba(0,102,255,0.4);
    }
    60%, 85% { /* Aumentado el tiempo de visibilidad */
        opacity: 1;
        transform: translateY(-50%) scale(1);
        text-shadow: 
            0 0 20px rgba(0,102,255,0.8),
            0 0 30px rgba(0,102,255,0.6),
            0 0 40px rgba(0,102,255,0.4);
    }
    100% { 
        opacity: 0;
        transform: translateY(50%) scale(0.1);
        filter: blur(20px);
    }
}

/* Ajustamos los tiempos de cada elemento */
#ele1 { 
    animation: heroicEntrance 4s ease-in-out 0s forwards; /* 3s -> 4s */
    color: #e6e6e6;
}
#ele2 { 
    animation: heroicEntrance 4s ease-in-out 4s forwards; /* delay: 3s -> 4s */
    color: #ff3333;
    text-transform: uppercase;
}
#ele3 { 
    animation: heroicEntrance 4s ease-in-out 8s forwards; /* delay: 6s -> 8s */
    color: #3399ff;
    text-transform: uppercase;
}
#ele4 { 
    animation: heroicEntrance 4s ease-in-out 12s forwards; /* delay: 9s -> 12s */
    color: #ffcc00;
    /*text-transform: uppercase;*/
}

/* Ajustamos la animación del título */
@keyframes titleReveal {
    0% { 
        opacity: 0; 
        transform: translateY(-50%) scale(2);
        filter: blur(30px);
    }
    10% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.5);
        filter: blur(0);
    }
    20%, 80% { /* Aumentado el tiempo de visibilidad */
        opacity: 1;
        transform: translateY(-50%) scale(1);
        text-shadow: 
            0 0 30px rgba(255,0,0,0.8),
            0 0 50px rgba(255,0,0,0.6),
            0 0 70px rgba(255,0,0,0.4),

    }
    90% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
    100% { 
        opacity: 0;
        transform: translateY(-50%) scale(0.1);
    }
}

#ele5 { 
    animation: titleReveal 5s ease-in-out 16s forwards; /* 4s -> 5s, delay: 12s -> 16s */
    font-size: 42px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 4px;
	color: #ffcc00;
}

#ele6 { 
    animation: heroicEntrance 4s ease-in-out 21s forwards; /* delay: 16s -> 21s */
    color: #e6e6e6;
}
#ele7 { 
    animation: heroicEntrance 4s ease-in-out 25s forwards; /* delay: 19s -> 25s */
    color: #ff3333;
    text-transform: uppercase;
}

/* Ajustamos la animación final */
@keyframes finalEpicReveal {
    0% { 
        opacity: 0; 
        transform: translateY(-50%) scale(0.1);
        filter: blur(30px);
    }
    15% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.5);
        filter: blur(0);
    }
	20%, 60% { /* Aumentado el tiempo de visibilidad */
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
        filter: blur(0);
        text-shadow: 
            0 0 20px rgba(0,102,255,0.8),
            0 0 30px rgba(0,102,255,0.6),
            0 0 40px rgba(0,102,255,0.4);
    }
    60%, 85% { /* Aumentado el tiempo de visibilidad */
        opacity: 1;
        transform: translateY(-50%) scale(1);
        text-shadow: 
            0 0 30px rgba(255,204,0,0.8),
            0 0 50px rgba(255,204,0,0.6),
            0 0 70px rgba(255,204,0,0.4);
    }
    100% { 
        opacity: 0;
        transform: translateY(-50%) scale(2);
        filter: blur(30px);
    }
}

#ele8 { 
    animation: finalEpicReveal 5s ease-in-out 29s forwards; /* 4s -> 5s, delay: 22s -> 29s */
    font-size: 36px;
    font-weight: bold;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 6px;
}
