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

/* Barra superior */
.ipv__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); }
.ipv__brand img { display: block; height: 30px; width: auto; }
.ipv__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; }
.ipv__info b { font-size: 16px; font-weight: 900; letter-spacing: -.4px; }
.ipv__info span { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.ipv__count { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.ipv__count b { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.ipv__count span { font-size: 12px; font-weight: 700; color: var(--mute); }
.ipv__count i { font-style: normal; }
.ipv__tools { display: flex; align-items: center; gap: 4px; }
.ipv__tools > button, .ipv__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; }
.ipv__tools > button:hover, .ipv__tools > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ipv__tools .ipv__dl { margin-left: 6px; padding: 0 15px; background: var(--red); color: #fff; }
.ipv__tools .ipv__dl:hover { background: var(--redd); }
.ipv__tools .ipv__x { width: 38px; justify-content: center; padding: 0; margin-left: 4px; border: 1px solid var(--line); }

/* Escenario */
.ipv__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%, #1C3B52 0%, #0F263A 62%, #0A1B29 100%); overflow: hidden; }
.ipv__book { position: relative; display: flex; align-items: center; justify-content: center; }
.ipv__flip { position: relative; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ipv__splash { display: block; height: calc(100vh - 62px - 70px - 68px); width: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); animation: ipvPulse 1.6s ease-in-out infinite; }
@keyframes ipvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.ipv__pg { background: #fff; overflow: hidden; }
.ipv__pgi { position: relative; width: 100%; height: 100%; background: #F2F2EF; }
.ipv__pg:not(.is-ready) .ipv__pgi::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #F2F2EF 30%, #FAFAF8 50%, #F2F2EF 70%); background-size: 300% 100%; animation: ipvShim 1.4s linear infinite; }
@keyframes ipvShim { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.ipv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.ipv__img:not([src]) { visibility: hidden; }
.ipv__lk { position: absolute; inset: 0; pointer-events: none; }
.ipv__a { position: absolute; pointer-events: auto; border-radius: 2px; transition: background .18s, box-shadow .18s; }
.ipv__a:hover { background: rgba(175, 181, 60, .12); box-shadow: inset 0 0 0 2px rgba(175, 181, 60, .7); }
.ipv__pn { display: none; }
.stf__parent { margin: 0 auto; }
.stf__item { box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.ipv__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; }
.ipv__arw:hover { background: var(--red); border-color: var(--red); transform: scale(1.05); }
.ipv__arw--p { left: 26px; } .ipv__arw--n { right: 26px; }
body.is-first .ipv__arw--p, body.is-last .ipv__arw--n, body.is-loading .ipv__arw { opacity: 0; pointer-events: none; }
.ipv__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; }
.ipv__hint.is-off, body.is-loading .ipv__hint { opacity: 0; }
.ipv__err { position: absolute; inset: auto 20px 40% 20px; text-align: center; font-size: 15px; }
.ipv__err a { color: var(--red); font-weight: 800; text-decoration: underline; }

/* Pie: deslizador y secciones */
.ipv__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); }
.ipv__scrub { position: relative; height: 18px; }
.ipv__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; }
.ipv__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); }
.ipv__scrub input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.ipv__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; }
.ipv__tip.is-on { display: flex; }
.ipv__tip img { width: 90px; height: auto; display: block; background: #F2F2EF; }
.ipv__tip b { font-size: 11px; font-weight: 800; white-space: nowrap; }
.ipv__secs { display: flex; gap: 3px; margin-top: 6px; }
.ipv__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; }
.ipv__secs i { display: block; height: 3px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.ipv__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; }
.ipv__secs button:hover i { background: rgba(255, 255, 255, .4); }
.ipv__secs button:hover span { color: #fff; }
.ipv__secs button.is-on i { background: var(--red); }
.ipv__secs button.is-on span { color: #fff; }

/* Paneles */
.ipv__scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.ipv__scrim.is-on { opacity: 1; }
.ipv__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); }
.ipv__panel.is-on { transform: none; }
.ipv__panel--grid { width: min(720px, 96vw); }
.ipv__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; }
.ipv__ph h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.6px; }
.ipv__ph button { appearance: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: none; cursor: pointer; font-size: 14px; }
.ipv__ph button:hover { background: var(--red); border-color: var(--red); }
.ipv__toc { list-style: none; margin: 0; padding: 6px 20px 30px; overflow: auto; }
.ipv__toc li + li { border-top: 1px solid var(--line); }
.ipv__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; }
.ipv__tt { display: block; aspect-ratio: 1200 / 1697; background: #222; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.ipv__tt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ipv__tt img:not([src]) { visibility: hidden; }
.ipv__tx b { display: block; font-size: 12px; font-weight: 900; color: var(--red); letter-spacing: .3px; }
.ipv__tx strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.ipv__tx small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--mute); }
.ipv__toc button:hover strong, .ipv__toc button.is-on strong { color: var(--red); }
.ipv__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; padding: 18px 20px 30px; overflow: auto; }
.ipv__th { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; }
.ipv__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; }
.ipv__th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ipv__th img:not([src]) { visibility: hidden; }
.ipv__th b { font-size: 11.5px; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; }
.ipv__th:hover span { outline-color: var(--red); transform: translateY(-2px); }

