/* Explain: CSS animations for the hero section illustrations. */
/* Explains: da vida a la ilustración central de la portada de ordenador —la imagen respira acercándose y alejándose, un reflejo dorado cruza la escena de lado a lado y unas notas musicales suben flotando por el dibujo— sin mover ni un píxel de los botones, del tamaño ni de la composición. */

/* La ilustración respira: se acerca y se aleja con un brillo cálido que sube y baja. */
.hero-viva {
    transform-origin: 50% 60%;
    animation: hero-viva-respira 8s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes hero-viva-respira {
    0%,
    100% {
        transform: scale(1.005) translate3d(0, 0.6%, 0);
        filter: brightness(1) saturate(1);
    }

    50% {
        transform: scale(1.075) translate3d(0, -0.8%, 0);
        filter: brightness(1.13) saturate(1.07);
    }
}

/* Un reflejo de luz dorada cruza la ilustración de lado a lado, como si el sol pasara por delante. */
.poster-cover-shell--pc .poster-cover::after {
    position: absolute;
    inset: -30%;
    z-index: 3;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 245, 205, 0.5) 50%, transparent 58%);
    content: "";
    pointer-events: none;
    animation: hero-viva-reflejo 8s ease-in-out infinite;
}

@keyframes hero-viva-reflejo {
    0% {
        opacity: 0;
        transform: translateX(-52%);
    }

    35% {
        opacity: 1;
    }

    65% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(52%);
    }
}

/* Notas musicales que suben flotando sobre el dibujo, con un vaivén lento y dorado. */
.hero-notas {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.hero-nota {
    position: absolute;
    bottom: -3rem;
    color: var(--poster-gold);
    line-height: 1;
    opacity: 0;
    text-shadow: 0 0 0.6rem rgba(243, 201, 105, 0.85), 0 0.1rem 0.2rem rgba(30, 58, 86, 0.4);
    animation: hero-viva-nota 9s ease-in-out infinite;
}

.hero-nota--1 {
    left: 12%;
    font-size: 1.8rem;
    animation-duration: 9s;
    animation-delay: 0s;
}

.hero-nota--2 {
    left: 30%;
    font-size: 1.3rem;
    animation-duration: 11s;
    animation-delay: 2.2s;
}

.hero-nota--3 {
    left: 51%;
    font-size: 1.9rem;
    animation-duration: 10s;
    animation-delay: 1s;
}

.hero-nota--4 {
    left: 70%;
    font-size: 1.4rem;
    animation-duration: 12s;
    animation-delay: 3.4s;
}

.hero-nota--5 {
    left: 87%;
    font-size: 1.7rem;
    animation-duration: 9.5s;
    animation-delay: 2.6s;
}

@keyframes hero-viva-nota {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(-8deg) scale(0.9);
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: 1;
        transform: translateY(-46vh) translateX(1.6rem) rotate(10deg) scale(1.05);
    }

    85% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: translateY(-92vh) translateX(-1.2rem) rotate(-6deg) scale(0.95);
    }
}