/* Explain: Styles for the interactive music player (gramophone/radio) on the hero section. */
/* Explains: zona pulsable sobre el gramófono y el mueble que lo sostiene en la portada de ordenador — muestra siempre un cartel dorado que invita a pulsar, se intensifica al pasar el ratón y, al pulsar, pone o quita la canción. */
.hero-gramophone-zone {
    position: absolute;
    z-index: 18;
    left: 2%;
    right: auto;
    bottom: 2%;
    display: flex;
    width: 30%;
    height: 18%;
    align-items: flex-end;
    justify-content: center;
    border: 0;
    border-radius: 1.4rem;
    background: transparent;
    padding: 0 0 0.85rem;
    cursor: pointer;
    transition: background-color 240ms ease, box-shadow 240ms ease;
}

.hero-gramophone-zone:hover,
.hero-gramophone-zone:focus-visible {
    background: radial-gradient(circle at 40% 72%, rgba(243, 201, 105, 0.28), transparent 70%);
    box-shadow: inset 0 0 0 2px rgba(243, 201, 105, 0.55);
    outline: none;
}

/* Invitación dorada siempre visible sobre el mueble: nadie se pierde la canción. */
.hero-gramophone-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(243, 201, 105, 0.85);
    border-radius: 999px;
    background: linear-gradient(180deg, #F8D57A, #DFA63A);
    padding: 0.5rem 1.15rem;
    color: var(--poster-navy);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), 0 0 0 0 rgba(243, 201, 105, 0.6);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
    pointer-events: none;
    animation: hero-gramophone-hint-pulse 2600ms ease-in-out infinite;
}

/* Al pasar el ratón, el cartel se ilumina, sube un poco y crece el halo dorado. */
.hero-gramophone-zone:hover .hero-gramophone-hint,
.hero-gramophone-zone:focus-visible .hero-gramophone-hint {
    animation: none;
    filter: brightness(1.08);
    transform: translateY(-0.15rem) scale(1.04);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 0 0.35rem rgba(243, 201, 105, 0.35);
}

.hero-gramophone-hint i {
    color: var(--poster-navy);
    font-size: 0.85rem;
}

/* Halo dorado que late despacio para atraer la mirada sin molestar. */
@keyframes hero-gramophone-hint-pulse {
    0%,
    100% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), 0 0 0 0 rgba(243, 201, 105, 0.6);
    }

    50% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), 0 0 0 0.55rem rgba(243, 201, 105, 0);
    }
}

/* Móvil y tablet: el botón de escuchar la canción, pequeño y dorado, en la esquina inferior
   izquierda, debajo de los pies del director, sin tapar a nadie ni nada de la ilustración. */
.hero-gramophone-zone--movil {
    left: clamp(0.75rem, 4vw, 1.5rem);
    right: auto;
    bottom: calc(clamp(0.9rem, 3.6vw, 1.6rem) + env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.hero-gramophone-zone--movil .hero-gramophone-hint {
    min-height: 2.75rem;
    padding: 0.62rem 1.3rem;
    font-size: clamp(0.82rem, 3.6vw, 0.95rem);
}

.hero-gramophone-zone--movil .hero-gramophone-hint i {
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-gramophone-zone,
    .hero-gramophone-hint {
        transition: none;
    }

    .hero-gramophone-hint {
        animation: none;
    }
}

/* Explains: radio pequeña de la esquina de la portada de ordenador — un botón con forma de radio
   dorada (antena, altavoz y pantallita) y la palabra «PULSA» debajo, que pone o quita la canción
   del coro. Al sonar cambia a «PAUSA», el altavoz se mueve y la pantallita muestra el símbolo
   de pausa. Se apoya sobre el gramófono dibujado, sin tapar la ilustración. */
.hero-radio {
    position: absolute;
    left: clamp(0.85rem, 2vw, 1.6rem);
    bottom: clamp(0.85rem, 2.2vh, 1.6rem);
    z-index: 18;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 260ms ease;
}

.hero-radio:hover,
.hero-radio:focus-visible {
    outline: none;
    filter: brightness(1.07);
    transform: translateY(-0.22rem) scale(1.05);
}

.hero-radio:focus-visible {
    outline: 0.16rem solid var(--poster-gold);
    outline-offset: 0.2rem;
}

.hero-radio:active {
    transform: translateY(0.05rem) scale(0.95);
    transition-duration: 90ms;
}

.hero-radio-asa {
    width: 46%;
    height: 1.05rem;
    border: 0.16rem solid var(--poster-navy);
    border-bottom: 0;
    border-radius: 0.75rem 0.75rem 0 0;
    background-image: linear-gradient(180deg, #F8D57A, #DFA63A);
    box-shadow: inset 0 0.15rem 0.3rem rgba(255, 255, 255, 0.45);
}

.hero-radio-cuerpo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 0.16rem solid var(--poster-navy);
    border-radius: 0.9rem;
    background-image: linear-gradient(180deg, #F8D57A, #DFA63A);
    padding: 0.4rem 0.55rem;
    box-shadow:
        0 0.35rem 0 rgba(30, 58, 86, 0.2),
        0 0.7rem 1.3rem rgba(0, 0, 0, 0.34),
        inset 0 0.2rem 0.4rem rgba(255, 255, 255, 0.45);
}

.hero-radio-altavoz {
    display: inline-flex;
    height: 1.85rem;
    width: 1.85rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--poster-navy);
    color: var(--poster-gold);
    font-size: 0.8rem;
    box-shadow: inset 0 0.15rem 0.35rem rgba(0, 0, 0, 0.5);
}

.hero-radio[aria-pressed="true"] .hero-radio-altavoz i {
    animation: hero-radio-nota 1600ms ease-in-out infinite;
}

@keyframes hero-radio-nota {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-0.15rem) scale(1.12);
    }
}

.hero-radio-pantalla {
    display: inline-flex;
    height: 1.5rem;
    min-width: 1.5rem;
    align-items: center;
    justify-content: center;
    border: 0.12rem solid var(--poster-navy);
    border-radius: 0.45rem;
    background: var(--poster-cream);
    color: var(--poster-navy);
    font-size: 0.62rem;
    box-shadow: inset 0 0.12rem 0.25rem rgba(0, 0, 0, 0.18);
}

.hero-radio-pausa,
.hero-radio-texto-pausa {
    display: none;
}

.hero-radio[aria-pressed="true"] .hero-radio-play,
.hero-radio[aria-pressed="true"] .hero-radio-texto-pulsa {
    display: none;
}

.hero-radio[aria-pressed="true"] .hero-radio-pausa,
.hero-radio[aria-pressed="true"] .hero-radio-texto-pausa {
    display: inline-block;
}

.hero-radio-texto {
    border: 0.13rem solid var(--poster-navy);
    border-radius: 999px;
    background: var(--poster-cream);
    padding: 0.1rem 0.6rem;
    color: var(--poster-navy);
    font-family: var(--font-comic);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0.25rem 0 rgba(30, 58, 86, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .hero-radio,
    .hero-radio[aria-pressed="true"] .hero-radio-altavoz i {
        transition: none;
        animation: none;
    }

    .hero-radio:hover,
    .hero-radio:focus-visible,
    .hero-radio:active {
        transform: none;
    }
}