/* Zoom */
.ipv__zoom { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #0A1B29; }
.ipv__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; }
.ipv__zbar div { display: flex; gap: 6px; }
.ipv__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; }
.ipv__zbar button:hover:not(:disabled) { background: var(--red); border-color: var(--red); }
.ipv__zbar button:disabled { opacity: .35; cursor: default; }
.ipv__zsc { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.ipv__zin { margin: 18px auto 40px; transition: width .25s cubic-bezier(.2, .7, .2, 1); }
.ipv__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) {
    .ipv__bar { height: 54px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 0 8px 0 14px; }
    .ipv__brand img { height: 22px; }
    .ipv__info { display: none; }
    .ipv__count { justify-self: center; }
    .ipv__tools > button span, .ipv__tools .ipv__dl span { display: none; }
    .ipv__tools > button, .ipv__tools > a { padding: 0 8px; height: 36px; }
    .ipv__tools .ipv__dl { padding: 0 10px; margin-left: 2px; }
    .ipv__fsb { display: none !important; }
    .ipv__stage { top: 54px; bottom: 58px; }
    .ipv__splash { height: auto; width: calc(100vw - 20px); max-height: calc(100vh - 54px - 58px - 28px); }
    .ipv__arw { display: none; }
    .ipv__foot { height: 58px; padding: 8px 14px 0; }
    .ipv__secs span { display: none; }
    .ipv__secs button.is-on { flex-grow: 9 !important; }
    .ipv__secs button.is-on span { display: block; }
    .ipv__hint { bottom: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .ipv__splash, .ipv__pg .ipv__pgi::before { animation: none !important; } }

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

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

/* InfoPuertos: lima sobre marino; los rellenos lima llevan el texto en marino */
.ipv__tools .ipv__dl, .ipv__tools .ipv__dl:hover { color: #0E2436; }
.ipv__arw:hover, .ipv__ph button:hover, .ipv__zbar button:hover:not(:disabled) { color: #0E2436; }
.ipv__brand img { height: 22px; }
/* 2.283.2 · móvil: el logo de InfoPuertos es muy ancho y pisaba el contador */
@media (max-width: 899px) {
    .ipv__brand img { height: 13px; width: auto; max-width: 30vw; }
    .ipv__count b { font-size: 16px; }
    .ipv__count span { font-size: 11px; }
}
@media (max-width: 380px) { .ipv__brand img { height: 11px; } }
/* 2.283.2 · dentro de la ventana emergente de la web */
.ipv.is-popup .ipv__x { border-color: rgba(255, 255, 255, .28); }
@media (max-width: 899px) {
    .ipv__bar { gap: 8px; padding: 0 6px 0 12px; }
    .ipv__count { white-space: nowrap; gap: 3px; }
    .ipv__tools { gap: 0; }
    .ipv__tools > button, .ipv__tools > a { padding: 0 7px; }
    .ipv__tools .ipv__dl { margin-left: 4px; padding: 0 10px; }
    .ipv__tools .ipv__x { width: 36px; margin-left: 4px; }
}
@media (max-width: 420px) { .ipv__brand img { height: 11px; max-width: 27vw; } }
