/* ========================================
   Animations & Transitions
======================================== */

/* ========================================
   Keyframe Animations
======================================== */

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Rotate Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateVinyl {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(5px);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Glow Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.8), 0 0 40px rgba(139, 0, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
    }
}

/* Text Glow */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(139, 0, 0, 0.8), 0 0 30px rgba(139, 0, 0, 0.6);
    }
    100% {
        text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    }
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Slide Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Background Animation */
@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   Animation Classes
======================================== */

/* Fade Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-down {
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 1s ease-out forwards;
}

/* Slide Classes */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.slide-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

/* Visible State */
.slide-up.visible,
.slide-down.visible,
.slide-left.visible,
.slide-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* Scale Classes */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Rotation Classes */
.rotate-in {
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.8s ease-out;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0);
}

/* ========================================
   Hover Effects
======================================== */

/* Lift Effect */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Grow Effect */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.1);
}

/* Shrink Effect */
.hover-shrink {
    transition: transform 0.3s ease;
}

.hover-shrink:hover {
    transform: scale(0.95);
}

/* Rotate Effect */
.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    animation: glow 2s infinite;
}

/* ========================================
   Delay Classes
======================================== */

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 0.8s;
}

/* ========================================
   Duration Classes
======================================== */

.duration-fast {
    animation-duration: 0.5s;
}

.duration-normal {
    animation-duration: 1s;
}

.duration-slow {
    animation-duration: 1.5s;
}

.duration-slower {
    animation-duration: 2s;
}

/* ========================================
   Special Effects
======================================== */

/* Parallax Container */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        text-shadow:
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow:
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow:
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow:
            -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow:
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow:
            0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75),
            0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow:
            -0.025em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

.glitch {
    animation: glitch 0.5s infinite;
}

/* Typewriter Effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: white;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 0.15em solid white;
    white-space: nowrap;
    animation:
        typewriter 3s steps(40, end),
        blink 0.75s step-end infinite;
}

/* ========================================
   Scroll Reveal Classes
======================================== */

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}/* ========================================
   EFECTOS METALEROS BRUTALES
======================================== */

/* ========================================
   1. LOADING SCREEN - BARRA CON SEGMENTOS
======================================== */
#loading-screen {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
    width: 400px;
}

.loader-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.3em;
    color: #8B0000;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.loader-segments {
    display: flex;
    gap: 5px;
    justify-content: center;
    height: 30px;
    margin-bottom: 1rem;
}

.segment {
    width: 35px;
    height: 100%;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.segment.active {
    background: linear-gradient(180deg, #ff3300, #8B0000);
    border-color: #ff3300;
    box-shadow:
        0 0 10px rgba(255, 51, 0, 0.8),
        inset 0 0 10px rgba(255, 100, 0, 0.3);
    animation: segmentPulse 0.5s ease;
}

.segment.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 0.5s ease;
}

@keyframes segmentPulse {
    0% {
        transform: scaleY(0.8);
    }
    50% {
        transform: scaleY(1.2);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loader-percentage {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #666;
    letter-spacing: 0.1em;
}

/* ========================================
   2. VIDEO BACKGROUND ENHANCED
======================================== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 100%);
    animation: overlayPulse 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Partículas de fuego/chispas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, #ff6600 0%, #ff0000 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 6s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Efecto VHS/Glitch en los bordes */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 3;
    animation: vhsScan 10s linear infinite;
}

@keyframes vhsScan {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg,
            rgba(255, 0, 0, 0.03) 0%,
            transparent 3%,
            transparent 97%,
            rgba(0, 255, 255, 0.03) 100%);
    animation: rgbShift 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes rgbShift {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Humo animado en la parte inferior */
.smoke-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    z-index: 4;
}

.smoke-layer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><filter id="smoke"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="2" seed="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"/></filter></defs><rect width="1000" height="300" filter="url(%23smoke)"/></svg>') repeat-x;
    animation: smokeMove 30s linear infinite;
    opacity: 0.5;
}

@keyframes smokeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ========================================
   3. TÍTULO PRINCIPAL CON EFECTOS BRUTALES
======================================== */
.hero-tagline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 12vw, 14rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 4rem 0 0 0;
    position: relative;
    display: inline-block;
    line-height: 0.9;

    /* Efecto metálico 3D */
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #d4d4d4 40%,
        #888888 50%,
        #d4d4d4 60%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px rgba(255, 51, 0, 0.5);

    /* Sombras para profundidad */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8))
            drop-shadow(0 5px 10px rgba(139, 0, 0, 0.5))
            drop-shadow(0 10px 20px rgba(255, 0, 0, 0.3));

    /* Animación de entrada */
    animation: titleExplosion 1s ease-out forwards,
               metalShine 3s ease-in-out infinite,
               subtleVibration 0.05s infinite;
}

