/* El lienzo sigue la ventana; las fotografías llenan sin deformarse. */
html, body { width: 100%; height: 100%; }
body { display: block; min-height: 100dvh; }
.canvas { width: 100%; height: 100dvh; aspect-ratio: auto; --u: min(1vw, 1.78dvh); }
.photograph { object-fit: cover; object-position: center; }
h1 span { font-size: min(2.083333vw, 3.703704dvh); }
.character { left: auto; top: auto; right: 2%; bottom: 2%; width: clamp(30px,2.864583vw,55px); height: auto; max-height: 8dvh; object-fit: contain; }
.motivo-title { font-size: clamp(20px,1.666667vw,32px); }
.motivo-title span { height: 1.1em; }
.motivo-copy { font-size: min(1.666667vw,2.962963dvh); }
.motivo-copy .blank { height: min(1.354167vw,2.407407dvh); }
.back { left: auto; top: auto; right: 3%; bottom: 10%; width: 64px; height: 28px; font-size: 20px; }
.story { font-size: clamp(16px,1.666667vw,32px); line-height: 1.02; }
.album { width: calc(18.125 * var(--u)); }
.album.active { width: calc(23.333333 * var(--u)); }
.album strong { font-size: clamp(14px,calc(1.041667 * var(--u)),20px); }
.album small { font-size: clamp(12px,calc(.729167 * var(--u)),14px); }
.album.active strong { font-size: clamp(18px,calc(1.666667 * var(--u)),32px); }
.album.active small { font-size: clamp(14px,calc(1.25 * var(--u)),24px); }
.album-arrow { font-size: clamp(24px,2vw,38px); }
.listen { min-width: 52px; }
.listen-message { font-size: clamp(14px,1vw,20px); }
@media (max-aspect-ratio: 6/5) {
 .canvas:not(.music):not(.motivo) .photograph { object-position: 42% center; }
 .canvas:not(.music):not(.motivo) h1 span { font-size: clamp(20px,3.5vw,32px); }
 nav button img { min-width: 48px; }
 nav button[data-section="memoria"] { left: 84%; }
 nav button[data-section="fotos"] { left: 69%; }
 .motivo-photo { object-position: 58% bottom; }
 .motivo-copy .line { left: calc(16% + (var(--x) - 1417) / 1920 * 230%); }
 .motivo-copy { font-size: min(4vw,2.6dvh); }
 .music { --u: min(2vw,1.3dvh); }
 .albums { left: 0; top: 17%; width: 100%; height: 40%; }
 .music .story-frame { left: 7%; top: 64%; width: 77%; height: 27%; }
 .story { font-size: clamp(16px,2.6vw,22px); line-height: 1.1; padding-bottom: 20px; }
 .story p { margin-bottom: 1em; }
 .album-arrow { top: 54%; }
 .previous { left: 7%; } .next { left: 42%; }
 .listen { left: 24%; top: 54%; width: 10%; height: 7%; }
 .listen-message { top: 61%; left: 6%; width: 78%; }
}
@media (min-aspect-ratio: 6/5) {
 .canvas:not(.music):not(.motivo) .photograph { object-position: center bottom; }
}
