/* Layout: full-screen 3D hall; UI floats as thin overlays (top bar, bottom directory, side panel). */
:root {
  --hall: #12141a;        /* recinto de noche */
  --ink: #f3efe6;         /* texto principal, cálido */
  --muted: #a7a9b4;
  --glass: rgba(20, 22, 30, 0.78);
  --line: rgba(243, 239, 230, 0.14);
  --amber: #f2b544;       /* luz de reflectores, acento */
  --live: #3ccf8e;        /* estado "en línea" */
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--hall);
  color: var(--ink);
  font: 15px/1.5 var(--f-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#scene { position: fixed; inset: 0; touch-action: none; cursor: grab; }
#scene.dragging { cursor: grabbing; }
#scene.hovering { cursor: pointer; }
#scene canvas { display: block; }

/* Pins flotando sobre cada stand */
#pins { position: fixed; inset: 0; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 13px/1 var(--f-body);
  white-space: nowrap;
  transform: translate(-50%, -100%);
  transition: opacity .25s, border-color .2s;
  backdrop-filter: blur(6px);
}
.pin b {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font: 700 12px/1 var(--f-display);
  color: #fff;
}
.pin.active { border-color: var(--amber); }

/* Barra superior */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  background: linear-gradient(to bottom, rgba(10, 11, 15, .7), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--f-display); letter-spacing: .01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--amber);
  box-shadow: inset 0 0 0 4px var(--hall), inset 0 0 0 11px var(--amber);
}

button, .cta, .ghost-link { font: inherit; }
.ghost {
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px;
  backdrop-filter: blur(6px);
}
.ghost:hover { border-color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.hint {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  margin: 0; padding: 6px 14px;
  background: var(--glass); border-radius: 999px;
  font-size: 13px; color: var(--muted);
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity .6s;
  pointer-events: none;
}
.hint.gone { opacity: 0; }

/* Directorio inferior */
.directory {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(10, 11, 15, .85), transparent);
}
.directory-label {
  flex: none;
  font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.directory-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.directory-list::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 13px; font-weight: 500;
}
.chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px/1 var(--f-display); color: #fff; }
.chip:hover, .chip[aria-current="true"] { border-color: var(--amber); }

/* Panel del stand */
.panel {
  position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 32px));
  overflow-y: auto;
  padding: 24px 24px 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  animation: slideIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
.panel-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.panel-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.panel h2 { margin: 0; font: 700 30px/1.05 var(--f-display); text-wrap: balance; padding-right: 28px; }
.panel-loc { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.panel-desc { margin: 0 0 14px; }
.panel-points { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.panel-points li { display: flex; gap: 10px; font-size: 14px; }
.panel-points li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent, var(--amber)); }
.panel-price { margin: 0 0 16px; font: 700 20px/1.2 var(--f-display); }
.panel-price:empty { display: none; }

