/* Visitas virtuales 360 — estilos del visor (público y editor). Prefijo vv-. */

.vv-visor {
    --vv-color: #6d3fd6;
    --vv-tinta: #1a1624;
    --vv-gris: #746d8a;
    --vv-cristal: rgba(16, 12, 28, 0.5);
    --vv-cristal-fuerte: rgba(16, 12, 28, 0.78);
    --vv-borde-cristal: rgba(255, 255, 255, 0.16);
    --vv-sombra: 0 10px 30px rgba(0, 0, 0, 0.28);
    --vv-seg-arriba: env(safe-area-inset-top, 0px);
    --vv-seg-abajo: env(safe-area-inset-bottom, 0px);
    --vv-seg-izq: env(safe-area-inset-left, 0px);
    --vv-seg-der: env(safe-area-inset-right, 0px);
    position: relative;
    overflow: hidden;
    background: #0d0b14;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}
/* Solo nuestros elementos: los botones de PSV usan content-box. */
.vv-visor [class^="vv-"], .vv-visor [class*=" vv-"],
.vv-visor [class^="vv-"]::before, .vv-visor [class*=" vv-"]::before,
.vv-visor [class^="vv-"]::after, .vv-visor [class*=" vv-"]::after { box-sizing: border-box; }
.vv-visor [hidden] { display: none !important; }
.vv-visor .psv-container { background: #0d0b14; }
.vv-visor button { font: inherit; }

/* ----------------------------------------------------------------- cristal */
.vv-cabecera .vv-titulos,
.vv-boton-redondo,
.vv-panel,
.vv-pista,
.vv-pie,
.vv-mensaje {
    background: var(--vv-cristal);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--vv-borde-cristal);
    color: #fff;
    box-shadow: var(--vv-sombra);
}

/* ----------------------------------------------------------------- cabecera */
.vv-cabecera {
    position: absolute;
    z-index: 30;
    top: calc(12px + var(--vv-seg-arriba));
    left: calc(12px + var(--vv-seg-izq));
    right: calc(12px + var(--vv-seg-der));
    display: flex;
    align-items: flex-start;
    gap: 10px;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.vv-cabecera > * { pointer-events: auto; }
.vv-marca {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 58px;
    max-width: 180px;
    padding: 8px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--vv-sombra);
    text-decoration: none;
    color: var(--vv-tinta);
    transition: transform .2s ease;
}
a.vv-marca:hover { transform: translateY(-1px); }
.vv-logo { display: block; max-height: 40px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.vv-marca-nombre { font-weight: 700; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vv-titulos {
    min-width: 0;
    max-width: min(520px, 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 12px 10px 14px;
    border-radius: 16px;
}
.vv-titulo {
    margin: 0;
    max-width: 100%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.vv-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    height: 30px;
    padding: 0 8px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.vv-chip:hover:not(:disabled) { background: rgba(255, 255, 255, 0.22); }
.vv-chip:focus-visible, .vv-boton-redondo:focus-visible, .vv-cerrar:focus-visible, .vv-estancia:focus-visible,
.vv-enlace:focus-visible, .vv-contacto-accion:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vv-chip:disabled { cursor: default; padding-right: 12px; }
.vv-chip-punto {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vv-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vv-color) 35%, transparent);
}
.vv-chip-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-chip-contador { flex: 0 0 auto; color: rgba(255, 255, 255, 0.62); font-weight: 500; font-size: 12px; }
.vv-chip-contador:empty { display: none; }
.vv-chip-flecha { flex: 0 0 auto; display: flex; width: 16px; height: 16px; opacity: .8; transition: transform .2s ease; }
.vv-chip-flecha svg { width: 100%; height: 100%; }
.vv-chip[aria-expanded="true"] .vv-chip-flecha { transform: rotate(180deg); }
.vv-chip:disabled .vv-chip-flecha { display: none; }

.vv-boton-redondo {
    flex: 0 0 auto;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.vv-boton-redondo:hover, .vv-boton-redondo[aria-expanded="true"] { background: var(--vv-color); border-color: transparent; }
.vv-boton-redondo svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------- paneles */
.vv-panel {
    position: absolute;
    z-index: 35;
    top: calc(82px + var(--vv-seg-arriba));
    width: min(340px, calc(100% - 24px));
    max-height: calc(100% - 82px - 72px - var(--vv-seg-arriba) - var(--vv-seg-abajo));
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--vv-cristal-fuerte);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transform-origin: top left;
    transition: opacity .2s ease, transform .2s ease;
}
.vv-panel.vv-visible { opacity: 1; transform: none; }
.vv-panel-estancias { left: calc(12px + var(--vv-seg-izq)); }
.vv-panel-contacto { right: calc(12px + var(--vv-seg-der)); transform-origin: top right; width: min(300px, calc(100% - 24px)); }
.vv-panel-cabecera {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px 8px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}
.vv-panel-cabecera span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-cerrar {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.vv-cerrar:hover { background: rgba(255, 255, 255, 0.22); }
.vv-cerrar svg { width: 18px; height: 18px; }
.vv-lista-estancias {
    list-style: none;
    margin: 0;
    padding: 4px 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.vv-estancia {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    margin: 2px 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.vv-estancia:hover { background: rgba(255, 255, 255, 0.08); }
.vv-estancia img {
    flex: 0 0 auto;
    width: 76px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}
.vv-estancia-nombre { font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-estancia.vv-activa { background: color-mix(in srgb, var(--vv-color) 30%, transparent); border-color: color-mix(in srgb, var(--vv-color) 75%, #fff); }

.vv-contacto-acciones { display: flex; flex-direction: column; gap: 6px; padding: 4px 10px 12px; }
.vv-contacto-accion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    transition: background .15s ease;
}
.vv-contacto-accion:hover { background: rgba(255, 255, 255, 0.15); }
.vv-contacto-icono {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vv-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vv-contacto-icono svg { width: 18px; height: 18px; }
.vv-contacto-texto { display: flex; flex-direction: column; min-width: 0; }
.vv-contacto-texto strong { font-size: 14px; font-weight: 700; }
.vv-contacto-texto small { font-size: 12px; color: rgba(255, 255, 255, 0.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------------- pasos (enlaces) */
.vv-visor .psv-virtual-tour-arrows { filter: none; }
.vv-enlace {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: #fff;
    /* ¡No usar transform aquí! Lo pone el visor para posicionar el elemento. */
}
.vv-enlace-pulso,
.vv-enlace-circulo {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
}
.vv-enlace-pulso {
    border: 2px solid var(--vv-color);
    background: color-mix(in srgb, var(--vv-color) 25%, transparent);
    animation: vv-pulso 2.2s cubic-bezier(.2, .6, .35, 1) infinite;
    pointer-events: none;
}
.vv-enlace-circulo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 2.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--vv-color) 55%, transparent), 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform .2s ease, background .2s ease;
}
.vv-enlace-circulo svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.vv-enlace:hover .vv-enlace-circulo,
.vv-enlace:focus-visible .vv-enlace-circulo { transform: scale(1.12); background: var(--vv-color); }
.vv-enlace-etiqueta {
    position: absolute;
    top: calc(100% - 4px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 180px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 12, 28, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.vv-enlace.vv-resaltado .vv-enlace-circulo,
.vv-info.vv-resaltado .vv-info-circulo {
    background: var(--vv-color);
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--vv-color), 0 8px 20px rgba(0, 0, 0, .4);
}

/* ----------------------------------------------------------------- puntos de información */
.vv-visor .vv-marcador-info { cursor: pointer; }
.vv-info { position: relative; display: block; width: 44px; height: 44px; color: #fff; }
.vv-info-pulso,
.vv-info-circulo { position: absolute; inset: 7px; border-radius: 50%; }
.vv-info-pulso {
    background: rgba(255, 255, 255, 0.5);
    animation: vv-pulso 2.6s cubic-bezier(.2, .6, .35, 1) infinite;
    animation-delay: .6s;
}
.vv-info-circulo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vv-color);
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform .2s ease;
}
.vv-info-circulo svg { width: 20px; height: 20px; }
.vv-marcador-info:hover .vv-info-circulo { transform: scale(1.12); }

@keyframes vv-pulso {
    0% { transform: scale(1); opacity: .85; }
    70%, 100% { transform: scale(1.75); opacity: 0; }
}

/* Tarjeta de información */
.vv-info-tarjeta {
    position: absolute;
    z-index: 40;
    left: 50%;
    bottom: calc(58px + var(--vv-seg-abajo));
    width: min(400px, calc(100% - 24px));
    max-height: min(52vh, calc(100% - 160px));
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--vv-tinta);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .22s ease, transform .22s ease;
    overflow: hidden;
}
.vv-info-tarjeta.vv-visible { opacity: 1; transform: translate(-50%, 0); }
.vv-info-cab { display: flex; align-items: flex-start; gap: 12px; padding: 16px 12px 8px 16px; }
.vv-info-icono {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--vv-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vv-info-icono svg { width: 20px; height: 20px; }
.vv-info-titulo { flex: 1 1 auto; margin: 6px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.vv-info-tarjeta .vv-cerrar { background: #f1eff6; color: var(--vv-tinta); }
.vv-info-tarjeta .vv-cerrar:hover { background: #e6e4ee; }
.vv-info-tarjeta .vv-cerrar:focus-visible { outline-color: var(--vv-color); }
.vv-info-texto {
    padding: 2px 18px 18px 62px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #3c3650;
    white-space: pre-line;
    overflow-wrap: anywhere;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Tooltips de PSV */
.vv-visor .psv-tooltip {
    background: rgba(16, 12, 28, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    max-width: 240px;
}
.vv-visor .psv-tooltip-content { font: 600 13px/1.35 "Plus Jakarta Sans", system-ui, sans-serif; text-shadow: none; padding: .55em .9em; }
.vv-visor .psv-tooltip-arrow { display: none; }
.vv-visor .psv-virtual-tour-tooltip .psv-tooltip-content { padding: 6px; }
.vv-tt-enlace { display: flex; flex-direction: column; gap: 6px; }
.vv-visor .psv-virtual-tour-tooltip .vv-tt-enlace img { display: block; width: 200px; height: 100px; margin: 0; object-fit: cover; border-radius: 8px; }
.vv-tt-enlace span { padding: 0 4px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* ----------------------------------------------------------------- barra inferior de PSV */
.vv-visor .psv-navbar {
    height: 44px;
    justify-content: center;
    background: linear-gradient(to top, rgba(10, 8, 18, 0.72), rgba(10, 8, 18, 0.35));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.vv-visor .psv-button { color: rgba(255, 255, 255, 0.86); padding: 12px; border-radius: 10px; }
.vv-visor .psv-button--active { color: #fff; background: color-mix(in srgb, var(--vv-color) 70%, transparent); }
.vv-visor .psv-zoom-range-line { background: rgba(255, 255, 255, 0.4); }
.vv-visor .psv-zoom-range-handle { background: #fff; border-color: var(--vv-color); }
.vv-modo-publico .psv-navbar { bottom: calc(-44px - var(--vv-seg-abajo)); }
.vv-modo-publico .psv-navbar--open { bottom: var(--vv-seg-abajo); }
.vv-modo-publico .psv--has-navbar .psv-gallery { bottom: calc(44px + var(--vv-seg-abajo)); transform: translateY(calc(100% + 44px + var(--vv-seg-abajo))); }
.vv-modo-publico .psv--has-navbar .psv-map--bottom-left,
.vv-modo-publico .psv--has-navbar .psv-map--bottom-right { bottom: calc(44px + var(--vv-seg-abajo)); }
.vv-visor .psv-map { margin: 12px calc(12px + var(--vv-seg-izq)); }
.vv-visor .psv-map__container { background: rgba(16, 12, 28, 0.7); }
.vv-visor .psv-gallery { background: rgba(16, 12, 28, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 0; }
.vv-visor .psv-gallery-item-title { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 600; }
.vv-visor .psv-loader { color: var(--vv-color); }
.vv-visor .psv-loader-text { color: #fff; font: 600 13px "Plus Jakarta Sans", system-ui, sans-serif; }
.vv-visor .psv-overlay { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

/* ----------------------------------------------------------------- pie */
/* Va dentro de la franja de la barra inferior (a la derecha, donde no hay botones):
   ahí nunca hay pasos ni puntos de información, así que no puede tapar ninguno.
   z-index por encima de la barra de PSV (90) y por debajo de la tarjeta de info (95). */
.vv-pie {
    position: absolute;
    z-index: 92;
    right: calc(12px + var(--vv-seg-der));
    bottom: calc(8px + var(--vv-seg-abajo));
    height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    opacity: .78;
    box-shadow: none;
    transition: opacity .2s ease;
}
.vv-pie:hover { opacity: 1; }
.vv-pie-icono { display: flex; width: 14px; height: 14px; }
.vv-pie-icono svg { width: 100%; height: 100%; }
.vv-galeria-abierta .vv-pie { opacity: 0; pointer-events: none; }
/* Sin barra inferior visible (cargando) el pie no flota sobre el panorama. */
.vv-modo-publico:not(:has(.psv-navbar--open)) .vv-pie { opacity: 0; pointer-events: none; }
.vv-galeria-abierta .vv-info-tarjeta { bottom: calc(160px + var(--vv-seg-abajo)); }

/* ----------------------------------------------------------------- pantalla de carga */
.vv-splash {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0b14;
    color: #fff;
    overflow: hidden;
    transition: opacity .6s ease, visibility .6s;
}
.vv-splash.vv-oculto { opacity: 0; visibility: hidden; pointer-events: none; }
.vv-splash-fondo {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(26px) brightness(.5) saturate(1.2);
    transform: scale(1.08);
}
.vv-splash-centro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    max-width: 520px;
}
.vv-splash-logo {
    max-height: 56px;
    max-width: 200px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--vv-sombra);
    object-fit: contain;
}
.vv-splash-titulo { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.vv-splash-texto { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.vv-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--vv-color);
    border-right-color: #fff;
    animation: vv-girar .9s linear infinite;
}
@keyframes vv-girar { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- pista inicial */
.vv-pista {
    position: absolute;
    z-index: 26;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.96);
    transition: opacity .4s ease, transform .4s ease;
}
.vv-pista.vv-visible { opacity: 1; transform: translate(-50%, -50%); }
.vv-pista.vv-oculto { opacity: 0; }
.vv-pista-icono { display: flex; width: 26px; height: 26px; animation: vv-mano 1.8s ease-in-out infinite; }
.vv-pista-icono svg { width: 100%; height: 100%; }
@keyframes vv-mano {
    0%, 100% { transform: translateX(-5px) rotate(-6deg); }
    50% { transform: translateX(5px) rotate(6deg); }
}

/* ----------------------------------------------------------------- mensajes */
.vv-mensaje {
    position: absolute;
    z-index: 45;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100% - 32px));
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    background: var(--vv-cristal-fuerte);
}
.vv-mensaje-icono {
    display: flex;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d3fd6, #a084f1 45%, #f273ba);
}
.vv-mensaje-icono svg { width: 100%; height: 100%; }
.vv-mensaje p { margin: 0; font-size: 15px; line-height: 1.5; }
.vv-modo-editor .vv-mensaje { display: none; }

/* ----------------------------------------------------------------- editor */
.vv-modo-editor .psv-navbar { height: 40px; }
.vv-modo-editor .vv-enlace-etiqueta { font-size: 11px; }

/* ----------------------------------------------------------------- móvil */
@media (max-width: 640px) {
    .vv-cabecera { top: calc(8px + var(--vv-seg-arriba)); left: calc(8px + var(--vv-seg-izq)); right: calc(8px + var(--vv-seg-der)); gap: 8px; }
    .vv-marca { height: 50px; max-width: 96px; padding: 6px 10px; border-radius: 14px; }
    .vv-logo { max-height: 36px; max-width: 76px; }
    .vv-marca-nombre { font-size: 12px; }
    .vv-titulos { padding: 7px 10px 8px 12px; border-radius: 14px; gap: 5px; }
    .vv-titulo { font-size: 14px; }
    .vv-chip { height: 28px; font-size: 12.5px; }
    .vv-boton-redondo { width: 42px; height: 42px; }
    .vv-panel { top: calc(72px + var(--vv-seg-arriba)); max-height: calc(100% - 72px - 64px - var(--vv-seg-arriba) - var(--vv-seg-abajo)); }
    .vv-panel-estancias, .vv-panel-contacto { left: calc(8px + var(--vv-seg-izq)); right: calc(8px + var(--vv-seg-der)); width: auto; }
    .vv-info-tarjeta {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 60%;
        border-radius: 22px 22px 0 0;
        background: #fff;
        padding-bottom: var(--vv-seg-abajo);
        transform: translateY(100%);
        z-index: 95;
    }
    .vv-info-tarjeta.vv-visible { transform: none; }
    .vv-galeria-abierta .vv-info-tarjeta { bottom: 0; }
    .vv-info-texto { padding-left: 18px; }
    .vv-pie { right: calc(8px + var(--vv-seg-der)); }
    .vv-splash-titulo { font-size: 20px; }
    .vv-enlace-etiqueta { max-width: 130px; font-size: 11px; }
}
/* Pantallas estrechas: el pie se queda en un icono (el texto sigue en title/aria-label). */
@media (max-width: 760px) {
    .vv-pie { width: 28px; padding: 0; justify-content: center; opacity: .7; }
    .vv-pie-icono { width: 16px; height: 16px; }
    .vv-pie-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-height: 460px) and (orientation: landscape) {
    .vv-marca { height: 44px; }
    .vv-logo { max-height: 30px; }
    .vv-titulos { flex-direction: row; align-items: center; }
    .vv-panel { top: calc(62px + var(--vv-seg-arriba)); }
}

/* Pantalla completa emulada (iPhone) y real: el contenedor ocupa todo. */
.vv-visor.psv-fullscreen-emulation { position: fixed !important; inset: 0; width: 100% !important; height: 100% !important; z-index: 2147483000; }

@media (prefers-reduced-motion: reduce) {
    .vv-enlace-pulso, .vv-info-pulso, .vv-pista-icono, .vv-spinner { animation: none; }
    .vv-enlace-pulso, .vv-info-pulso { opacity: 0; }
    .vv-panel, .vv-info-tarjeta, .vv-splash, .vv-pista { transition: none; }
}

/* ------------------------------------------------- enlace de prueba (Freemium) */
/* Marca de agua sobre el panorama: no captura clics (se puede seguir navegando). */
.vv-prueba-marca {
    position: absolute;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transform: rotate(-24deg) scale(1.4);
}
.vv-prueba-marca span {
    font: 800 clamp(20px, 4.4vw, 44px)/1 "Plus Jakarta Sans", system-ui, sans-serif;
    letter-spacing: .08em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.16);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    user-select: none;
}
.vv-prueba-banda {
    position: absolute;
    z-index: 96;
    left: 50%;
    bottom: calc(52px + var(--vv-seg-abajo));
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d3fd6, #a084f1 55%, #f273ba);
    color: #fff;
    font: 600 12px/1.35 "Plus Jakarta Sans", system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(109, 63, 214, 0.4);
}
.vv-prueba-caducada {
    position: absolute;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: #fff;
    background: radial-gradient(1200px 600px at 20% 0%, #2a1d4f 0%, #120f1c 60%);
    font: 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
}
.vv-prueba-caducada strong { font-size: 20px; }
.vv-prueba-caducada span { color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------- modo paseo (joystick / teclado) */
/* Joystick abajo en el centro, encima de la barra de PSV (44 px) y del área segura.
   Solo el mando captura toques: el resto del contenedor deja pasar los clics a los pasos. */
.vv-paseo {
    --vv-paseo-tam: 112px;
    --vv-paseo-pomo: 48px;
    position: absolute;
    z-index: 91;
    left: 50%;
    bottom: calc(56px + var(--vv-seg-abajo));
    width: var(--vv-paseo-tam);
    height: var(--vv-paseo-tam);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s, bottom .25s ease;
}
.vv-paseo.vv-paseo-listo { opacity: 1; visibility: visible; }
.vv-paseo:not(.vv-paseo-tactil) { display: none; }
/* Galería abierta, cajón de la sala abierto o visitante de una visita guiada: sin joystick. */
.vv-galeria-abierta .vv-paseo,
.vs-con-cajon .vv-paseo,
.vv-con-sala:not(.vs-anfitrion) .vv-paseo,
.vv-con-sala:not(.vs-anfitrion) .vv-paseo-teclas { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
/* Visita guiada (consultor): por encima de los controles y del aviso «Estás guiando la visita». */
.vs-activa .vv-paseo { bottom: calc(var(--vs-abajo, 14px) + 110px); }
/* Enlace de prueba: la banda inferior ocupa ese hueco. */
.vv-visor:has(.vv-prueba-banda) .vv-paseo { bottom: calc(92px + var(--vv-seg-abajo)); }

.vv-paseo-mando {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    color: rgba(255, 255, 255, 0.72);
    background: radial-gradient(circle at 50% 50%, rgba(16, 12, 28, 0.18) 0 38%, rgba(16, 12, 28, 0.36) 70%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22), inset 0 0 0 6px rgba(255, 255, 255, 0.04);
    opacity: .82;
    transition: opacity .2s ease, background-color .2s ease, transform .2s ease;
}
.vv-paseo-pulsado .vv-paseo-mando { opacity: 1; background-color: rgba(16, 12, 28, 0.2); }
.vv-paseo-aro { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; }
.vv-paseo-avanza .vv-paseo-aro path:first-child { stroke: #fff; opacity: 1; }
.vv-paseo-pomo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--vv-paseo-pomo);
    height: var(--vv-paseo-pomo);
    margin: calc(var(--vv-paseo-pomo) / -2) 0 0 calc(var(--vv-paseo-pomo) / -2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vv-color);
    background: radial-gradient(circle at 35% 30%, #ffffff, rgba(255, 255, 255, 0.86) 70%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), 0 0 0 3px color-mix(in srgb, var(--vv-color) 35%, transparent);
    pointer-events: none;
    will-change: transform;
    transition: transform .22s cubic-bezier(.2, .9, .3, 1.3), box-shadow .2s ease;
}
.vv-paseo-pulsado .vv-paseo-pomo { transition: box-shadow .2s ease; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36), 0 0 0 5px color-mix(in srgb, var(--vv-color) 55%, transparent); }
.vv-paseo-avanza .vv-paseo-pomo, .vv-paseo-retrocede .vv-paseo-pomo { color: #fff; background: var(--vv-color); }
.vv-paseo-pomo-icono { display: flex; width: 22px; height: 22px; }
.vv-paseo-pomo-icono svg { width: 100%; height: 100%; }
.vv-paseo-mando.vv-paseo-no { animation: vv-paseo-no .38s ease; }
@keyframes vv-paseo-no {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    45% { transform: translateX(5px); }
    70% { transform: translateX(-3px); }
}

/* Botón pequeño para ocultar el joystick y botón para recuperarlo. */
.vv-paseo-ocultar, .vv-paseo-mostrar {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: var(--vv-cristal);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--vv-borde-cristal);
}
.vv-paseo-ocultar { top: -2px; right: -6px; width: 26px; height: 26px; opacity: .8; }
.vv-paseo-ocultar svg { width: 13px; height: 13px; }
/* Área táctil mayor que el botón visible. */
.vv-paseo-ocultar::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.vv-paseo-mostrar { display: none; left: 50%; bottom: 0; width: 44px; height: 44px; margin-left: -22px; opacity: .85; }
.vv-paseo-mostrar svg { width: 22px; height: 22px; }
.vv-paseo-oculto .vv-paseo-mando, .vv-paseo-oculto .vv-paseo-ocultar, .vv-paseo-oculto .vv-paseo-pista-tactil { display: none; }
.vv-paseo-oculto .vv-paseo-mostrar { display: flex; }

/* Pista la primera vez (móvil): encima del joystick. */
.vv-paseo-pista-tactil {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: var(--vv-cristal-fuerte);
    border: 1px solid var(--vv-borde-cristal);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity .3s ease, transform .3s ease;
}
.vv-paseo-pista-tactil.vv-visible { opacity: 1; transform: translate(-50%, 0); }

/* Pista de teclado (ordenador, solo la primera vez). */
.vv-paseo-teclas {
    position: absolute;
    z-index: 91;
    left: 50%;
    bottom: calc(58px + var(--vv-seg-abajo));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    max-width: calc(100% - 24px);
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: var(--vv-cristal-fuerte);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--vv-borde-cristal);
    box-shadow: var(--vv-sombra);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .35s ease, transform .35s ease;
}
.vv-paseo-teclas.vv-visible { opacity: 1; transform: translate(-50%, 0); }
.vs-activa .vv-paseo-teclas { bottom: calc(var(--vs-abajo, 14px) + 110px); }
.vv-galeria-abierta .vv-paseo-teclas { opacity: 0; }
.vv-paseo-teclas-grupo { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.vv-paseo-teclas-grupo span { margin-left: 3px; color: rgba(255, 255, 255, 0.86); }
.vv-paseo-teclas kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 6px;
    font: 700 11.5px/1 "Plus Jakarta Sans", system-ui, sans-serif;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom-width: 2px;
}

/* Aviso «No hay paso en esa dirección»: bajo el centro de la vista. */
.vv-paseo-aviso {
    position: absolute;
    z-index: 93;
    left: 50%;
    top: 62%;
    max-width: calc(100% - 32px);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: var(--vv-cristal-fuerte);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--vv-borde-cristal);
    box-shadow: var(--vv-sombra);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity .25s ease, transform .25s ease;
}
.vv-paseo-aviso.vv-visible { opacity: 1; transform: translate(-50%, 0); }

/* Durante el paso: viñeta y un ligero desenfoque de movimiento sobre el panorama. */
.vv-paseo-velo {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(6, 4, 12, 0.5) 100%);
    opacity: 0;
    transition: opacity .28s ease;
}
.vv-paseo-movimiento .vv-paseo-velo { opacity: 1; }
.vv-paseo-movimiento .psv-canvas-container { filter: blur(1.4px); transition: filter .15s ease; }
.vv-visor .psv-canvas-container { transition: filter .25s ease; }

@media (max-height: 460px) and (orientation: landscape) {
    .vv-paseo { --vv-paseo-tam: 96px; --vv-paseo-pomo: 42px; bottom: calc(50px + var(--vv-seg-abajo)); }
}
@media (prefers-reduced-motion: reduce) {
    .vv-paseo-mando.vv-paseo-no { animation: none; }
    .vv-paseo-pomo, .vv-paseo, .vv-paseo-teclas, .vv-paseo-aviso, .vv-paseo-pista-tactil { transition: none; }
    .vv-paseo-movimiento .psv-canvas-container { filter: none; }
    .vv-paseo-velo { display: none; }
}
