/* Visor 360 propio de Cueva Miñambres */
:root { --gold: #d6a14b; --gold-2: #e9c27a; --cream: #f1e6cf; --cream-3: #a99a80; --wine: #7d221b; --wine-2: #9a2d23; --bg: #120c07; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--cream); overflow: hidden; overscroll-behavior: none; }
body { font-family: "EB Garamond", Garamond, Georgia, serif; -webkit-tap-highlight-color: transparent; }
.t360 { position: fixed; inset: 0; }
.t360-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.t360-canvas.is-drag { cursor: grabbing; }
.t360-fade { position: absolute; inset: 0; background: var(--bg); opacity: 1; pointer-events: none; transition: opacity .6s ease; }
.t360-fade.is-off { opacity: 0; }

.t360-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 28px; background: linear-gradient(180deg, rgba(10,6,3,.8), rgba(10,6,3,0)); pointer-events: none; }
.t360-top > * { pointer-events: auto; }
.t360-back { color: var(--gold-2); text-decoration: none; font-family: "Cinzel", Georgia, serif; font-size: .82rem; letter-spacing: .08em;
  padding: .5rem .9rem; border: 1px solid rgba(233,194,122,.45); border-radius: 999px; background: rgba(18,12,7,.55); backdrop-filter: blur(4px); white-space: nowrap; }
.t360-back:hover { background: rgba(125,34,27,.8); }
.t360-brand { flex: 1; text-align: center; font-family: "Cinzel", Georgia, serif; font-weight: 700; letter-spacing: .12em; color: var(--gold-2); font-size: .95rem; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.t360-brand em { font-style: normal; font-weight: 500; color: var(--cream); }
.t360-tools { display: flex; gap: 8px; }
.t360-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233,194,122,.45); background: rgba(18,12,7,.55); backdrop-filter: blur(4px);
  color: var(--cream); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.t360-btn:hover { background: rgba(125,34,27,.8); }
@media (max-width: 640px) { .t360-brand { display: none; } .t360-top { justify-content: space-between; } }

.t360-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem 1.4rem; border-radius: 14px; background: rgba(18,12,7,.6); backdrop-filter: blur(4px); font-family: "Cinzel", Georgia, serif; font-size: .9rem; letter-spacing: .06em;
  pointer-events: none; transition: opacity .6s ease; }
.t360-hint span { white-space: nowrap; }
.t360-hint svg { width: 46px; height: 46px; color: var(--gold-2); animation: t360-sway 1.8s ease-in-out infinite; }
.t360-hint.is-off { opacity: 0; }
@keyframes t360-sway { 0%,100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }

.t360-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: none; align-items: center; gap: .7rem; font-family: "Cinzel", Georgia, serif; font-size: .9rem; color: var(--cream); }
.t360-loading.is-on { display: flex; }
.t360-loading span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(233,194,122,.3); border-top-color: var(--gold-2); animation: t360-spin .8s linear infinite; }
@keyframes t360-spin { to { transform: rotate(360deg); } }

.t360-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(10,6,3,.88), rgba(10,6,3,0)); pointer-events: none; }
.t360-bottom > * { pointer-events: auto; }
.t360-kicker { margin: 0 16px; font-family: "Cinzel", Georgia, serif; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.t360-name { margin: .15rem 16px .8rem; font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.4rem); letter-spacing: .06em; color: var(--cream); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.t360-rooms { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.t360-rooms::-webkit-scrollbar { display: none; }
.t360-room { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--cream); cursor: pointer; font: inherit; }
.t360-room img { width: 104px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid rgba(233,194,122,.25); transition: border-color .2s, transform .2s; }
.t360-room span { font-family: "Cinzel", Georgia, serif; font-size: .7rem; letter-spacing: .05em; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t360-room:hover img { transform: translateY(-2px); border-color: rgba(233,194,122,.7); }
.t360-room[aria-current="true"] img { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(233,194,122,.35); }
.t360-room[aria-current="true"] span { color: var(--gold-2); }
.t360-noscript { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; }
