/* Visor 3D de las colgantes (comun/visor-3d.js). Solo tokens del sitio: sin colores nuevos.
   Aquí solo lo que hace falta antes de pulsar «3D». Lo de dentro del visor (estado, vistas, realidad aumentada,
   fondo y transiciones) está en visor-3d-vista.css, que el componente pide al abrir. */
.tc-visor-3d { position: relative; min-width: 0; overflow: hidden; border-radius: var(--r); color: var(--blanco); }
.tc-visor-3d[hidden] { display: none; }

/* Galería de la ficha: el visor ocupa exactamente la celda del escenario de fotos. */
.tc-gallery:has(> .tc-visor-3d) { display: grid; grid-template-columns: minmax(0, 1fr); }
.tc-gallery:has(> .tc-visor-3d) > .tc-gallery-stage, .tc-gallery > .tc-visor-3d { grid-area: 1 / 1; }
/* Atajo «Mírala en 3D» arriba a la izquierda de la foto: a 1440×900 el pie de la foto queda bajo el pliegue. */
.tc-gallery > .tc-ver-3d { grid-area: 1 / 1; align-self: start; justify-self: start; z-index: 1; margin: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px; background: var(--blanco); color: var(--negro); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.tc-gallery > .tc-ver-3d:focus-visible { outline: 2px solid var(--blanco); outline-offset: 3px; }
.tc-gallery > .tc-ver-3d[hidden], .tc-gallery.con-3d > .tc-ver-3d { display: none; }
.tc-gallery-controls [data-visor-3d-abre] { display: grid; place-items: center; font: inherit; font-weight: 500; }
.tc-gallery-controls [data-visor-3d-abre][aria-pressed="true"] { color: var(--negro); }
.tc-gallery-controls [data-photo="config"] img { object-fit: contain; border-radius: 8px; }
.tc-gallery-controls:has([data-visor-3d-abre]) button { max-width: calc((100% - 56px) / 8); }