.attendant {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 12px;
}
.attendant p { margin: 0; }
.attendant-name { font-weight: 600; }
.attendant-status { font-size: 12px; color: var(--muted); }
.attendant-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(60, 207, 142, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(60, 207, 142, .05); } }
.attendant-avatar { position: relative; flex: none; display: grid; place-items: center; }
.attendant-avatar img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: 50% 4%;
  background: var(--brand, #2a2c31);
  border: 2px solid var(--accent, var(--amber));
}
.attendant-avatar img:not([hidden]) + .attendant-dot { position: absolute; right: 1px; bottom: 3px; width: 12px; height: 12px; border: 2px solid #1d1f24; box-shadow: none; animation: none; }
.panel .cta { background: var(--accent, var(--amber)); }

.cta {
  display: block; width: 100%;
  padding: 13px 18px;
  background: var(--amber); color: #1b1505;
  border: 0; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.panel-phone { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; user-select: all; }
.ghost-link { display: block; margin-top: 12px; text-align: center; color: var(--ink); font-size: 14px; }

/* Fotos en la ficha del stand */
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px 16px; padding: 0 4px 4px; scrollbar-width: thin; }
.gallery-item { flex: none; width: 46%; max-width: 160px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.viewer { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 12, .88); backdrop-filter: blur(6px); }
.viewer img { max-width: 100%; max-height: calc(100% - 32px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.viewer .panel-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; color: var(--ink); background: var(--glass); }

/* Pantalla de bienvenida */
.intro {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at 50% 70%, rgba(18, 20, 26, .35), rgba(10, 11, 15, .88));
  transition: opacity .8s;
}
.intro.out { opacity: 0; pointer-events: none; }
.intro-card { max-width: 520px; text-align: left; }
.intro-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--amber); }
.intro h1 { margin: 0; font: 700 clamp(44px, 9vw, 84px)/.95 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.intro-sub { margin: 18px 0 8px; font-size: 17px; color: var(--ink); opacity: .85; max-width: 44ch; }
.intro-count { margin: 0 0 24px; color: var(--muted); }
.intro-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.intro .cta { width: auto; display: inline-block; padding: 14px 28px; }

/* Registro obligatorio */
body.gated #hint, body.gated #pins, body.gated .topbar { visibility: hidden; }
.intro { overflow-y: auto; }
.intro-card { max-width: 560px; width: 100%; padding-block: 24px; }
.intro-count { margin-bottom: 20px; }
.reg, .welcome-back {
  display: grid; gap: 14px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.reg-title { margin: 0; font: 700 20px/1.2 var(--f-display); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%; min-width: 0;
  padding: 11px 12px;
  font: 16px/1.3 var(--f-body); color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--amber); background: rgba(255, 255, 255, .1); }
.field input[aria-invalid="true"] { border-color: #ff8a7a; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--amber); flex: none; }
.reg-error { margin: 0; min-height: 1.2em; font-size: 14px; color: #ff9d8f; }
.reg-error:empty { display: none; }
.reg .cta, .welcome-back .cta { width: 100%; }
.reg .cta[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.welcome-back p { margin: 0; font-size: 17px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; justify-self: center; font-size: 14px; }
@media (max-width: 520px) { .reg-grid { grid-template-columns: 1fr; } .intro { place-items: start center; } }

@media (max-width: 640px) {
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 60%;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    animation-name: slideUp;
  }
  @keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
  .panel h2 { font-size: 26px; }
  .directory-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Equipo del stand, brochure y ruleta */
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.action {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 10px; border-radius: 12px;
  background: rgba(255,255,255,.06); color: var(--ink);
  border: 1px solid var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.action:hover { border-color: var(--accent, var(--amber)); }
.action-spin { background: #ec7063; border-color: #ec7063; color: #fff; }
.action[hidden] { display: none !important; }
.team-title { margin: 0 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.team { display: grid; gap: 6px; margin-bottom: 12px; }
.member {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px 8px 8px; text-align: left;
  background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.member img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 4%; background: var(--brand, #2a2c31); border: 2px solid transparent; flex: none; }
.member b { display: block; font-weight: 600; }
.member small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.member small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.member[aria-checked="true"] { border-color: var(--accent, var(--amber)); background: rgba(255,255,255,.05); }
.member[aria-checked="true"] img { border-color: var(--accent, var(--amber)); }

.ruleta { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 12, .82); backdrop-filter: blur(6px); z-index: 20; }
.ruleta-card {
  position: relative; width: min(420px, 100%); max-height: 100%; overflow-y: auto;
  padding: 24px; background: #1b1d23; border: 1px solid var(--line); border-radius: 20px; text-align: center;
}
.ruleta-card h2 { margin: 0; font: 700 30px/1.05 var(--f-display); }
.ruleta-sub { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.wheel-wrap { position: relative; width: min(320px, 100%); margin: 0 auto 16px; }
.wheel-wrap canvas { display: block; width: 100%; height: auto; transition: transform 5s cubic-bezier(.15,.85,.2,1); }
.wheel-pin { position: absolute; left: 50%; top: -6px; z-index: 1; width: 0; height: 0; transform: translateX(-50%); border: 14px solid transparent; border-top: 24px solid #f2b544; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.ruleta .cta { background: #ec7063; color: #fff; }
.ruleta .cta[disabled] { opacity: .6; cursor: default; }
.ruleta-result { margin-top: 4px; }
.ruleta-won { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--amber); }
.ruleta-prize { margin: 2px 0 6px; font: 700 26px/1.1 var(--f-display); }
.ruleta-code { margin: 0 0 12px; color: var(--muted); }
.ruleta-code strong { color: var(--ink); letter-spacing: .08em; user-select: all; }
.ruleta-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.top-actions { display: flex; gap: 8px; }
#btn-sound[aria-pressed="true"] { border-color: var(--amber); }

a.member { text-decoration: none; }
.member:hover { border-color: var(--accent, var(--amber)); background: rgba(255,255,255,.05); }
.member > span:not(.member-go) { flex: 1; min-width: 0; }
.member-go { flex: none; font-size: 12px; font-weight: 600; color: #3ccf8e; }
.panel-actions-2 { margin: 12px 0 0; }
.cta-outline { margin-top: 10px; background: transparent !important; color: var(--ink); border: 1px solid var(--accent, var(--amber)); }

/* Asistente virtual */
.chat-fab {
  position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  background: #ec7063; color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(236,112,99,.45);
}
.chat-fab:hover { filter: brightness(1.06); }
.chat-fab.nudge { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
.chat-fab-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
body.gated .chat-fab, body.gated .chat-peek { display: none; }
.panel:not([hidden]) ~ .chat-fab { right: 412px; }
.chat-peek {
  position: fixed; right: 16px; bottom: calc(140px + env(safe-area-inset-bottom, 0px)); z-index: 15;
  max-width: 260px; padding: 12px 34px 12px 14px; border-radius: 14px 14px 4px 14px;
  background: #fff; color: #1c1d20; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer;
}
.chat-peek p { margin: 0; font-size: 14px; font-weight: 600; }
.chat-peek button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; color: #777; cursor: pointer; }
.chat {
  position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 16;
  width: min(380px, calc(100% - 32px)); height: min(560px, calc(100% - 170px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #17191e; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: slideIn .3s ease-out;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #ec7063; color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chat-avatar img { width: 32px; height: 32px; object-fit: contain; }
.chat-head p { margin: 0; }
.chat-title { font-weight: 700; }
.chat-status { font-size: 12px; opacity: .9; }
.chat-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 20px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-bot { align-self: flex-start; background: #262931; border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: #ec7063; color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-btn { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.msg-btn.main { background: #25d366; border-color: #25d366; color: #0b2e17; }
.msg-btn:hover { filter: brightness(1.1); }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chip-q { flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.chip-q:hover { border-color: #ec7063; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: #0f1014; color: var(--ink); font: inherit; font-size: 16px; }
.chat-form button { width: 44px; border-radius: 50%; border: 0; background: #ec7063; color: #fff; font-size: 16px; cursor: pointer; }
@media (max-width: 640px) {
  .chat-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 11px 14px; }
  .chat-fab-text { display: none; }
  .panel:not([hidden]) ~ .chat-fab { right: 16px; bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); }
  .chat { right: 8px; left: 8px; width: auto; bottom: 8px; height: min(75vh, calc(100% - 80px)); }
}
.panel:not([hidden]) ~ .chat-peek { right: 412px; }
@media (max-width: 640px) {
  .btn-label { display: none; }
  .panel:not([hidden]) ~ .chat-peek { display: none; }
}

/* Saludo de cada asesor (HTML para que siempre se lea nítido) */
#greets { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.greet {
  position: absolute; left: 0; top: 0; transform-origin: 50% 100%;
  display: grid; gap: 1px; justify-items: center;
  min-width: 168px; max-width: 220px; padding: 9px 16px 10px;
  background: #fff; color: #17181b; border: 0; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.06);
  font: inherit; text-align: center; cursor: pointer; pointer-events: auto;
  animation: greet-in .28s ease-out;
}
.greet::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -9px;
  border: 9px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.greet[hidden] { display: none; }
.greet-hi { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.greet-ask { font-size: 14.5px; font-weight: 700; color: #b8351f; line-height: 1.25; }
.greet-wa { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #1f8a4c; }
.greet-wa::before { content: "● "; font-size: 9px; vertical-align: 1px; }
.greet:hover { box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 0 2px #25d366; }
body.gated #greets { visibility: hidden; }
@keyframes greet-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .greet { animation: none; } }
.topbar { z-index: 6; }
@media (max-width: 600px) {
  .greet { min-width: 0; max-width: 168px; padding: 7px 11px 8px; border-radius: 13px; }
  .greet-hi { font-size: 14px; }
  .greet-ask { font-size: 12.5px; }
  .greet-wa { display: none; }
}

/* Recorrido 360: indicador de carga entre panorámicas y créditos */
.pano-loading {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--glass); color: var(--ink); font-size: 14px; z-index: 6;
  pointer-events: none;
}
.pano-loading span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(243, 239, 230, .3); border-top-color: var(--amber);
  animation: pano-spin .8s linear infinite;
}
@keyframes pano-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pano-loading span { animation: none; } }
.intro-credits { margin: 18px 0 0; font-size: 11.5px; color: var(--muted); opacity: .8; }
#scene canvas { opacity: 0; transition: opacity 1.2s ease; }
body.pano-ready #scene canvas { opacity: 1; }
.member-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--brand, #2a2c31); color: #fff;
  font: 700 16px/1 var(--f-display); letter-spacing: .02em;
  border: 2px solid rgba(255,255,255,.18);
}

/* Ruleta: botón flotante frente a cada stand */
.spin-fab {
  position: fixed; left: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--amber); color: #1b1c20;
  font: 700 15px/1 var(--f-body);
  box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 3px rgba(242,181,68,.25);
  animation: spin-fab-in .35s ease-out, spin-fab-pulse 2.4s ease-in-out .4s 3;
}
.spin-fab span { font-size: 19px; }
.spin-fab:hover { filter: brightness(1.06); }
body.gated .spin-fab { visibility: hidden; }
@keyframes spin-fab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin-fab-pulse { 50% { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 9px rgba(242,181,68,.0); transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .spin-fab { animation: none; } }

/* Idioma: selector ES | EN, el activo resaltado */
.intro-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.intro-top .intro-eyebrow { margin: 0; }
.lang-switch {
  display: inline-flex; flex: none; padding: 3px; gap: 2px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
}
.lang-opt {
  border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 13px/1 var(--f-body); letter-spacing: .04em;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt[aria-pressed="true"] { background: var(--amber); color: #1b1c20; }
.lang-switch-intro { background: transparent; }
.lang-switch-intro .lang-opt { padding: 7px 13px; letter-spacing: 0; }
a.greet { text-decoration: none; color: #17181b; }
@media (max-width: 560px) {
  .top-actions { gap: 6px; }
  .lang-opt { padding: 6px 9px; font-size: 12px; }
  #btn-lobby .btn-label { display: none; }
}

/* Globos compactos cuando hay tres asesores: solo el saludo, con punto verde de WhatsApp */
.greet.compact { min-width: 0; padding: 7px 12px 7px 10px; border-radius: 999px; grid-auto-flow: column; align-items: center; gap: 6px; }
.greet.compact::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
.greet.compact .greet-hi { font-size: 14px; white-space: nowrap; }
.greet.compact .greet-ask, .greet.compact .greet-wa { display: none; }