/* Fondo oscuro para mejor contraste */
.hero-tagline::before {
    content: '';
    position: absolute;
    left: -40px;
    right: -40px;
    top: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, transparent 70%);
    z-index: -2;
    animation: backgroundPulse 3s ease-in-out infinite;
}

/* Efecto de fuego detrás del texto - usando un div adicional */
.fire-effect {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        45deg,
        #ff0000,
        #ff6600,
        #ff9900,
        #ffcc00
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(15px);
    animation: fireFlicker 2s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
}

/* Efecto glitch intermitente */
.hero-tagline::after {
    content: 'EL DIOS DE LAS MÁQUINAS';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #00ffff 0%,
        #ff00ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: glitchEffect 8s infinite;
    z-index: -1;
}

@keyframes titleExplosion {
    0% {
        transform: scale(0) rotateZ(360deg);
        filter: blur(10px);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotateZ(180deg);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes metalShine {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.2) contrast(1.1);
    }
}

@keyframes subtleVibration {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-0.5px) translateY(0.2px); }
    75% { transform: translateX(0.5px) translateY(-0.2px); }
}

@keyframes fireFlicker {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.5;
    }
    33% {
        transform: scale(1.05) translateY(-2px);
        opacity: 0.7;
    }
    66% {
        transform: scale(0.95) translateY(2px);
        opacity: 0.6;
    }
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes glitchEffect {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    91% {
        opacity: 1;
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    92% {
        opacity: 1;
        transform: translateX(2px);
        filter: hue-rotate(180deg);
    }
    93% {
        opacity: 1;
        transform: translateX(0);
        filter: hue-rotate(270deg);
    }
    94% {
        opacity: 0;
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
}

/* Mejora para el subtítulo */
.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    position: relative;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Estilo especial para el nombre del álbum */
.album-name {
    color: #ff3300;
    font-weight: 700;
    font-size: 1.15em;
    letter-spacing: 0.2em;
    display: inline-block;
    animation: albumGlow 2s ease-in-out infinite;
    text-shadow:
        0 0 20px rgba(255, 51, 0, 0.8),
        0 0 40px rgba(139, 0, 0, 0.5);
    position: relative;
}

.album-name::before {
    content: '"';
    position: absolute;
    left: -0.5em;
    color: #ff6600;
    animation: quoteFlicker 3s infinite;
}

.album-name::after {
    content: '"';
    position: absolute;
    right: -0.5em;
    color: #ff6600;
    animation: quoteFlicker 3s infinite;
}

@keyframes albumGlow {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2);
        transform: scale(1.02);
    }
}

@keyframes quoteFlicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Ajustes para el contenedor del hero */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 5%;
    padding-bottom: 8rem;
    text-align: left;
}

.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    max-width: 800px;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Scroll indicator - estilos movidos a terminator-style.css */

@keyframes subtitleGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 51, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.5),
            0 0 30px rgba(139, 0, 0, 0.3);
    }
    50% {
        text-shadow:
            0 0 20px rgba(255, 51, 0, 1),
            0 0 30px rgba(255, 0, 0, 0.8),
            0 0 40px rgba(139, 0, 0, 0.5);
    }
}