/* Motorhoy · Visor online de la revista (1.1.50) */
:root { --ink: #0B0B0C; --ink2: #161618; --line: rgba(255, 255, 255, .12); --mute: rgba(255, 255, 255, .58); --red: #FF3131; --redd: #DC2626; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.m5v { overflow: hidden; background: #101012; color: #fff; font: 500 14px/1.4 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.m5v a { color: inherit; text-decoration: none; }
.m5v button { font: inherit; color: inherit; }
.m5v [hidden] { display: none !important; }

/* Barra superior */
.m5v__bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 62px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 0 18px 0 22px; background: var(--ink); border-bottom: 1px solid var(--line); }
.m5v__brand img { display: block; height: 30px; width: auto; }
.m5v__info { display: flex; align-items: baseline; gap: 12px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.m5v__info b { font-size: 16px; font-weight: 900; letter-spacing: -.4px; }
.m5v__info span { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.m5v__count { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.m5v__count b { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.m5v__count span { font-size: 12px; font-weight: 700; color: var(--mute); }
.m5v__count i { font-style: normal; }
.m5v__tools { display: flex; align-items: center; gap: 4px; }
.m5v__tools > button, .m5v__tools > a { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 0; border-radius: 3px; background: transparent; font-size: 12.5px; font-weight: 700; cursor: pointer; color: rgba(255, 255, 255, .86); transition: background .18s, color .18s; }
.m5v__tools > button:hover, .m5v__tools > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.m5v__tools .m5v__dl { margin-left: 6px; padding: 0 15px; background: var(--red); color: #fff; }
.m5v__tools .m5v__dl:hover { background: var(--redd); }
.m5v__tools .m5v__x { width: 38px; justify-content: center; padding: 0; margin-left: 4px; border: 1px solid var(--line); }

/* Escenario */
.m5v__stage { position: fixed; left: 0; right: 0; top: 62px; bottom: 70px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 45%, #232326 0%, #121214 62%, #0C0C0D 100%); overflow: hidden; }
.m5v__book { position: relative; display: flex; align-items: center; justify-content: center; }
.m5v__flip { position: relative; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.m5v__splash { display: block; height: calc(100vh - 62px - 70px - 68px); width: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); animation: m5vPulse 1.6s ease-in-out infinite; }
@keyframes m5vPulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.m5v__pg { background: #fff; overflow: hidden; }
.m5v__pgi { position: relative; width: 100%; height: 100%; background: #F2F2EF; }
.m5v__pg:not(.is-ready) .m5v__pgi::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #F2F2EF 30%, #FAFAF8 50%, #F2F2EF 70%); background-size: 300% 100%; animation: m5vShim 1.4s linear infinite; }
@keyframes m5vShim { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.m5v__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.m5v__img:not([src]) { visibility: hidden; }
.m5v__lk { position: absolute; inset: 0; pointer-events: none; }
.m5v__a { position: absolute; pointer-events: auto; border-radius: 2px; transition: background .18s, box-shadow .18s; }
.m5v__a:hover { background: rgba(255, 49, 49, .12); box-shadow: inset 0 0 0 2px rgba(255, 49, 49, .7); }
.m5v__pn { display: none; }
.stf__parent { margin: 0 auto; }
.stf__item { box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.m5v__arw { appearance: none; position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: -27px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(11, 11, 12, .55); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s, transform .2s; }
.m5v__arw:hover { background: var(--red); border-color: var(--red); transform: scale(1.05); }
.m5v__arw--p { left: 26px; } .m5v__arw--n { right: 26px; }
body.is-first .m5v__arw--p, body.is-last .m5v__arw--n, body.is-loading .m5v__arw { opacity: 0; pointer-events: none; }
.m5v__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 3px; background: rgba(11, 11, 12, .75); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .8); transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.m5v__hint.is-off, body.is-loading .m5v__hint { opacity: 0; }
.m5v__err { position: absolute; inset: auto 20px 40% 20px; text-align: center; font-size: 15px; }
.m5v__err a { color: var(--red); font-weight: 800; text-decoration: underline; }

/* Pie: deslizador y secciones */
.m5v__foot { position: fixed; inset: auto 0 0 0; z-index: 20; height: 70px; padding: 10px 26px 0; background: var(--ink); border-top: 1px solid var(--line); }
.m5v__scrub { position: relative; height: 18px; }
.m5v__scrub input { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 7px 0; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 var(--p), rgba(255, 255, 255, .16) var(--p) 100%); outline: none; cursor: pointer; }
.m5v__scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.m5v__scrub input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.m5v__tip { position: absolute; bottom: 26px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; padding: 6px; background: var(--ink2); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); pointer-events: none; }
.m5v__tip.is-on { display: flex; }
.m5v__tip img { width: 90px; height: auto; display: block; background: #F2F2EF; }
.m5v__tip b { font-size: 11px; font-weight: 800; white-space: nowrap; }
.m5v__secs { display: flex; gap: 3px; margin-top: 6px; }
.m5v__secs button { appearance: none; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.m5v__secs i { display: block; height: 3px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.m5v__secs span { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.m5v__secs button:hover i { background: rgba(255, 255, 255, .4); }
.m5v__secs button:hover span { color: #fff; }
.m5v__secs button.is-on i { background: var(--red); }
.m5v__secs button.is-on span { color: #fff; }

/* Paneles */
.m5v__scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.m5v__scrim.is-on { opacity: 1; }
.m5v__panel { position: fixed; top: 0; bottom: 0; right: 0; z-index: 31; width: min(400px, 92vw); display: flex; flex-direction: column; background: var(--ink); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.m5v__panel.is-on { transform: none; }
.m5v__panel--grid { width: min(720px, 96vw); }
.m5v__ph { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 2px solid #fff; margin: 0 20px; padding-left: 0; padding-right: 0; }
.m5v__ph h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.6px; }
.m5v__ph button { appearance: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: none; cursor: pointer; font-size: 14px; }
.m5v__ph button:hover { background: var(--red); border-color: var(--red); }
.m5v__toc { list-style: none; margin: 0; padding: 6px 20px 30px; overflow: auto; }
.m5v__toc li + li { border-top: 1px solid var(--line); }
.m5v__toc button { appearance: none; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 12px 0; border: 0; background: none; cursor: pointer; text-align: left; }
.m5v__tt { display: block; aspect-ratio: 1200 / 1697; background: #222; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.m5v__tt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m5v__tt img:not([src]) { visibility: hidden; }
.m5v__tx b { display: block; font-size: 12px; font-weight: 900; color: var(--red); letter-spacing: .3px; }
.m5v__tx strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.m5v__tx small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--mute); }
.m5v__toc button:hover strong, .m5v__toc button.is-on strong { color: var(--red); }
.m5v__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; padding: 18px 20px 30px; overflow: auto; }
.m5v__th { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; }
.m5v__th span { display: block; width: 100%; aspect-ratio: 1200 / 1697; background: #1E1E21; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .18s, transform .18s; }
.m5v__th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m5v__th img:not([src]) { visibility: hidden; }
.m5v__th b { font-size: 11.5px; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; }
.m5v__th:hover span { outline-color: var(--red); transform: translateY(-2px); }

/* Zoom */
.m5v__zoom { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #0C0C0D; }
.m5v__zbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 56px; padding: 0 16px 0 22px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.m5v__zbar div { display: flex; gap: 6px; }
.m5v__zbar button { appearance: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 3px; background: none; cursor: pointer; font-size: 18px; font-weight: 700; }
.m5v__zbar button:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.m5v__zbar button:disabled { opacity: .35; cursor: default; }
.m5v__zsc { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.m5v__zin { margin: 18px auto 40px; transition: width .25s cubic-bezier(.2, .7, .2, 1); }
.m5v__zin img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }

/* Móvil */
@media (max-width: 899px) {
    .m5v__bar { height: 54px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 0 8px 0 14px; }
    .m5v__brand img { height: 22px; }
    .m5v__info { display: none; }
    .m5v__count { justify-self: center; }
    .m5v__tools > button span, .m5v__tools .m5v__dl span { display: none; }
    .m5v__tools > button, .m5v__tools > a { padding: 0 8px; height: 36px; }
    .m5v__tools .m5v__dl { padding: 0 10px; margin-left: 2px; }
    .m5v__fsb { display: none !important; }
    .m5v__stage { top: 54px; bottom: 58px; }
    .m5v__splash { height: auto; width: calc(100vw - 20px); max-height: calc(100vh - 54px - 58px - 28px); }
    .m5v__arw { display: none; }
    .m5v__foot { height: 58px; padding: 8px 14px 0; }
    .m5v__secs span { display: none; }
    .m5v__secs button.is-on { flex-grow: 9 !important; }
    .m5v__secs button.is-on span { display: block; }
    .m5v__hint { bottom: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .m5v__splash, .m5v__pg .m5v__pgi::before { animation: none !important; } }

@media (hover: none) { .m5v__a { pointer-events: none; } }

/* 1.1.51 · la imagen se reduce con buen filtro */
.m5v__img { image-rendering: auto; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
