/* Visor de las visitas en 360º (visor360.js). Colores de la web de turismo. */
html, body { margin: 0; height: 100%; background: #1b1d4f; overflow: hidden; font-family: Montserrat, Arial, sans-serif; }
#visor360 { position: relative; width: 100%; height: 100%; outline: none; cursor: grab; }
#visor360:active { cursor: grabbing; }
#visor360:focus-visible { box-shadow: inset 0 0 0 3px #e75422; }

.visor360__barra { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(27, 29, 79, .78); z-index: 10; }
.visor360__boton { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.visor360__boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visor360__boton:hover, .visor360__boton:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.visor360__boton[aria-pressed="true"] { background: #e75422; }
.visor360__boton[hidden] { display: none; }

.visor360__flecha, .visor360__foto { position: relative; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; padding: 0; border: 3px solid #fff; border-radius: 50%; background: rgba(231, 84, 34, .9); color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform .15s; }
.visor360__flecha:hover, .visor360__flecha:focus-visible, .visor360__foto:hover, .visor360__foto:focus-visible { transform: scale(1.12); outline: none; }
.visor360__flecha svg, .visor360__foto svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.visor360__foto { background: rgba(27, 29, 79, .9); }
.visor360__foto svg { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.visor360__etiqueta { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 6px; background: rgba(27, 29, 79, .85); font-size: 13px; font-weight: 600; pointer-events: none; }

.visor360__capa { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: rgba(10, 10, 30, .88); color: #fff; }
.visor360__capa img { max-width: 100%; max-height: calc(100% - 60px); object-fit: contain; border-radius: 6px; }
.visor360__capa p { margin: 0; font-weight: 600; }
.visor360__cerrar { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .15); }
.visor360__error { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) { .visor360__flecha, .visor360__foto { transition: none; } }
