/* ============================================================
   Imágenes ampliables (busae_pic) y visor a pantalla completa.
   Ver assets/js/visor.js y partials/media.php.
   ============================================================ */

.busae_lupa {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: inherit;
}
.busae_lupa picture,
.busae_lupa img {
    display: block;
    width: 100%;
    height: auto;
}
.busae_lupa img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.busae_lupa:hover img { transform: scale(1.025); }
.busae_lupa:focus-visible { outline: 3px solid #F0884A; outline-offset: 3px; }

.busae_lupa_ico {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(8, 32, 48, .62);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
    transition: opacity .2s ease, background .2s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.busae_lupa_ico svg { width: 15px; height: 15px; fill: #fff; }
.busae_lupa:hover .busae_lupa_ico { opacity: 1; background: rgba(8, 32, 48, .85); }

body.busae_visor_abierto { overflow: hidden; }

.busae_visor {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: #08202f;
    overflow: hidden;
}
.busae_visor::backdrop { background: rgba(6, 22, 33, .92); }
.busae_visor_marco {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: calc(58px + env(safe-area-inset-top)) 14px calc(68px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}
.busae_visor_marco picture { display: block; margin: auto; }
.busae_visor_marco img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 126px);
    width: auto;
    height: auto;
    border-radius: 10px;
    cursor: zoom-in;
}
.busae_visor.mas .busae_visor_marco { display: block; }
.busae_visor.mas .busae_visor_marco img { max-width: none; max-height: none; cursor: zoom-out; }
.busae_visor_cerrar {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.busae_visor_cerrar:hover { background: rgba(255, 255, 255, .3); }
.busae_visor_pie {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
    font-size: 14px;
    line-height: 1.45;
    color: #cfe0ec;
    text-align: center;
    background: linear-gradient(180deg, rgba(8, 32, 47, 0), rgba(8, 32, 47, .9));
}

