
:root {
  --bg: #eef7fb;
  --bg2: #dfeff7;
  --shell: rgba(255, 255, 255, 0.78);
  --panel: #ffffff;
  --panel2: #f6fbff;
  --ink: #172033;
  --muted: #516174;

  --blue-accent: #0b6dff;
  --blue-accent2: #59a6ff;
  --purple-accent: #8b63ff;
  --purple-accent2: #c2adff;

  --accent: var(--blue-accent);
  --accent2: var(--blue-accent2);
  --blue: #0b6dff;
  --green: #138a5b;
  --border: rgba(11, 109, 255, 0.42);
  --shadow: rgba(18, 24, 40, 0.12);
  --qr-bg: #ffffff;
  --button-bg: rgba(255, 255, 255, 0.72);
  --button-border: rgba(11, 109, 255, 0.48);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #07111f;
  --bg2: #0d1930;
  --shell: rgba(11, 21, 38, 0.90);
  --panel: #101d33;
  --panel2: #13243f;
  --ink: #f3f7ff;
  --muted: #b7c3d7;

  --blue-accent: #59a6ff;
  --blue-accent2: #91c5ff;
  --purple-accent: #9b7cff;
  --purple-accent2: #d3c6ff;

  --accent: var(--blue-accent);
  --accent2: var(--blue-accent2);
  --blue: #59a6ff;
  --green: #4ee0a4;
  --border: rgba(89, 166, 255, 0.46);
  --shadow: rgba(0, 0, 0, 0.38);
  --qr-bg: #ffffff;
  --button-bg: rgba(24, 38, 66, 0.92);
  --button-border: rgba(89, 166, 255, 0.56);
  color-scheme: dark;
}

/* Site differentiation */
.site-pointe {
  --accent: var(--purple-accent);
  --accent2: var(--purple-accent2);
  --border: rgba(155, 124, 255, 0.48);
  --button-border: rgba(155, 124, 255, 0.58);
}

html.site-pointe, 
html.site-pointe body {
  background:
    radial-gradient(circle at 18% 12%, rgba(155, 124, 255, 0.24), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(194, 173, 255, 0.18), transparent 30%),
    linear-gradient(145deg, var(--bg), var(--bg2));
}

html.site-miami,
html.site-miami body,
html:not(.site-pointe) body {
  background:
    radial-gradient(circle at 18% 12%, rgba(11, 109, 255, 0.24), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(89, 166, 255, 0.18), transparent 30%),
    linear-gradient(145deg, var(--bg), var(--bg2));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

body { display: flex; justify-content: center; }

.page {
  width: min(100vw, 1080px);
  min-height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell {
  width: 100%;
  min-height: calc(100vh - 44px);
  background: var(--shell);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 24px 70px var(--shadow);
  padding: clamp(18px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b63ff 0%, #0b6dff 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 12px 26px rgba(72, 101, 255, 0.28);
  flex: 0 0 auto;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.app-name {
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 850;
  white-space: nowrap;
}

.location-inline {
  color: var(--accent2);
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 800;
  white-space: nowrap;
}

.app-subtitle {
  color: var(--muted);
  font-size: clamp(12px, 1.7vw, 16px);
  margin-top: 2px;
}

.theme-toggle {
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  width: 44px;
  height: 42px;
  flex: 0 0 auto;
}

.theme-toggle:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--accent2), transparent 45%);
  outline-offset: 3px;
}

.header {
  text-align: center;
  padding: 0 12px;
}

.instruction {
  margin-top: 2px;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 850;
  color: var(--ink);
}

.qr-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.qr-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 48px var(--shadow);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  min-height: 100%;
}

.qr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent2), transparent 82%), transparent 42%);
  pointer-events: none;
}

.qr-card:hover,
.qr-card:focus {
  border-color: var(--accent2);
  transform: translateY(-1px);
}

.qr-card:focus-visible {
  outline: 5px solid color-mix(in srgb, var(--accent2), transparent 38%);
  outline-offset: 4px;
}

.lang, .label, .qr-wrap, .url, .card-note {
  position: relative;
  z-index: 1;
}

.lang {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1;
  font-weight: 950;
  margin-bottom: 12px;
}

.lang.es { color: var(--green); }
.lang.en { color: var(--blue); }

.label {
  min-height: 52px;
  font-size: clamp(17px, 2.3vw, 25px);
  font-weight: 750;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrap {
  background: var(--qr-bg);
  border-radius: 18px;
  padding: 12px;
  margin: 18px 0 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.qr {
  display: block;
  width: min(36vw, 330px);
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
}

.url {
  font-size: clamp(12px, 1.55vw, 16px);
  color: var(--blue);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
  max-width: 100%;
}

.card-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(12px, 1.55vw, 15px);
  font-weight: 650;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 18px);
  padding-top: 2px;
}

.index-links {
  max-width: 760px;
  margin: 34px auto 0;
  display: grid;
  gap: 18px;
}

.index-button {
  display: block;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 36px var(--shadow);
}

.index-button:hover,
.index-button:focus {
  border-color: var(--accent2);
  outline: 4px solid color-mix(in srgb, var(--accent2), transparent 78%);
}

@media (orientation: portrait) {
  .page { padding: 14px; }
  .shell { min-height: calc(100vh - 28px); border-radius: 24px; }
  .topbar { align-items: flex-start; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .location-inline { white-space: normal; }
  .qr-grid { grid-template-columns: 1fr; gap: 16px; }
  .qr-card { border-radius: 24px; }
  .qr { width: min(68vw, 330px); }
}

@media (max-width: 620px) {
  .logo-mark { width: 40px; height: 40px; border-radius: 14px; }
  .theme-toggle { width: 40px; height: 38px; font-size: 20px; }
}

@media print {
  html, body { background: #fff; }
  .page { width: 100%; min-height: auto; padding: 0; }
  .shell { box-shadow: none; border: none; min-height: auto; }
  .theme-toggle { display: none; }
}
