/* 🖼 Visor de fotos INSPIA (paso 2) */
.visor-fotos {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 6, 23, .985);
    display: none;
    flex-direction: column;
    color: #e2e8f0;
    user-select: none;
    -webkit-user-select: none;
}

.vf-barra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vf-titulo { font-size: 15px; }
.vf-c { color: #94a3b8; font-size: 13px; }

.vf-acciones { display: flex; flex-wrap: wrap; gap: 6px; }

.vf-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.vf-btn:hover { background: #334155; color: #fff; }
.vf-cerrar { background: #7f1d1d; border-color: #991b1b; }

.vf-escena {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.vf-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .05s linear;
    touch-action: none;
    cursor: zoom-in;
}

.vf-cargando {
    position: absolute;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.vf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 70px;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, .7);
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.vf-prev { left: 8px; }
.vf-next { right: 8px; }

.vf-info {
    padding: 6px 12px;
    font-size: 13px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, .9);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.vf-tira {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 10px 10px;
    background: rgba(15, 23, 42, .9);
}

.vf-tira img {
    height: 54px;
    width: 76px;
    object-fit: cover;
    border-radius: 6px;
    opacity: .55;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.vf-tira img.activa { opacity: 1; border-color: #38bdf8; }

@media (max-width: 600px) {
    .vf-nav { width: 36px; height: 56px; font-size: 30px; }
    .vf-btn { padding: 4px 8px; font-size: 13px; }
    .vf-tira img { height: 44px; width: 62px; }
}
