/* Montserrat (SIL Open Font License), served locally so the totem does not depend on installed fonts. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/shared/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/shared/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #f30042;
  --ink: #4b4b4a;
  --muted: #8a8a89;
  --bg: #ffffff;
  --line: #e6e6e6;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  /* Desktop Chrome ignores user-scalable=no: block pinch and double-tap zoom here. */
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}

body.kiosk-mode, body.kiosk-mode * { cursor: none !important; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { -webkit-user-drag: none; }

/* Fixed 1080x1920 design canvas, scaled to the screen by kiosk.js */
#stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  background: var(--bg);
  transform-origin: 0 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.screen.active { opacity: 1; visibility: visible; transition: opacity .35s ease; }

em { font-style: normal; color: var(--red); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 0 40px;
  background: var(--red);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.btn:active { filter: brightness(.88); }
.btn-outline { background: #fff; color: var(--red); box-shadow: inset 0 0 0 4px var(--red); }
.btn-small { min-height: 72px; font-size: 26px; padding: 0 36px; }

/* Attract (INICIO) */
.ad-frame {
  position: absolute;
  left: 65px;
  top: 65px;
  width: 950px;
  height: 1500px;
  background: var(--ink);
  overflow: hidden;
}
.ad-slot, .ad-slot > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.ad-slot > * { object-fit: contain; animation: fade-in .6s ease; }
.ad-slot .empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.ad-slot .empty img { width: 60%; height: auto; position: static; }
.cta {
  position: absolute;
  top: 1625px;
  width: 100%;
  text-align: center;
  font-size: 96px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Home (PANEL 1) */
.welcome {
  margin-top: 560px;
  text-align: center;
  font-size: 104px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
}
.menu { display: flex; flex-direction: column; gap: 42px; margin: 105px 160px 0; }
.logo-bottom { position: absolute; left: 385px; top: 1565px; width: 310px; }

/* Directory */
.logo-top { width: 200px; margin: 105px 0 0 98px; }
.headline {
  margin: 70px 0 0 95px;
  font-size: 150px;
  line-height: .84;
  font-weight: 800;
  letter-spacing: -3px;
}
.headline em { font-style: italic; }
.directory-grid {
  flex: 1;
  min-height: 0;
  margin: 60px 60px 0 95px;
  overflow-y: auto;
  scrollbar-width: none;
}
.directory-grid::-webkit-scrollbar { display: none; }
.directory-columns { column-count: 3; column-gap: 50px; }
.dir-category { break-inside: avoid; margin-bottom: 36px; }
.dir-category h3 {
  width: 232px;
  padding: 6px 10px;
  margin-bottom: 4px;
  color: #fff;
  font-size: var(--dir-size, 21px);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}
.dir-store {
  display: block;
  width: 100%;
  padding: 3px 10px;
  text-align: left;
  font-size: var(--dir-size, 21px);
  line-height: 1.15;
  font-weight: 500;
}
.dir-store:active { color: var(--red); }
.dir-store.no-location { color: var(--muted); }
.actions { display: flex; gap: 30px; margin: 40px 120px 110px; }
.actions .btn { flex: 1; min-height: 86px; font-size: 28px; padding: 0 20px; }

/* Map */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
  padding: 0 60px;
  flex: none;
}
.logo-small { width: 190px; }
.map-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.chips { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 60px 24px; }
.chip {
  padding: 14px 24px;
  border-radius: 40px;
  border: 3px solid var(--chip, var(--ink));
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  background: #fff;
}
.chip.active { background: var(--chip, var(--ink)); color: #fff; }

.floor-tabs { display: flex; margin: 0 60px; border-bottom: 3px solid var(--line); }
.floor-tab { flex: 1; padding: 18px 0; font-size: 28px; font-weight: 800; color: var(--muted); }
.floor-tab.active { color: var(--red); box-shadow: inset 0 -6px 0 var(--red); }

.plan {
  position: relative;
  width: 1000px;
  margin: 0 auto;
  flex: none;
  overflow: hidden;
}
.plan-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1100px;
  height: 800px;
  transform-origin: 0 0;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1) .3s;
}
.plan-canvas.no-transition { transition: none; }
.plan.interactive { touch-action: none; background: #fafafa; }
.plan-zoom { position: absolute; left: 20px; bottom: 20px; z-index: 4; display: flex; flex-direction: column; gap: 12px; }
.plan-zoom-button { width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); font-size: 46px; font-weight: 700; line-height: 1; color: var(--ink); }
.plan-zoom-button:active { background: #fde6ec; }
.plan-canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan .route {
  filter: drop-shadow(0 0 1px #e4002b) drop-shadow(0 0 1px #e4002b);
  animation: route-in .8s ease both, route-pulse 1.6s ease-in-out .8s infinite;
}
.plan-step {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 60px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}
.plan-step b {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 30px;
}
.plan-floor-name {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
}

.zoom-toggle {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin-left: auto;
  padding: 0 28px 0 14px;
  border: 2px solid var(--line);
  border-radius: 40px;
  font-size: 26px;
  font-weight: 700;
}
.zoom-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.pin {
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1)));
  display: grid;
  place-items: center;
}
.pin::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pin, var(--red));
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.pin.target::before { width: 30px; height: 30px; background: var(--red); }
.pin.target::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid var(--red);
  animation: ring 1.6s ease-out infinite;
}
/* Unit outlines on the plan */
.plan-shapes { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
/* Invisible until tapped: the plan already shows each unit, outlines only add noise. */
.plan-shape {
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-opacity: 0;
  stroke-width: 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity .2s, stroke-opacity .2s;
}
.plan-shape.dimmed { fill: #1e1e1e; fill-opacity: .35; stroke: none; pointer-events: none; }
.plan-shape.selected { fill-opacity: .45; stroke-opacity: 1; animation: shape-pulse 1.4s ease-in-out infinite; }

.shape-tip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Absolutely placed in the canvas: without this its width shrinks to the space right of the anchor. */
  width: max-content;
  min-width: 380px;
  max-width: 600px;
  padding: 22px 26px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  transform-origin: 0 0;
  transform: scale(calc(1 / var(--z, 1))) translate(calc(-50% + var(--shift, 0px)), calc(-100% - 18px));
  animation: fade-in .2s ease both;
}
.shape-tip.below { transform: scale(calc(1 / var(--z, 1))) translate(calc(-50% + var(--shift, 0px)), 18px); }
.shape-tip::after {
  content: "";
  position: absolute;
  left: clamp(28px, calc(50% - var(--shift, 0px)), calc(100% - 28px));
  top: 100%;
  border: 14px solid transparent;
  border-top-color: #fff;
  transform: translateX(-50%);
}
.shape-tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }
.shape-tip-store { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.shape-tip-store strong { display: block; font-size: 30px; line-height: 1.15; }
.shape-tip-store small { display: block; margin-top: 4px; font-size: 20px; color: var(--muted); }
.shape-tip-store .btn { flex: none; }

.you-are-here, .plan-hint { padding: 10px 60px 0; font-size: 20px; color: var(--muted); }
.you-are-here::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #f5c400;
}

