:root {
  color-scheme: light;
  --ink: #172d2a;
  --muted: #4d625e;
  --brand: #006d65;
  --deep: #063e37;
  --light: #ebf5ef;
  --paper: #f8f7f2;
  --line: #d8e1da;
  --white: #fff;
  --focus: #825422;
  --radius: 18px;
  font-family: Montserrat, 'Trebuchet MS', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), select, summary, input[type=checkbox] { cursor: pointer; }
img, canvas { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, figure { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.038em; }
p, dd, input, td { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.1rem; }
dd { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, Consolas, monospace; }

.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 5; padding: .75rem; background: var(--white); translate: 0 -140%; }
.skip:focus { translate: 0; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-content { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: clamp(8rem, 15vw, 10.5rem); }
.product-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.product-nav a { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.product-nav a[aria-current] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .87rem; background: var(--white); }
.site-footer strong { color: var(--ink); }
.site-footer p { margin-top: 3px; }
.product-demo-note { background: #fff2d6; color: #604314; font-size: .8rem; line-height: 1.4; padding: 7px 12px; text-align: center; }

.button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; font-size: .95rem; font-weight: 700; }
.button { max-width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 10px 17px; text-align: center; text-decoration: none; }
.button:hover { text-decoration: none; }
.primary { color: var(--white); background: var(--brand); }
.primary:hover:not(:disabled) { background: #00584f; }
.secondary { color: var(--deep); background: var(--white); border-color: #aabdb4; }
.secondary:hover:not(:disabled) { background: var(--light); }
.on-dark { color: var(--deep); background: #d5f0df; align-self: flex-start; }
.on-dark:hover { background: #f1f9ef; }
.on-dark:focus-visible, .admin-nav a:focus-visible { outline-color: #f4cc85; }
.button:disabled { color: #3f5550; background: #dce6de; border-color: #d1ded5; }
.text-button { background: transparent; border: 0; padding: 5px 0; color: var(--brand); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.actions > a:not(.button), .back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; border-radius: 999px; padding: 4px 9px; font-size: .75rem; font-weight: 700; line-height: 1.25; vertical-align: middle; }
.badge::before { content: ''; inline-size: .38rem; block-size: .38rem; background: currentColor; border-radius: 50%; flex: none; }
.badge.good, .portal-result.good { color: #185944; background: #e1f2e8; }
.badge.warn, .portal-result.warn { color: #704600; background: #fff1d2; }
.badge.quiet, .portal-result.quiet { color: #435853; background: #eff2ef; }
.badge.danger { color: #842b37; background: #fae9eb; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.notice { background: var(--light); color: var(--deep); border-radius: 8px; padding: 11px 13px; }
.notice.warm { background: #fff2d6; color: #664712; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3.8vw, 32px); min-width: 0; }
.panel > * + *, .flow > * + * { margin-top: 15px; }
.empty { border: 1px dashed #aabdb4; border-radius: 10px; padding: 22px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; gap: 10px 20px; align-items: flex-start; flex-wrap: wrap; }
.section-head p, .intro { color: var(--muted); }
.section-head h2 + p { margin-top: 5px; }

label { display: grid; gap: 5px; align-content: start; font-size: .9rem; font-weight: 700; min-inline-size: 0; }
input:not([type=checkbox]), select, textarea { display: block; color: var(--ink); background: var(--white); border: 1px solid #96aaa1; border-radius: 8px; padding: 10px 12px; min-inline-size: 0; width: 100%; min-height: 44px; font-weight: 400; }
input::placeholder { color: #5a6e68; }
input[readonly] { background: #eef2ee; }
input[type=checkbox] { width: 19px; height: 19px; flex: none; accent-color: var(--brand); margin: 0; }
textarea { resize: vertical; }
.stack { display: grid; gap: 15px; }
.stack > .button { justify-self: start; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.optional, label small, .field-help { color: var(--muted); font-size: .83rem; font-weight: 500; }
label:has(> .optional) { display: block; }
label:has(> .optional) > input { margin-top: 5px; }
.form-message { color: var(--deep); font-size: .9rem; }
.form-message:empty { margin: 0; }
.stack:has(> .form-message:empty) > .form-message { margin-bottom: -15px; }

.consumer-home { padding: 26px 0 30px; }
.hero { display: grid; gap: 0; background: #05443d; color: var(--white); border-radius: 20px; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; min-width: 0; gap: 10px; padding: clamp(18px, 3vw, 36px); }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero h1 span { color: #9ce6c4; }
.hero .eyebrow { color: #c4f0d9; }
.hero-copy > p:not(.eyebrow) { font-size: 1rem; max-width: 38ch; color: #f2f8f4; }
.hero-media { display: grid; place-items: center; min-width: 0; padding: 12px; }
.hero-media img { width: 100%; height: clamp(100px, 26vw, 155px); object-fit: contain; }
.hero-art-note { color: #e0f4e9; font-size: .75rem; margin: 4px 0 2px; text-align: center; }
.hero .campaign-dates { border-top-color: #84aa9a; color: #e0f4e9; }
.hero .campaign-dates dt { color: #c6edde; }
.hero-windows .campaign-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding-top: 8px; }
.window-details { margin-top: 2px; font-size: .82rem; }
.window-details summary { display: list-item; width: fit-content; padding: 5px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.window-details summary:focus-visible { outline-color: #f4cc85; }
.window-details dl { display: grid; gap: 6px; padding-top: 3px; }
.window-details dt { font-weight: 700; }
.campaign-dates { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .83rem; }
.campaign-dates dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.campaign-dates dd { margin-top: 2px; font-weight: 700; }
.consumer-home > .notice { margin-top: 14px; }
.catalogue { padding-top: 33px; }
.catalogue .section-head { align-items: center; }
#catalogue-title { scroll-margin-top: 20px; }
.filters { display: grid; gap: 9px 15px; margin-top: 16px; }
.results-count { margin: 13px 0 8px; color: var(--muted); font-size: .85rem; }
.offer-grid { --offer-gap: clamp(9px, 1.2vw, 15px); display: grid; gap: var(--offer-gap); }
.offer-grid .empty { grid-column: 1 / -1; }
.offer-card { background: var(--white); display: grid; grid-template-rows: 1fr auto; min-width: 0; border: 1px solid #c7d3ca; border-radius: 13px; }
.offer-card-featured { box-shadow: inset 0 3px #8663a8; border-color: #bca8cf; }
.offer-card-owned { border-color: #8dbba5; background: #f2f8f4; }
.offer-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.offer-interaction { position: relative; display: flex; min-width: 0; flex-direction: column; text-align: center; color: var(--ink); }
.offer-wallet-link { text-decoration: none; }
.offer-wallet-link:hover .offer-choice { text-decoration: underline; }
.offer-brand { display: grid; justify-items: center; align-content: end; gap: 4px; min-height: 122px; padding: 11px 7px 8px; }
.offer-brand .store-mark { width: min(100%, 136px); height: 60px; margin-bottom: 3px; font-size: 1.15rem; }
.offer-brand .store-logo, .wallet-grid .store-logo { background: #fff; }
.offer-brand h3 { font-size: .91rem; overflow-wrap: anywhere; letter-spacing: -.015em; }
.offer-brand p, .ticket-header p { color: var(--muted); font-size: .75rem; }
.offer-brand .featured-badge { color: #402457; background: #f3e8fb; }
.offer-band { display: grid; place-items: center; padding: 8px 5px; min-height: 45px; color: #111827; background: #d8eee5; font-size: clamp(1.03rem, 2.35vw, 1.5rem); line-height: 1.15; overflow-wrap: anywhere; }
.offer-band.percent-50 { background: #9b8fe5; }
.offer-band.percent-30 { background: #88c2aa; }
.offer-band.percent-25 { background: #f4c889; }
.offer-band.percent-20 { background: #f578c2; }
.offer-band.percent-15 { background: #f66332; }
.offer-band.percent-other { background: #4a81e9; }
.offer-condition { color: var(--ink); font-size: .82rem; padding: 8px 8px 2px; }
.offer-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; font-size: .81rem; font-weight: 700; min-height: 44px; margin-top: auto; padding: 5px; }
.offer-pick { cursor: pointer; }
.offer-pick::before { content: ""; position: absolute; inset: 0; border-radius: 12px 12px 0 0; }
.offer-pick input { position: relative; z-index: 1; }
.offer-pick:focus-within::before { outline: 2px solid var(--focus); outline-offset: -3px; }
.offer-pick .pick-active, .offer-pick input:checked ~ .pick-idle { display: none; }
.offer-pick input:checked ~ .pick-active { display: inline; color: var(--deep); }
@supports (grid-template-rows: subgrid) {
  .offer-grid { row-gap: 0; }
  /* Share each content track within a visual row. An empty condition adds no gap. */
  .offer-card { grid-row: span 5; grid-template-rows: subgrid; margin-block-end: var(--offer-gap); }
  .offer-interaction { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .offer-brand { grid-row: 1; }
  .offer-interaction > .offer-band { grid-row: 2; }
  .offer-interaction > .offer-condition { grid-row: 3; }
  .offer-interaction > .offer-choice { grid-row: 4; }
  .offer-actions { grid-row: 5; }
}
@media (hover: hover) {
  .offer-pick:hover { background: var(--light); }
}
.store-mark { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: .92rem; font-weight: 800; }
.store-logo { width: 126px; max-width: 100%; height: 84px; padding: 8px; background: #f7f7f4; }
.store-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.mint { color: #1d5b46; background: #d8efe5; }
.peach { color: #71391e; background: #f7dfcb; }
.lilac { color: #4e326d; background: #ede0fa; }
.rose { color: #783346; background: #f5dbe1; }
.sky { color: #225675; background: #dcedf4; }
.sand { color: #6b521d; background: #f4ead1; }
.detail-value, .ticket-copy strong { color: var(--deep); display: block; font-weight: 800; font-size: clamp(1.72rem, 4.2vw, 2.3rem); letter-spacing: -.055em; line-height: 1.1; overflow-wrap: anywhere; }
.ticket-copy p { margin-top: 4px; font-size: .91rem; color: var(--muted); }
.offer-actions { border-top: 1px dashed #a6baae; display: grid; text-align: center; }
.offer-actions a { display: grid; place-items: center; min-height: 44px; padding-inline: 4px; font-size: .85rem; font-weight: 700; scroll-margin-block: 20px; }
.check-action { display: flex; flex: none; align-items: center; border-radius: 7px; padding: 8px 9px; min-height: 44px; font-weight: 800; background: var(--light); color: var(--deep); }
.selection-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.selection-dock { position: sticky; bottom: 10px; z-index: 2; margin-top: 18px; }
.selection-inner { display: flex; justify-content: space-between; align-items: center; gap: 9px 15px; border: 1px solid #abc7b7; border-radius: 13px; background: #f2faf4; box-shadow: 0 8px 20px #12382c20; padding: 8px 10px; }
.selection-inner p { font-weight: 800; font-size: .88rem; }
.selection-inner .text-button { font-size: .83rem; }
.selection-inner .button { white-space: normal; }

.page-wrap, .validator-wrap { width: min(100% - 32px, 740px); padding-block: 24px 44px; }
.page-wrap > .back { margin-bottom: 11px; }
.flow h1 { font-size: clamp(1.95rem, 6vw, 3rem); }
.flow h2 { font-size: 1.45rem; }
.flow > p { max-width: 66ch; }
.detail-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.detail-offer > div { min-width: 0; max-width: 100%; }
.detail-offer > img { max-width: min(100%, 220px); border-radius: 8px; }
.detail-offer .store-logo { width: 16rem; height: 8rem; padding: .75rem; }
.detail-offer .detail-value { margin-top: 8px; }
.detail-selection { display: inline-flex; gap: 8px; }
.campaign-dates dd small { display: block; margin-top: 3px; font-weight: 400; }
.filters { align-items: end; }
.filters button { justify-self: start; }
.gastronomia { color: #71391e; background: #f7dfcb; }
.entretenimiento { color: #4e326d; background: #ede0fa; }
.moda { color: #1d5b46; background: #d8efe5; }
.belleza { color: #225675; background: #dcedf4; }
.hogar, .otros { color: #6b521d; background: #f4ead1; }
.selection-inner small { display: block; color: var(--muted); }
.flow-form { display: grid; gap: 14px; }
.flow-form > div:has(input:not([type="checkbox"])) { display: grid; gap: 4px; }
.flow-form > div:has(input[type="checkbox"]) label { display: inline; }
.flow-form .button { justify-self: start; }
.flow-list { margin: 0; padding-inline-start: 1.5rem; }
.field-note { color: var(--muted); font-size: .87rem; }
.email-suggestion { margin-top: 4px; }
.email-suggestion p { word-wrap: break-word; }
.email-suggestion .actions { margin-top: 8px; }
.email-suggestion-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.errorlist { margin: 0; padding-inline-start: 1.2rem; color: #832f23; }
.wallet-list { max-width: 1100px; width: min(100% - 24px, 1100px); }
.wallet-grid { display: grid; gap: 11px; }
.wallet-card { display: grid; justify-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wallet-grid .wallet-card { grid-template-rows: 1fr auto; justify-items: stretch; gap: 8px; min-width: 0; text-align: center; padding: 0 0 9px; }
.wallet-grid .offer-top { display: grid; justify-items: center; align-content: start; gap: 7px; padding-top: 9px; }
.wallet-grid .store-logo { height: 68px; }
.wallet-grid h2 { font-size: clamp(1rem, 2vw, 1.2rem); margin-inline: 6px; overflow-wrap: anywhere; }
.wallet-grid .offer-band { width: 100%; }
.wallet-grid .badge { margin: 3px 4px; }
.wallet-grid .wallet-card > .button { justify-self: center; margin-inline: 6px; }
.coupon-code { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; background: var(--light); border-radius: 12px; padding: 12px; }
.coupon-code img { width: 176px; aspect-ratio: 1; image-rendering: pixelated; }
.coupon-code .demo-qr { aspect-ratio: auto; }
.coupon-code > .notice { flex-basis: 100%; }
.coupon-code code { font-size: clamp(1rem, 5vw, 1.5rem); font-weight: 800; letter-spacing: .07em; }
.validator-wrap { max-width: 630px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-result { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--light); }
.camera { display: grid; gap: 8px; justify-items: start; }
.camera video { width: min(100%, 480px); border-radius: 12px; background: var(--deep); }

@media (min-width: 550px) {
  .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; max-width: 750px; }
}
@media (min-width: 350px) {
  .offer-grid, .wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 680px) {
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media img { height: clamp(180px, 25vw, 295px); }
  .selection-inner { padding: 10px 16px; }
}
@media (min-width: 980px) {
  .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wallet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .offer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .wrap, .page-wrap { width: calc(100% - 24px); }
  .topbar-content { gap: 6px; flex-wrap: wrap; padding-block: 7px; }
  .product-nav { font-size: .86rem; }
  .consumer-home { padding-top: 15px; }
  .consumer-home:has(.selection-dock:not([hidden])), .page-wrap:has(.selection-dock:not([hidden])) { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  html:has(.selection-dock:not([hidden])) { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .hero-copy { padding: 16px 16px 5px; gap: 7px; }
  .hero-media { padding: 7px 12px 10px; }
  .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.35rem); }
  .selection-dock { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 6px env(safe-area-inset-bottom, 0px); }
  .selection-inner { border-radius: 10px 10px 0 0; }
  .selection-inner .button { font-size: .85rem; padding: 8px 10px; }
}
