:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  accent-color: #38bdf8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  position: relative;
}

body {
  background: radial-gradient(circle at top, #0f172a 0%, #020617 55%);
}

button {
  font: inherit;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.page-shell * {
  pointer-events: auto;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px 28px 14px;
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.75rem);
}

.page-header p {
  margin: 6px 0 0;
  max-width: 520px;
  color: #cbd5e1;
}

.location-card {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.location-card strong {
  font-size: 1.05rem;
}

.viewer-shell {
  position: relative;
  flex: 1;
  min-height: 72vh;
  margin: 0 24px 24px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.35);
  background: #020617;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: 0;
  background: #020617;
  touch-action: none;
}

.hotspot {
  z-index: 6;
}

.viewer-footer {
  position: fixed;
  left: 24px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
  z-index: 6;
}

.loading-notice {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  font-size: 1rem;
  text-align: center;
  z-index: 3;
}

.hotspot {
  /* position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  min-width: 180px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.96);
  color: #020617;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25); */


  /* display:flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:30px;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(8px);
  color:white;
  font-family:Arial;
  font-size:15px;
  font-weight:bold;
  cursor:pointer;
  transition:.3s;
  border:2px solid rgba(255,255,255,.2);
  box-shadow:0 5px 18px rgba(0,0,0,.3);
  transform:translate(-50%,-50%);
  position:fixed; */

  position:absolute;
  will-change: transform;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:48px;
  height:48px;
  overflow:hidden;
  padding:0 14px;
  border-radius:30px;
  background:rgba(0,80,180,.90);
  color:white;
  cursor:pointer;
  transform:translate(-50%,-50%);
  border:2px solid white;
  box-shadow:0 6px 20px rgba(0,0,0,.30);
  white-space:nowrap;

  transition:
    width .35s ease,
    background-color .35s ease,
    transform .25s ease,
    box-shadow .25s ease,
    opacity .25s ease;
}

.hotspot .icon{
  font-size:22px;
  min-width:22px;
  text-align:center;
}

.hotspot .texto{
  opacity:0;
  transition:opacity .25s;
  font-size:15px;
  font-weight:bold;
  margin-left:4px;
}


.hotspot:hover{
  /* transform:translate(-50%,-50%) scale(1.12);
  box-shadow:0 0 20px #00bfff; */
  width:190px;
  background:#0077ff;
}

.hotspot:hover .texto{
  opacity:1;
}


/* .hotspot:hover, */
.hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  outline: none;
  box-shadow: 0 24px 48px rgba(56, 189, 248, 0.35);
}

/* .hotspot{
  animation:pulse 2s infinite;
} */

.viewer-footer {
  position: fixed;
  left: 24px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
  z-index: 3;
}

.viewer-footer code {
  color: #ffffff;
  background: rgba(148, 163, 184, 0.14);
  padding: 4px 8px;
  border-radius: 12px;
}

.video-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.76);
  z-index: 10000;
  padding: 20px;
}

.video-overlay.active {
  display: flex;
}

.video-card {
  position: relative;
  width: min(960px, calc(100% - 40px));
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #020617;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.video-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .page-header {
    padding: 18px 18px 12px;
  }

  .viewer-shell {
    margin: 0 16px 20px;
    min-height: 64vh;
  }

  .hotspot {
    min-width: 160px;
    padding: 12px 18px;
  }
}

@keyframes pulse{

0%{
box-shadow:0 0 0 0 rgba(0,191,255,.7);
}

70%{
box-shadow:0 0 0 18px rgba(0,191,255,0);
}

100%{
box-shadow:0 0 0 0 rgba(0,191,255,0);
}

}


.gyro-button{

    position:fixed;

    right:20px;

    bottom:20px;

    z-index:1000;

    border:none;

    border-radius:30px;

    padding:12px 20px;

    font-size:15px;

    background:#0b84ff;

    color:white;

    cursor:pointer;

    box-shadow:0 5px 18px rgba(0,0,0,.35);

}

.gyro-button:hover{

    background:#0067d6;

}
