:root {
  font-family:
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #14243a;
  background: #f3f6fa;
  font-synthesis: none;
  --blue: #2563eb;
  --deep: #071a2d;
  --cyan: #22c7e8;
  --muted: #59697c;
  --line: #e1e7ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #22c7e8;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}
header {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  max-width: 640px;
  margin: auto;
  min-height: 64px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.header-copy {
  flex: 1;
  min-width: 0;
}
.header-copy strong {
  display: block;
  font-size: 16px;
  color: var(--deep);
  font-weight: 750;
}
.header-copy small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
main {
  max-width: 640px;
  margin: auto;
  padding: 0 16px calc(100px + env(safe-area-inset-bottom));
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 30px;
  letter-spacing: -0.45px;
}
h2 {
  font-size: 22px;
  line-height: 27px;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 16px;
  line-height: 21px;
}
p {
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin: 10px 0;
  box-shadow: 0 1px 1px #071a2d08;
}
.hero {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
.hero h2 {
  font-size: 19px;
  line-height: 24px;
}
.hero p {
  color: var(--cyan);
  font-size: 16px;
  line-height: 24px;
}
.purchase {
  margin-top: 12px;
}
.tag {
  color: #14768b;
  font-size: 12px;
  font-weight: 750;
}
.hero .tag {
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 30px;
  line-height: 35px;
}
.hero .text-button {
  color: #fff;
  background: transparent;
  padding-left: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}
.section-heading p {
  font-size: 16px;
  margin: 3px 0;
}
.section-title {
  margin: 22px 0 12px;
}
.section-heading h2 {
  font-size: 22px;
}
button,
.button {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  padding: 12px 18px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.full {
  width: 100%;
}
.quiet {
  background: #eaf5ff;
  color: var(--blue);
}
.pill {
  border-radius: 30px;
  min-height: 40px;
  padding: 8px 13px;
}
.round {
  border-radius: 50%;
  padding: 12px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.link,
.text-button {
  background: transparent;
  color: var(--blue);
  padding: 10px 4px;
}
.danger {
  color: #b3261e;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin-top: 6px;
  border: 1px solid #91a7b4;
  border-radius: 16px;
  background: #fff;
  color: var(--deep);
  padding: 14px 16px;
  font-size: 16px;
}
input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
input[readonly] {
  background: #f3f6fa;
  color: var(--muted);
}
input[type="file"] {
  font-size: 13px;
  padding: 12px;
}
input[type="date"] {
  appearance: none;
  min-height: 54px;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #91a7b4;
  border-radius: 18px;
  background: #fff;
  padding: 0 16px;
  margin: 14px 0;
}
.search input {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 16px 0;
  outline: 0;
  font-weight: 400;
}
.search:focus-within {
  outline: 2px solid var(--blue);
}
.search .icon {
  color: var(--deep);
}
.store-wrap {
  margin: 10px 0;
}
.store-wrap > .full {
  margin-top: 4px;
}
.location-card {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 14px;
  min-height: 112px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--deep);
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--brand) 14%, white),
    color-mix(in srgb, var(--accent) 18%, white),
    white
  );
  box-shadow: 0 2px 1px #071a2d12;
}
.location-card.selected {
  border: 2px solid var(--accent);
  padding: 13px;
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--brand, #2563eb),
    var(--accent, #22c7e8)
  );
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar .icon {
  width: 34px;
  height: 34px;
}
.avatar b {
  font-size: 16px;
}
.store-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.store-copy > strong {
  font-size: 16px;
  line-height: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.address {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.address .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
  margin-right: 4px;
}
.store-badge {
  color: var(--brand);
  font-size: 13px;
}
.distance {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.founder {
  font-size: 10px;
  line-height: 16px;
  background: #fff0c5;
  border-radius: 20px;
  padding: 0 6px;
  color: #755708;
}
.followed {
  color: #117a8a;
  background: #c9edf0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 7px;
  white-space: nowrap;
}
.location-card > .icon {
  width: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.followed-strip p {
  font-size: 13px;
  margin: 2px 0 8px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}
.chip {
  background: #f3f6fa;
  color: var(--deep);
  border-radius: 40px;
  white-space: nowrap;
  padding: 7px 12px 7px 7px;
  min-height: 42px;
}
.chip.chosen {
  background: var(--deep);
  color: #fff;
}
.avatar.small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.avatar.small b {
  display: none;
}
.avatar.small .icon {
  width: 19px;
  height: 19px;
}
.balance {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.balance strong {
  font-size: 25px;
  line-height: 30px;
}
.balance p {
  font-size: 14px;
  margin: 4px 0 0;
}
.balance-icon {
  width: 48px;
  height: 48px;
  background: #22c7e829;
  border-radius: 16px;
  color: var(--cyan);
  display: grid;
  place-items: center;
}
.balance .round {
  color: var(--cyan);
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 8px;
}
progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  accent-color: var(--blue);
  margin: 12px 0;
  background: #e3ecff;
}
progress::-webkit-progress-bar {
  background: #e3ecff;
}
progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 10px;
}
.reward {
  padding: 16px 18px;
}
.reward.ready {
  border: 3px solid #f4b942;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 3px #fff;
}
.reward summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}
.disclosure-label {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.disclosure-label:after {
  content: "Ver premio ▾";
}
details[open] > summary .disclosure-label:after {
  content: "Cerrar ▴";
}
summary {
  cursor: pointer;
  list-style: none;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 750;
}
summary::-webkit-details-marker {
  display: none;
}
summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
.reward-caption {
  font-size: 13px;
  line-height: 18px;
  margin: 4px 0 0;
}
details[open] + .reward-caption {
  display: none;
}
.reward-body {
  padding-top: 12px;
}
.reward-visual {
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--brand, #2563eb),
    var(--accent, #22c7e8)
  );
  padding: 20px 14px;
  color: white;
  text-align: center;
}
.reward-visual h3 {
  font-size: 19px;
  line-height: 24px;
}
.reward-visual p {
  color: #fff;
  font-size: 14px;
}
.visual-icon .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.stamps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.stamp {
  width: 36px;
  height: 36px;
  border: 1px dashed #ffffff80;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff20;
}
.stamp.filled {
  background: #fff;
  color: var(--blue);
  border-style: solid;
}
.stamp .icon {
  width: 20px;
  height: 20px;
}
.saved summary > .icon {
  color: #0a9670;
}
.history-card {
  padding: 14px 16px;
}
.history-card summary > .icon {
  color: var(--blue);
}
.history {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.history strong {
  font-size: 14px;
  display: block;
}
.history span:not(.history-icon) {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.history b {
  font-size: 13px;
  white-space: nowrap;
}
.history-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eaf5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.history-icon .icon {
  width: 20px;
  height: 20px;
}
.earned {
  color: #0c9470;
}
.empty {
  padding: 24px 18px;
  text-align: center;
  color: #8293a6;
}
.empty > .icon {
  width: 34px;
  height: 34px;
}
.empty p {
  max-width: 320px;
  margin: 12px auto;
  font-size: 14px;
}
.status {
  background: #eaf5ff;
  border: 1px solid #c9def7;
  border-radius: 16px;
  padding: 14px;
  color: var(--deep);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.busy {
  flex-shrink: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #c5d7ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
nav {
  position: fixed;
  z-index: 3;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 8px #071a2d03;
}
nav button {
  background: transparent;
  color: #7b8797;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  border-radius: 0;
  padding: 0 6px;
  font-size: 12px;
  line-height: 17px;
}
nav button > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 34px;
  border-radius: 25px;
}
nav button.active {
  color: var(--deep);
}
nav button.active > span {
  background: #eaf5ff;
  color: var(--blue);
}
nav .icon {
  width: 23px;
  height: 23px;
}
#notice {
  display: none;
  position: fixed;
  z-index: 5;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  max-width: 600px;
  margin: auto;
  background: var(--deep);
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  font-size: 14px;
  box-shadow: 0 5px 20px #071a2d30;
}
#notice.show {
  display: block;
}
.dialog-notice {
  background: #eaf5ff;
  border-radius: 12px;
  padding: 12px;
  color: var(--deep);
}
dialog {
  width: min(94vw, 480px);
  max-height: 85vh;
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  color: var(--deep);
  background: #fff;
}
dialog::backdrop {
  background: #071a2d88;
}
dialog h2 {
  margin-bottom: 12px;
}
dialog > [data-close] {
  margin-top: 14px;
}
dialog form button[type="submit"] {
  margin-top: 10px;
}
dialog ol {
  line-height: 1.8;
  padding-left: 24px;
}
dialog .full + .full {
  margin-top: 10px;
}
.detail-brand {
  text-align: center;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--brand) 15%, white),
    color-mix(in srgb, var(--accent) 20%, white)
  );
}
.detail-brand h2 {
  margin: 12px 0 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.detail-actions > button {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}
.promotion {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
}
.promotion small {
  color: var(--muted);
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-summary > div {
  min-width: 0;
}
.profile-summary h2 {
  font-size: 19px;
}
.profile-summary p {
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 4px 0;
}
.profile-photo {
  display: grid;
  place-items: center;
  background: #eaf5ff;
  color: var(--blue);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-actions {
  padding: 0 16px;
}
.account-row {
  width: 100%;
  background: transparent;
  color: var(--deep);
  min-height: 74px;
  border-radius: 0;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.account-row:last-child {
  border-bottom: 0;
}
.account-row strong {
  display: block;
  font-size: 16px;
}
.account-row small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}
.account-row > .icon:last-child {
  width: 18px;
  color: #7b8797;
}
.account-row.danger {
  color: #b3261e;
}
.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #eaf5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.wheel-shell {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 12px auto;
  border: 7px dotted #f4b942;
  border-radius: 50%;
  background: #071a2d;
  padding: 8px;
}
.wheel-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid #e3b454;
  border-radius: 50%;
}
.ball-orbit {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}
.ball-orbit i {
  position: absolute;
  right: 6px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid #f4b942;
  box-shadow: 0 1px 3px #0008;
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  background: #071a2d;
  color: #fff;
  border: 2px solid #f4b942;
}
.scratch-preview {
  background: linear-gradient(120deg, #dfe7ef, #9badbe, #e4ebf1);
  color: #344b63;
  border: 2px dashed #eaf5ff;
  border-radius: 18px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scratch-preview > span {
  font-size: 12px;
  letter-spacing: 3px;
}
.scratch-area {
  position: relative;
  width: 100%;
  aspect-ratio: 600/320;
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 0;
  background: linear-gradient(120deg, #2563eb, #22c7e8);
}
.scratch-area canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.scratch-prize {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: white;
  font-weight: 800;
  font-size: 24px;
}
.prize-label {
  font-size: 22px;
  color: var(--blue);
  font-weight: 800;
}
#prizeResult {
  text-align: center;
  margin-top: 16px;
}
a {
  color: var(--blue);
}
footer {
  font-size: 12px;
  color: var(--muted);
  line-height: 18px;
  margin-top: 18px;
}
#google {
  margin: 16px 0;
}
@media (min-width: 650px) {
  body {
    padding-top: 20px;
  }
  header {
    border-radius: 22px 22px 0 0;
  }
  main {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-height: 90vh;
  }
}
@media (max-width: 360px) {
  .location-card {
    gap: 8px;
    padding: 12px;
  }
  .avatar {
    width: 58px;
    height: 64px;
  }
  .followed {
    font-size: 9px;
    padding: 4px;
  }
  .store-copy > strong {
    font-size: 14px;
  }
  .address {
    font-size: 11px;
  }
  .disclosure-label {
    font-size: 11px;
  }
  .balance {
    gap: 8px;
    padding: 14px;
  }
  .balance strong {
    font-size: 22px;
  }
  .detail-actions {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .busy {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
.explore-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}.explore-tools .round{flex:none;color:#fff;background:#ffffff20}
.store-entry{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto;font-size:11px;color:var(--blue)}.store-entry>span:last-child{display:flex;align-items:center;gap:3px}.store-entry .icon{width:13px;height:13px}
.reward-type-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;background:#eaf5f8;border:1px solid #dce9ee;border-radius:12px}.reward-type-icon svg{width:38px;height:38px;display:block}.reward summary>.grow{min-width:0;overflow-wrap:anywhere}.reward summary small{display:block;color:var(--blue);font-weight:500;font-size:12px;margin-top:4px}
#customerMap{height:min(58vh,480px);width:100%;border-radius:16px;background:#eaf0f5;isolation:isolate}.leaflet-popup-content button{font:inherit;padding:10px;min-height:42px}.leaflet-container{color:#071a2d}.leaflet-container a{color:#2563eb}
@media(max-width:360px){.location-card{gap:8px}.location-card>.avatar{width:48px;height:48px;flex-basis:48px}.store-entry{font-size:10px}.store-entry .followed{font-size:9px}}
