/* ==========================================================================
   PlazaDigital · Estilos propios (css/plaza.css)
   Todo lo que Tailwind no expresa bien: toldos, vitrinas de vidrio,
   animaciones de elevador, overlays y estados.
   ========================================================================== */

:root { --oro: #E9B949; --noche: #0B1020; --abierto: #3DFFA2; --vivo: #FF3D6E; }
html { -webkit-tap-highlight-color: transparent; }
body.bloqueado { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
::selection { background: rgba(233, 185, 73, .35); }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 12px; }
.sin-barra { scrollbar-width: none; }
.sin-barra::-webkit-scrollbar { display: none; }

/* ---------- Fondo del lobby: piso en perspectiva + luz cenital ---------- */
.lobby-luz { background: radial-gradient(60% 50% at 70% 0%, rgba(233, 185, 73, .14), transparent 70%), radial-gradient(40% 40% at 0% 30%, rgba(70, 120, 255, .10), transparent 70%); }
.lobby-suelo { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%; transform: perspective(700px) rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(233, 185, 73, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 185, 73, .10) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); pointer-events: none; }
.plano-suelo { background-color: rgba(7, 10, 20, .6); background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 22px 22px; }
.patron-rejilla { background-image: linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); }

/* ---------- Toldo de local (rayas + festón) ---------- */
.toldo { z-index: 2; background: repeating-linear-gradient(90deg, var(--c) 0 16px, color-mix(in srgb, var(--c) 55%, #0B1020) 16px 32px); }
.toldo:not(.absolute) { position: relative; }
.toldo::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 7px;
  background: radial-gradient(circle at 8px 0, var(--c) 7px, transparent 7.5px) 0 0 / 32px 7px repeat-x,
              radial-gradient(circle at 8px 0, color-mix(in srgb, var(--c) 55%, #0B1020) 7px, transparent 7.5px) 16px 0 / 32px 7px repeat-x; }
.slot .toldo::after { height: 4px; background-size: 32px 4px; }

/* ---------- Vitrina de vidrio: reflejo que cruza al pasar ---------- */
.vitrina { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -30px 60px -30px rgba(0, 0, 0, .5); }
.vitrina::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .16) 44%, transparent 56%); transform: translateX(-40%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.local:hover .vitrina::after, .local:focus-visible .vitrina::after { transform: translateX(40%); }
.local { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.local:hover { transform: translateY(-4px); }
.local:hover > div:last-child { box-shadow: 0 24px 48px -24px var(--c); }
.slot:hover { box-shadow: 0 0 0 1px var(--c), 0 14px 30px -16px var(--c); }

/* ---------- Vitrina principal ---------- */
.foco { background: radial-gradient(55% 38% at 50% 8%, rgba(255, 255, 255, .38), transparent 70%); transition: opacity .5s; opacity: .7; }
.vitrina-dest:hover .foco { opacity: 1; }
.vitrina-dest { box-shadow: 0 30px 60px -30px var(--c); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.vitrina-dest:hover { transform: translateY(-6px); }
.riel { padding-inline: max(1rem, calc((100vw - 80rem) / 2 + 1.5rem)); scroll-padding-inline: max(1rem, calc((100vw - 80rem) / 2 + 1.5rem)); }

/* ---------- Indicadores de estado ---------- */
.punto { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.punto-abierto { background: var(--abierto); animation: latido 2s infinite; }
.punto-pronto { background: var(--oro); }
.punto-cerrado { background: rgba(255, 255, 255, .3); }
.punto-vivo { background: var(--vivo); animation: latido-vivo 1.4s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 162, .55); } 70% { box-shadow: 0 0 0 7px rgba(61, 255, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 162, 0); } }
@keyframes latido-vivo { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 110, .6); } 70% { box-shadow: 0 0 0 8px rgba(255, 61, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); } }

/* ---------- Historias ---------- */
.anillo { display: block; padding: 5px; border-radius: 9999px; background: conic-gradient(from 210deg, var(--c), var(--oro), var(--c)); }
.anillo-visto { background: rgba(255, 255, 255, .16); }

/* ---------- Elevador / cambio de piso ---------- */
.boton-elev-activo { --tw-ring-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 0 2px var(--c), 0 0 24px -4px var(--c); }
.elev-sube { animation: entra-arriba .6s cubic-bezier(.2, .8, .2, 1); }
.elev-baja { animation: entra-abajo .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes entra-arriba { from { transform: translateY(-40px); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes entra-abajo { from { transform: translateY(40px); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.flecha-elev { animation: flecha 1s ease-in-out 2; }
@keyframes flecha { 50% { transform: translateY(-3px); opacity: .4; } }

.tab-piso.activo { background: var(--c); color: #070A14; box-shadow: 0 10px 30px -12px var(--c); }
#piso-banner { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 16%, #0E1428), #0E1428 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.piso-numero { color: transparent; -webkit-text-stroke: 1.5px var(--c); }
.cambio-piso { animation: entra-abajo .5s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Chips, filtros e interruptor ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; flex: none;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72); transition: background .2s, color .2s; }
.chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.chip.activo { background: var(--oro); color: #070A14; box-shadow: none; }
.chip-mini { height: 28px; padding: 0 10px; font-size: 12px; }
.interruptor { width: 30px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .18); position: relative; transition: background .2s; flex: none; }
.interruptor::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
[aria-checked="true"] .interruptor { background: var(--abierto); }
[aria-checked="true"] .interruptor::after { transform: translateX(12px); }
[aria-checked="true"].chip { color: #fff; box-shadow: inset 0 0 0 1px rgba(61, 255, 162, .45); background: rgba(61, 255, 162, .08); }
.selector { appearance: none; background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ffffff99' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.selector option { background: #111831; color: #fff; }

/* ---------- Ficha del local ---------- */
.sec-titulo { display: flex; align-items: center; gap: 8px; font-family: Unbounded, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.sec-titulo svg { color: var(--c); }
.cupon { background: radial-gradient(circle at 0 50%, #0B1020 9px, transparent 9.5px), radial-gradient(circle at 100% 50%, #0B1020 9px, transparent 9.5px), color-mix(in srgb, var(--c) 9%, #111831);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.relampago-banda { background: linear-gradient(90deg, rgba(233, 185, 73, .16), rgba(233, 185, 73, .04)); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .3); }
.btn-wa { background: #25D366; color: #03200E; transition: background .2s, transform .2s; }
.btn-wa:hover { background: #45E485; color: #03200E; }
.btn-wa:active { transform: scale(.97); }
.carrusel { cursor: grab; }
.carrusel.arrastrando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carrusel.arrastrando * { pointer-events: none; }

/* ---------- Planes ---------- */
.plan-popular { background: linear-gradient(180deg, rgba(233, 185, 73, .14), #111831 55%); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .55), 0 30px 60px -30px rgba(233, 185, 73, .4); }

/* ---------- Overlays: modal, módulo de información, visor ---------- */
#modal, #info, #visor { position: fixed; inset: 0; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
#modal.abierto, #info.abierto, #visor.abierto { visibility: visible; opacity: 1; transition: opacity .3s; }
#modal { z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 6, 12, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#modal-panel { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; transform: translateY(100%); transition: transform .5s cubic-bezier(.2, .85, .2, 1); }
#modal.abierto #modal-panel { transform: none; }
@media (min-width: 640px) {
  #modal { align-items: center; padding: 24px; }
  #modal-panel { transform: translateY(30px) scale(.96); }
}
#info { z-index: 65; background: rgba(4, 6, 12, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow-y: auto; }
#info-panel { transform: translateY(-16px) scale(.98); transition: transform .4s cubic-bezier(.2, .85, .2, 1); }
#info.abierto #info-panel { transform: none; }
.res.sel { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .35); }
#visor { z-index: 70; background: rgba(0, 0, 0, .92); }
#visor-card { transform: scale(.94); transition: transform .4s cubic-bezier(.2, .85, .2, 1); }
#visor.abierto #visor-card { transform: none; }

/* ---------- Encabezado y navegación ---------- */
#encabezado { transition: background .3s, box-shadow .3s; }
#encabezado.compacto { background: rgba(7, 10, 20, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-link { color: rgba(255, 255, 255, .6); transition: color .2s; }
.nav-link:hover, .nav-link.activo { color: #fff; }
.nav-inferior a.activo { color: var(--oro); }

/* ---------- Aviso flotante ---------- */
#aviso { position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .3s; }
#aviso.visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Entrada escalonada ---------- */
.aparecer { animation: aparecer .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes aparecer { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