.store-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 20px 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 14px 30px;
}
.store-list::-webkit-scrollbar { display: none; }
.store-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-left: 8px solid var(--pin, var(--ink));
  background: #f5f5f5;
  text-align: left;
  font-size: 24px;
  font-weight: 700;
}
.store-item small { flex: none; font-size: 18px; font-weight: 600; color: var(--muted); }
.empty-message { grid-column: 1 / -1; padding: 40px 0; text-align: center; font-size: 26px; color: var(--muted); }

.store-card {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0 60px 20px;
  padding: 24px 28px;
  background: #f5f5f5;
  border-left: 10px solid var(--pin, var(--red));
  flex: none;
}
.store-card .logo {
  flex: none;
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #fff;
}
/* Shrinks instead of pushing the hours out: a long word (a URL) must never widen the card. */
.store-info { flex: 1; min-width: 0; }
.store-info h2, .store-info p { overflow-wrap: anywhere; }
.store-card h2 { font-size: 46px; line-height: 1.05; font-weight: 800; }
.store-card .meta { margin-top: 8px; font-size: 24px; font-weight: 700; color: var(--red); }
.store-card p { margin-top: 10px; font-size: 22px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hours-summary { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 360px; margin-left: auto; text-align: right; }
.hours-status { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.hours-status::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); }
.hours-status.open { color: #1d7a45; }
.hours-status.open::before { background: #23a45a; }
.hours-detail { font-size: 22px; font-weight: 600; }
.hours-button { min-height: 60px; padding: 0 28px; border: 2px solid var(--line); border-radius: 30px; background: #fff; font-size: 24px; font-weight: 700; }
.hours-box .hours-now { display: flex; align-items: center; gap: 24px; font-size: 28px; font-weight: 600; }
.hours-box .hours-status { font-size: 30px; }
.chooser-box.hours-box { width: 920px; }
.hours-week { display: flex; flex-direction: column; }
.hours-day { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 600; white-space: pre; }
.hours-day.today { background: #fde6ec; color: var(--red); font-weight: 800; }
.hours-box p { font-size: 24px; line-height: 1.3; }
.hours-day > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.hours-day small { font-size: 20px; font-weight: 700; color: var(--red); white-space: normal; }
.hours-day.special { background: #fff7e0; }
.hours-day.today.special { background: #fde6ec; }
.route-plans { display: flex; flex-direction: column; gap: 6px; }
.notice { margin: 30px 60px; padding: 30px; background: #fff4f6; font-size: 28px; line-height: 1.3; }

/* Gallery */
.gallery-title { padding: 0 60px 30px; font-size: 80px; font-weight: 800; letter-spacing: -1px; }
.gallery-frame { position: relative; flex: 1; margin: 0 65px; background: var(--ink); overflow: hidden; }
.gallery-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade-in .4s ease; }
.gallery-frame .empty { display: grid; place-items: center; background: #fff; font-size: 34px; color: var(--muted); }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 60px; height: 190px; }
.nav-arrow { width: 110px; height: 110px; border-radius: 50%; background: var(--red); color: #fff; font-size: 80px; line-height: 1; }
.nav-arrow:disabled { opacity: .25; }
.gallery-counter { min-width: 120px; text-align: center; font-size: 32px; font-weight: 800; }

.offline-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 18px;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes route-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes route-pulse { 50% { opacity: .7; } }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes shape-pulse { 50% { fill-opacity: .15; } }

.chooser { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(0, 0, 0, .5); }
.chooser-box { display: flex; flex-direction: column; gap: 20px; width: 800px; padding: 50px; background: #fff; }
.chooser-box h2 { font-size: 44px; }
.chooser-box .store-item { min-height: 90px; font-size: 32px; }

/* Notice before returning to the ads */
.idle-warning { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(0, 0, 0, .6); touch-action: none; }
.idle-warning[hidden] { display: none; }
.idle-box { display: flex; flex-direction: column; align-items: center; gap: 36px; width: 820px; padding: 70px 60px; background: #fff; text-align: center; }
.idle-box h2 { font-size: 84px; line-height: 1.1; }
.idle-box .idle-count { font-size: 160px; font-weight: 700; line-height: 1; color: var(--red); }
.idle-box p { font-size: 40px; }
.idle-box .btn { width: 100%; }
