/* La foto cambia; el título, la altura y las acciones permanecen estables. */
.hero-foto { opacity: 0; transition: opacity 700ms ease; pointer-events: none; }
.hero-foto.actual { opacity: 1; }
.hero-foto[hidden], .hero-panel[hidden], .hero-controles[hidden] { display: none !important; }
.portada-interior { min-height: 790px; padding-bottom: 170px; }
.hero-paneles { position: absolute; bottom: 126px; right: 0; width: 370px; min-height: 150px; }
.hero-panel { background: white; color: var(--tinta); padding: 22px 26px; border-radius: 8px; min-height: 150px; }
.hero-panel .hero-rubro-nombre { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.04em; margin: 0 0 10px; }
.hero-panel p:not(.hero-rubro-nombre) { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 16px; }
.hero-panel a { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 14px; text-decoration: underline; text-underline-offset: 4px; }
.hero-panel a svg { width: 16px; height: 16px; }
.portada-editorial .hero-panel :focus-visible { outline-color: var(--bosque); }
.hero-controles { position: absolute; bottom: 38px; left: 0; right: 0; display: flex; gap: 20px; align-items: center; border-top: 1px solid #ffffff50; padding-top: 18px; }
.hero-controles button { border: 0; color: white; background: #173d32; min-height: 44px; border-radius: 5px; font-size: 13px; line-height: 1.2; }
.hero-selectores { display: flex; gap: 8px; }
.hero-selectores button { padding: 12px 20px; border: 1px solid #ffffff70; }
.hero-selectores button[aria-disabled="true"] { background: white; color: var(--bosque); border-color: white; font-weight: 700; cursor: default; }
.hero-selectores button:not([aria-disabled="true"]):hover, .hero-flechas button:hover, .hero-reproduccion:hover { background: #316351; }
.hero-reproduccion { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; min-width: 112px; }
.hero-reproduccion [aria-hidden] { font-size: 16px; }
.hero-flechas { margin-left: auto; display: flex; gap: 8px; }
.hero-flechas button { display: grid; place-items: center; width: 44px; }
.hero-flechas button:first-child svg { transform: rotate(180deg); }
.hero-flechas svg { width: 18px; height: 18px; }
.credito-portada { bottom: 12px; }
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
    .portada-interior { min-height: 820px; }
    .hero-paneles { bottom: 132px; width: 340px; }
}
@media (max-width: 850px) {
    .portada-interior { min-height: 900px; }
    .hero-paneles { bottom: 132px; }
    .hero-controles { gap: 12px; }
    .hero-selectores button { padding-inline: 16px; }
}
@media (max-width: 680px) {
    .portada-interior { min-height: 1060px; padding-bottom: 440px; }
    .hero-paneles { bottom: 180px; right: 0; left: 0; width: auto; min-height: 146px; }
    .hero-panel { padding: 20px; min-height: 146px; }
    .hero-panel .hero-rubro-nombre { font-size: 20px; }
    .hero-controles { bottom: 38px; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding-top: 12px; }
    .hero-selectores { grid-row: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .hero-selectores button { padding-inline: 4px; font-size: 11px; }
    .hero-reproduccion { grid-row: 2; justify-self: start; min-width: 112px; }
    .hero-flechas { grid-row: 2; }
    /* El encuadre completo conserva a las personas trabajando juntas en móvil. */
    .hero-foto { height: auto; aspect-ratio: 3 / 2; bottom: 280px; object-position: center; }
    .portada-editorial::before { background: linear-gradient(180deg, #204c40 0%, #204c40 44%, #204c4000 52%, #204c4000 70%, #204c40 76%); }
    .hero-panel p:not(.hero-rubro-nombre) { font-size: 12px; }
    .credito-portada { font-size: 11px; }
}
@media (max-width: 370px) {
    .portada-interior { min-height: 1140px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-foto { transition: none; }
}
