*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
:root {
  --bg: #e8e8e8;
  --sur: #f0f0f0;
  --sur2: #e0e0e0;
  --sur3: #d0d0d0;
  --bdr: rgba(0, 0, 0, 0.15);
  --bdr2: rgba(0, 0, 0, 0.25);
  --ink: #1a1a1a;
  --ink2: #333333;
  --ink3: #555555;
  --ink4: rgba(0, 0, 0, 0.4);
  --blue: #0a84ff;
  --blue-dk: #005ecb;
  --blue-lt: rgba(10, 132, 255, 0.15);
  --green: #30d158;
  --green-lt: rgba(48, 209, 88, 0.15);
  --red: #ff453a;
  --red-lt: rgba(255, 69, 58, 0.15);
  --amber: #ff9f0a;
  --amber-lt: rgba(255, 159, 10, 0.15);
  --gray: #55555c;
  --gray-lt: rgba(85, 85, 92, 0.22);
  --vd: #ff9f0a;
  --od: #ff453a;
  --vi: #30d158;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SF Mono", "Menlo", "Courier New", monospace;
  --r: 14px;
  --rlg: 18px;
  /* Sombras estilo Apple */
  --shadow-sm: 0 2px 8px rgba(42, 31, 26, 0.08);
  --shadow-md: 0 4px 12px rgba(42, 31, 26, 0.12);
  --shadow-lg: 0 8px 24px rgba(42, 31, 26, 0.14);
  --shadow-xl: 0 20px 48px rgba(42, 31, 26, 0.16);
}
html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #d6d5d5;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  overscroll-behavior: none;
}
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  display: none;
}
.hdr {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background: rgba(240, 240, 240, 0.98);
  border-bottom: 1px solid var(--bdr);
  box-shadow: var(--shadow-sm);
  padding: env(safe-area-inset-top, 0) 0 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.hdr-in {
  align-items: center;
  display: flex;
  gap: 10px;
  height: 60px;
  justify-content: space-between;
  padding: 0 16px;
}
.hdr-left {
  align-items: center;
  display: flex;
  gap: 10px;
}
.hdr-right {
  align-items: center;
  display: flex;
  gap: 8px;
}
.logo {
  align-items: center;
  display: flex;
  gap: 0;
  text-decoration: none;
}
.logo-mk {
  align-items: center;
  background: linear-gradient(145deg, #0a84ff, #004ecc);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
  display: flex;
  flex-shrink: 0;
  font-size: 20px;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.logo-tx {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.logo-tx span {
  color: var(--blue);
}
.lang-drop {
  position: relative;
}
.lang-drop-btn {
  align-items: center;
  background: var(--sur3);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  color: var(--ink2);
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  padding: 7px 12px;
  transition: background 0.15s;
}
.lang-drop-btn:hover {
  background: var(--sur3);
}
.lang-drop-btn svg {
  transition: transform 0.2s;
}
.lang-drop.open .lang-drop-btn svg {
  transform: rotate(180deg);
}
.lang-drop-menu {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 300;
}
.lang-drop.open .lang-drop-menu {
  display: flex;
}
.lang-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--ink3);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  text-align: left;
  transition: all 0.1s;
  width: 100%;
}
.lang-btn:hover {
  background: var(--sur2);
  color: var(--ink1);
}
.lang-btn.active {
  background: var(--blue);
  border-radius: 7px;
  color: #ffffff;
}
/* Profile dropdown */
.prof-drop {
  position: relative;
}
.prof-drop-btn {
  align-items: center;
  background: var(--sur3);
  border: 1.5px solid var(--bdr);
  border-radius: 50%;
  color: var(--ink2);
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  width: 36px;
}
.prof-drop-btn:hover {
  background: var(--sur3);
  border-color: var(--blue);
  color: var(--blue);
}
.prof-drop.open .prof-drop-btn {
  background: var(--sur3);
  border-color: var(--blue);
  color: var(--blue);
}
.prof-drop-menu {
  background: var(--sur);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 300;
}
.prof-drop.open .prof-drop-menu {
  display: flex;
}
.prof-drop-head {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 4px 6px 8px;
}
.prof-drop-avatar {
  align-items: center;
  background: var(--sur3);
  border-radius: 50%;
  color: var(--ink3);
  display: flex;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.prof-drop-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.prof-drop-name {
  color: var(--ink1);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-drop-role {
  align-self: flex-start;
  background: var(--sur3);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
}
.prof-drop-hotel {
  color: var(--ink3);
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px 4px;
}
.prof-drop-sep {
  background: var(--bdr);
  height: 1px;
  margin: 4px 0;
}
.prof-drop-logout {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 8px 10px;
  transition: all 0.1s;
  width: 100%;
}
.prof-drop-logout:hover {
  background: var(--red-lt);
  color: var(--red);
}
.live-pill {
  align-items: center;
  background: var(--sur2);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  color: var(--ink3);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  padding: 7px 13px;
  white-space: nowrap;
}
.dot {
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
.dot.live {
  animation: pulse 2s ease-in-out infinite;
}
.tab-bar {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background: rgba(240, 240, 240, 0.98);
  border-top: 1px solid var(--bdr);
  bottom: 0;
  display: flex;
  left: 0;
  padding: 10px 0 max(env(safe-area-inset-bottom, 0px), 14px);
  position: fixed;
  right: 0;
  z-index: 200;
}
.tab-btn {
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-family: var(--font);
  gap: 4px;
  justify-content: center;
  min-height: 56px;
  min-width: 64px;
  padding: 4px 2px;
  position: relative;
  touch-action: manipulation;
}
.tab-btn:active {
  opacity: 0.4;
}
.t-ico {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.15s;
}
.t-lbl {
  color: #555555;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.tab-btn.active .t-ico {
  transform: scale(1.1);
}
.tab-btn.active .t-lbl {
  color: var(--blue);
}
.tab-badge {
  background: var(--red);
  border: 2px solid var(--bg);
  border-radius: 10px;
  color: #fff;
  display: none;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  padding: 2px 5px;
  position: absolute;
  right: calc(50% - 22px);
  text-align: center;
  top: -2px;
}
.tab-badge.show {
  display: block;
}
.wrap {
  margin: 0 auto;
  max-width: 680px;
  padding: 24px 18px calc(110px + env(safe-area-inset-bottom, 0));
}
.page {
  display: none;
}
.page.active {
  animation: fadeUp 0.25s cubic-bezier(0.2, 0.6, 0.4, 1);
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pg-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.pg-sub {
  color: var(--ink3);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 0;
}
.sec-lbl {
  color: var(--ink4);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
  margin: 24px 0 12px;
  opacity: 0.85;
  text-transform: uppercase;
}
.btn {
  align-items: center;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  touch-action: manipulation;
  transition:
    opacity 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    transform 0.12s cubic-bezier(0.2, 0.6, 0.4, 1),
    box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn:active {
  box-shadow: var(--shadow-md);
  opacity: 0.65;
  transform: scale(0.96);
}
.btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.28;
  transform: none;
}
@media (min-width: 601px) {
  .hdr-in {
    position: relative;
  }
  .live-pill {
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }
}
@media (max-width: 600px) {
  .live-pill {
    display: none;
  }
  .hdr-in {
    overflow: visible;
  }
  .hdr-right {
    min-width: 0;
    overflow: visible;
  }
  #auth-user-bar {
    gap: 4px;
    max-width: calc(100vw - 180px);
    padding: 4px 8px;
  }
  #auth-hotel {
    display: none !important;
  }
  #auth-user {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .setup-import-hdr {
    text-align: center;
  }
  .setup-import-btns {
    justify-content: center;
  }
  .tab-bar {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex: 0 0 64px;
    scroll-snap-align: start;
  }
}
