/* Application integration for the approved Talón 2 proposal.
   Keep css/talon.css byte-identical; this module only connects real application
   markup and behavior to the proposal components. */

[hidden] { display: none !important; }
#toTop {
  position: fixed; right: var(--space-4); bottom: calc(76px + var(--space-3) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-sticky);
  display: inline-grid; place-items: center; background: var(--color-surface); box-shadow: var(--shadow-md);
}

/* Staging access is intentionally self-contained and available before its cookie exists. */
body.t.dev-pwa-access {
  min-height:100vh; margin:0; display:grid; place-items:center;
  padding:var(--space-5); background:var(--color-bg); color:var(--color-text-primary);
}
body.t.dev-pwa-access .dev-pwa-access__panel {
  width:min(100%,420px); gap:var(--space-4); padding:var(--space-6); box-shadow:var(--shadow-md);
}
body.t.dev-pwa-access .dev-pwa-access__panel :is(h1,p) { margin:0; }
body.t.dev-pwa-access .dev-pwa-access__panel > p { color:var(--color-text-secondary); }
body.t.dev-pwa-access .dev-pwa-access__eyebrow {
  color:var(--color-brand-mid); font:700 var(--text-xs)/1.2 var(--font-mono); text-transform:uppercase;
}
body.t.dev-pwa-access form { display:grid; gap:var(--space-4); }
body.t.dev-pwa-access .talon-field { width:100%; }
body.t.dev-pwa-access .t-btn { width:100%; }

@media (max-width:767px) {
  body.t.dev-pwa-access { padding:var(--space-4); }
  body.t.dev-pwa-access .dev-pwa-access__panel { padding:var(--space-5); }
}
#toTop .talon-icon--up { transform: rotate(90deg); transform-origin: center; }
.talonaria-dev-banner {
  position: fixed; top: 0; right: 0; left: 0; z-index: 2147483000; display: flex; min-height: 36px;
  padding: 4px 12px; align-items: center; justify-content: center; pointer-events: none;
  background: repeating-linear-gradient(135deg, #ffcf00 0, #ffcf00 12px, #111827 12px, #111827 24px);
  color: var(--color-surface); box-shadow: 0 3px 12px rgba(0, 0, 0, .22); font: 700 var(--text-xs)/1.2 var(--font-mono, monospace);
  text-align: center; text-transform: uppercase;
}
.talonaria-dev-banner__inner {
  display: block; max-width: 100%; overflow: hidden; padding: 3px 10px; border: 1px solid rgba(255, 207, 0, .9);
  border-radius: var(--radius-pill); background: #111827; color: #ffcf00; text-overflow: ellipsis; white-space: nowrap;
}
body.talonaria-dev-environment,
body.fixed.talonaria-dev-environment { padding-top: 36px !important; }
body.talonaria-dev-environment header { top: 36px !important; }
body.talonaria-dev-environment .sidebar { top: 114px !important; height: calc(100vh - 114px) !important; }

body.t img { max-width: 100%; height: auto; }
body.t .t-ph > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; display: block;
}
body.t .t-ph > .t-tag { position: relative; z-index: 1; }
body.t .t-search input[type="search"] {
  min-width: 0; flex: 1; width: 100%; padding: 0; border: 0; outline: 0;
  background: transparent; color: inherit; font: inherit;
}
body.t .t-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
body.t .t-search [data-offers-search-clear] { flex: none; }

body.t [data-home-hero] { background: var(--color-brand-dark); color: var(--color-surface); }
body.t [data-home-hero] .eyebrow { color: var(--color-brand); }
body.t [data-home-hero] h1 { color: var(--color-surface); }
body.t [data-home-hero] p { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  body.t [data-listings-carousel] { cursor: grab; }
  body.t [data-listings-carousel][data-carousel-dragging="true"] { cursor: grabbing; user-select: none; }
}
body.t [data-weekly-header] { width: 100%; justify-content: space-between; align-items: baseline; flex-wrap: nowrap; }
body.t [data-weekly-header] h3 { font: 700 var(--text-lg)/1.1 var(--font-display); }
body.t [data-weekly-header] a { flex: none; font-size: var(--text-sm); font-weight: 600; color: var(--color-brand-dark); }
body.t [data-public-header] {
  width: 100%; min-height: 64px; padding: 6px 12px; border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
body.t [data-public-menu] { flex: none; }
body.t [data-public-header] > .ttl { display: flex; align-items: center; min-width: 0; }
body.t [data-public-header] > .ttl img { display: block; width: auto; max-width: 138px; height: 52px; object-fit: contain; }
body.t [data-public-nav],
body.t [data-public-account] { display: none; }
body.t [data-public-header] .lang { flex: none; white-space: nowrap; }
body.t #talonMenu[data-menu-dropdown] {
  position: absolute; inset: 68px 12px auto auto; width: min(280px, calc(100vw - 24px)); max-height: calc(100vh - 88px);
  margin: 0; padding: var(--space-2); overflow: auto; border: 1px solid var(--color-border-mid); border-radius: var(--radius-md);
  z-index: var(--z-sheet); background: var(--color-surface); box-shadow: var(--shadow-md);
}
body.talonaria-dev-environment #talonMenu[data-menu-dropdown] { top: 112px; }
body.t #talonMenu .t-group { margin: var(--space-2) 0; text-transform: none; letter-spacing: 0; }
body.t #talonMenu .t-list a { font: 600 var(--text-md)/1.2 var(--font-body); text-transform: none; letter-spacing: 0; }
body.t #talonMenu [data-whatsapp-icon] { width: 24px; height: 24px; object-fit: contain; flex: none; }

@media (min-width: 1200px) {
  #toTop { bottom: var(--space-5); }
  body.t [data-public-header] { min-height: 88px; gap: var(--space-5); padding: var(--space-3) var(--space-5); }
  body.t [data-public-menu] { display: none; }
  body.t [data-public-header] > .ttl { flex: none; margin-right: var(--space-2); }
  body.t [data-public-nav] { display: flex; align-items: center; gap: var(--space-5); }
  body.t [data-public-nav] a {
    padding: var(--space-2) 0; color: var(--color-brand-dark); font: 700 var(--text-sm)/1.2 var(--font-mono);
    text-decoration: none;
  }
  body.t [data-public-nav] a:hover,
  body.t [data-public-nav] a:focus-visible,
  body.t [data-public-nav] a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  body.t [data-public-header] .lang { margin-left: auto; font: 700 var(--text-sm)/1.2 var(--font-mono); }
  body.t [data-public-account] { display: inline-flex; }
}

body.t [data-cookie-consent] {
  position: fixed; top: auto; right: 0; bottom: 0; left: 0;
  width: 100vw; max-width: none; margin: 0; transform: none;
  z-index: var(--z-consent);
}

body.t [data-business-hero] { gap: 8px; }
body.t [data-business-skyline] {
  position: relative; height: 120px; padding: 0; overflow: hidden;
  background: linear-gradient(160deg, #f6e9c9 0%, #e9d9b0 55%, #cfe3c8 55%, #bcd8b3 100%);
}
body.t [data-business-building] {
  position: absolute; bottom: 30px; width: 46px; border-radius: 6px 6px 0 0;
  background: var(--color-surface); box-shadow: inset 0 -16px 0 color-mix(in srgb, var(--color-brand-dark) 8%, transparent);
}
body.t [data-business-building]::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 10px;
  border-radius: 3px; background: var(--color-brand);
}
body.t [data-business-building]:nth-child(1) { left: 12px; height: 58px; }
body.t [data-business-building]:nth-child(2) { left: 70px; height: 70px; }
body.t [data-business-building]:nth-child(3) { left: 128px; height: 58px; }
body.t [data-business-building]:nth-child(4) { left: 186px; height: 66px; }
body.t [data-business-skyline-label] {
  position: absolute; left: 12px; bottom: 10px;
  font: 700 9px/1 var(--font-mono); letter-spacing: .08em; color: var(--color-brand-dark);
}
body.t [data-business-hero] h1 { font-size: var(--text-xl); margin: 0; }
body.t [data-business-hero] > p { font-size: var(--text-sm); line-height: 1.5; }
body.t [data-business-steps] h2 { margin: 0; }
body.t [data-welcome-pack] { background: var(--color-brand); }
body.t [data-public-pack] > p { margin: 0; }
body.t [data-public-pack] > ul { margin: 0; padding-left: 20px; color: var(--color-text-secondary); }
body.t #publicPackComparison { width: min(760px, calc(100% - 24px)); }
body.t [data-public-pack-table] { overflow-x: auto; }
body.t [data-public-pack-table] th,
body.t [data-public-pack-table] td { min-width: 104px; text-align: left; }

body.t [data-public-cartilla] { width: min(100%, 620px); }
body.t [data-public-cartilla-hero] {
  gap: 8px; background: var(--color-brand); color: var(--color-brand-dark);
  box-shadow: inset 0 0 0 2px var(--color-brand-dark);
}
body.t [data-public-cartilla-hero] .eyebrow,
body.t [data-public-cartilla-hero] h2 { color: var(--color-brand-dark); }
body.t [data-public-cartilla-hero] h2,
body.t [data-public-cartilla-hero] p { margin: 0; }
body.t [data-public-cartilla-rewards] .box {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start;
}
body.t [data-public-cartilla-rewards] .box > span { display: grid; gap: 3px; }
body.t [data-public-cartilla-rewards] small { color: var(--color-text-secondary); font-size: var(--text-sm); }
body.t [data-public-cartilla-actions] { justify-items: stretch; }
body.t [data-public-cartilla-actions] .t-btn--text { justify-self: center; }

body.t [data-map-content] {
  position: relative; min-height: min(760px, calc(100dvh - 132px));
  overflow: hidden; background: #e4ece3;
}
body.t [data-map-canvas-wrap],
body.t [data-map-content] #mapCanvasTwo { position: absolute; inset: 0; width: 100%; height: 100%; }
body.t [data-map-overlay] {
  position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px;
  display: grid; gap: 8px;
}
body.t [data-map-overlay] .t-search { background: var(--color-surface); box-shadow: var(--shadow-md); }
body.t [data-map-overlay] [data-offers-map-toolbar] { justify-content: space-between; }
body.t [data-map-service-marker] { position: absolute; z-index: 4; top: 148px; left: 12px; }
body.t [data-map-service-marker-pin] {
  position: relative; width: 44px; height: 48px; overflow: visible;
  border: 1.8px solid var(--color-brand-dark); border-radius: var(--radius-sm); background: var(--color-surface);
  color: var(--color-brand-dark); box-shadow: var(--shadow-md);
}
body.t [data-map-service-marker-pin]::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px;
  border-right: 1.8px solid var(--color-brand-dark); border-bottom: 1.8px solid var(--color-brand-dark);
  background: var(--color-surface); transform: translateX(-50%) rotate(45deg);
}
body.t [data-map-service-marker-pin] > .talon-icon {
  width: 30px; height: 30px; padding: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--color-brand-mid) 22%, var(--color-surface));
}
body.t [data-map-service-marker-pin] > span {
  position: absolute; right: 2px; top: 2px; z-index: 1; min-width: 18px; height: 18px; padding-inline: 4px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--color-brand-dark); color: var(--color-brand); font: 700 10px/1 var(--font-mono);
}
/* Compact Google Maps offer card. The approved component sheet does not
   contain third-party InfoWindow chrome, so the application adapter owns it. */
body.t [data-offers-page] .gm-style .gm-style-iw-c {
  padding: 0 !important; overflow: visible !important; border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
}
body.t [data-offers-page] .gm-style .gm-style-iw-d {
  overflow: hidden !important; border-radius: var(--radius-lg) !important;
}
body.t [data-offers-page] .gm-style .gm-style-iw-chr {
  position: absolute !important; top: 8px; right: 8px; z-index: 30; height: 0 !important;
}
body.t [data-offers-page] .gm-style .gm-style-iw-chr .gm-ui-hover-effect {
  display: grid !important; place-items: center; width: 36px !important; height: 36px !important;
  margin: 0 !important; padding: 0 !important; border-radius: var(--radius-pill) !important;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent) !important;
  opacity: 1 !important; box-shadow: var(--shadow-sm);
}
body.t [data-offers-page] .gm-style .gm-style-iw-chr .gm-ui-hover-effect > span { margin: 0 !important; opacity: .82; }
body.t .map-offer-popup {
  width: 260px; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface);
}
body.t .map-offer-popup--touch { padding: var(--space-3); }
body.t .map-offer-gallery,
body.t .map-popup-image-frame { position: relative; }
body.t .map-popup-image-frame {
  height: 178px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-surface-alt);
}
body.t .map-popup-image-link,
body.t .map-popup-image { display: block; width: 100%; height: 100%; }
body.t .map-popup-image { object-fit: cover; }
body.t .map-popup-image-frame--featured { box-shadow: inset 0 0 0 2px var(--color-brand); }
body.t .map-popup-featured-badge { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 7; }
body.t .map-popup-image-frame > .t-tag--benefit:not(.map-popup-featured-badge) {
  position: absolute; bottom: var(--space-2); left: var(--space-2); z-index: 7;
}
body.t .map-popup-bookmark { position: absolute; top: var(--space-2); right: 52px; z-index: 9; margin: 0; }
body.t .map-popup-bookmark .t-iconbtn { background: var(--color-surface); box-shadow: var(--shadow-sm); }
body.t .map-popup-body { display: grid; gap: 3px; padding: var(--space-2) var(--space-3); }
body.t .map-popup-title-link,
body.t .map-popup-image-link { color: inherit; text-decoration: none; }
body.t .map-popup-company { font-size: var(--text-md); font-weight: 700; line-height: 1.25; }
body.t .map-popup-offer { font-size: var(--text-md); line-height: 1.3; }
body.t .map-popup-address { padding: 0 var(--space-3) var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); }
body.t .map-popup-body > .map-popup-address { padding: 0; }
body.t .map-popup-address--touch { padding: 0; }
body.t .map-popup-maps-link {
  display: inline-flex; gap: var(--space-1); width: fit-content; min-height: var(--control-h-sm);
  padding: var(--space-1) 0; color: var(--color-brand-dark); font-size: var(--text-xs); font-weight: 700;
}
body.t .map-offer-nav { position: absolute; top: 89px; z-index: 8; transform: translateY(-50%); }
body.t .map-offer-prev { left: var(--space-2); }
body.t .map-offer-next { right: var(--space-2); }
body.t .map-offer-dots {
  position: absolute; top: 159px; right: 0; left: 0; z-index: 8;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
body.t .map-offer-dot {
  width: 7px; height: 7px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface) 48%, transparent);
  box-shadow: var(--shadow-sm);
}
body.t .map-offer-dot.is-active { background: var(--color-surface); }
html.offers-map-open,
html:has(body.t [data-map-content]:not([hidden])) {
  width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none;
}
body.t.offers-map-open {
  position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none;
}
body.t:has([data-map-content]:not([hidden])) {
  position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none;
  padding-top: 0 !important;
}
body.t.offers-map-open [data-public-header],
body.t.offers-map-open .talonaria-dev-banner,
body.t.offers-map-open .dfoot,
body.t.offers-map-open #toTop,
body.t:has([data-map-content]:not([hidden])) [data-public-header],
body.t:has([data-map-content]:not([hidden])) .talonaria-dev-banner,
body.t:has([data-map-content]:not([hidden])) .dfoot,
body.t:has([data-map-content]:not([hidden])) #toTop { display: none !important; }
body.t.offers-map-open [data-offers-page] {
  max-width: none; margin: 0; padding: 0;
}
body.t.offers-map-open [data-offers-page] > [data-map-content] {
  position: fixed; inset: 0; z-index: var(--z-sticky);
  width: 100%; height: 100dvh; min-height: 100dvh; border-radius: 0;
}
body.t [data-offers-page] > [data-map-content]:not([hidden]) {
  position: fixed; inset: 0; z-index: var(--z-sticky);
  width: 100%; height: 100dvh; min-height: 100dvh; border-radius: 0;
}

body.t [data-offers-filter-form] {
  gap: var(--space-5); padding-inline: var(--space-3);
}
body.t [data-offers-filter-heading] {
  width: 100%; flex-wrap: nowrap; justify-content: space-between; align-items: baseline;
}
body.t [data-offers-filter-heading] h2 { margin: 0; font-size: var(--text-xl); }
body.t [data-offers-filter-heading] a {
  flex: none; color: var(--color-brand-dark); font: 600 var(--text-sm)/1.2 var(--font-body);
}
body.t [data-offers-filter-group] {
  min-width: 0; margin: 0; padding: 0; border: 0; gap: var(--space-2);
}
body.t [data-offers-filter-group] legend {
  width: 100%; margin: 0 0 var(--space-2); padding: 0;
  color: var(--color-brand-dark); font: 700 var(--text-md)/1.2 var(--font-body);
}
body.t [data-offers-filter-group] .t-chips {
  flex-wrap: wrap; overflow: visible; padding-bottom: 0;
}
body.t [data-offers-filter-form] > .t-btn--primary { width: 100%; }
body.t [data-offers-pagination] { margin-top: var(--space-5); }
body.t [data-offers-page] { padding-bottom: var(--space-5); }

body.t .t-card,
body.t .t-feat { position: relative; }
body.t [data-card-hit] { position: absolute; inset: 0; z-index: 1; }
body.t .t-card form,
body.t .t-feat form { position: relative; z-index: 2; }

body.t.offer-counter-mode { background: var(--color-surface); }
body.t.offer-counter-mode main { padding: 0; }
body.t.offer-counter-mode #redeemCodeModal {
  position: fixed; inset: 0; z-index: 1200; overflow-y: auto;
  width: 100%; max-width: none; min-height: 100dvh; margin: 0; border: 0;
  border-radius: 0; background: var(--color-surface);
}
body.t [data-counter-shell] { width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; padding: 16px; align-content: start; }
body.t [data-counter-appbar] { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
body.t [data-counter-appbar] h1 { margin: 0; text-align: center; font-size: var(--text-lg); }
body.t [data-counter-ticket] { gap: 8px; }
body.t [data-counter-ticket] h2,
body.t [data-counter-ticket] p { margin: 0; }
body.t [data-counter-instructions] { text-align: center; }
body.t [data-counter-instructions] form { display: grid; gap: 16px; }
body.t.offer-counter-bright #redeemCodeModal { background: var(--color-surface); color: var(--color-brand-dark); }
body.t.offer-counter-bright [data-counter-ticket] { background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-brand-dark); }

body.t progress.t-progress {
  display: block; width: 100%; border: 0; appearance: none;
  background: var(--color-surface-alt); accent-color: var(--color-brand-dark);
}
body.t progress.t-progress::-webkit-progress-bar { background: var(--color-surface-alt); border-radius: 9px; }
body.t progress.t-progress::-webkit-progress-value { background: var(--color-brand-dark); border-radius: 9px; }
body.t progress.t-progress::-moz-progress-bar { background: var(--color-brand-dark); border-radius: 9px; }
body.t [data-loyalty-hero] { background: var(--color-brand-dark); color: var(--color-surface); border: 0; }
body.t [data-loyalty-hero] .t-help { color: var(--color-surface); opacity: .82; }
body.t [data-loyalty-hero] progress.t-progress,
body.t [data-loyalty-hero] progress.t-progress::-webkit-progress-bar { background: color-mix(in srgb, var(--color-surface) 18%, transparent); }
body.t [data-loyalty-hero] progress.t-progress::-webkit-progress-value,
body.t [data-loyalty-hero] progress.t-progress::-moz-progress-bar { background: var(--color-brand); }
body.t [data-loyalty-balance] { color: var(--color-brand); font-size: var(--text-3xl); }
body.t [data-completed-challenges] > summary { cursor: pointer; list-style: none; }
body.t [data-completed-challenges] > summary::-webkit-details-marker { display: none; }
body.t [data-completed-challenges] > div { margin-top: var(--space-4); }

body.t [data-account-page] { width: min(100%, 620px); }
body.t [data-account-profile] { display: flex; align-items: center; gap: 12px; padding: 6px 2px 2px; }
body.t [data-account-profile] .av {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--color-brand); box-shadow: inset 0 0 0 1.5px var(--color-brand-dark);
  font: 700 14px/1 var(--font-mono); color: var(--color-brand-dark);
}
body.t [data-account-profile] > span:last-child { display: grid; min-width: 0; }
body.t [data-account-profile] b { font-size: var(--text-md); }
body.t [data-account-profile] span span { overflow: hidden; color: var(--color-text-secondary); font-size: var(--text-sm); text-overflow: ellipsis; }
body.t .t-list [data-account-list-action],
body.t .t-list [data-account-list-row] {
  width: 100%; min-height: 52px; padding: 0 14px; display: flex; align-items: center; gap: 12px;
  border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: transparent;
  color: var(--color-brand-dark); font: 600 var(--text-md)/1.2 var(--font-body); text-align: left;
}
body.t .t-list [data-account-list-action]:first-child,
body.t .t-list [data-account-list-row]:first-child { border-top: 0; }
body.t .t-list [data-account-list-action] > span:nth-child(2),
body.t .t-list [data-account-list-row] > span:nth-child(2) { flex: 1; min-width: 0; }
body.t [data-account-logout] { justify-self: start; margin-top: 4px; }
body.t [data-following-page] { width: min(100%, 620px); margin-inline: auto; }
body.t [data-following-list] { display: grid; gap: 10px; }
body.t [data-follow-list-item] { padding: 14px; }
body.t [data-following-row] { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; }
body.t [data-following-row] > .t-tag {
  display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border-radius: 50%;
}
body.t [data-following-row] h2 { margin: 0 0 4px; }
body.t [data-following-row] p { margin: 0; }
body.t [data-following-row] [data-company-follow] { justify-self: end; }
body.t [data-following-notice] { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
body.t [data-following-notice] > .talon-icon { width: 20px; height: 20px; }
body.t [data-following-notice] p { margin: 4px 0 0; }
body.t [data-following-notice] > .t-btn { grid-column: 2; justify-self: start; }
body.t [data-following-empty] { justify-items: start; }
body.t.talon-dashboard .dfoot { display: none; }
body.t [data-today-task] span { display: grid; gap: 2px; }
body.t [data-today-task] small { color: var(--color-text-secondary); font-size: var(--text-xs); font-weight: 400; line-height: 1.35; }
body.t [data-today-code] { display: grid; gap: 10px; }
body.t [data-today-code] > summary { justify-self: start; list-style: none; }
body.t [data-today-code] > summary::-webkit-details-marker { display: none; }
body.t [data-company-offers-page] { width: min(100%, 760px); }
body.t [data-company-offers-page] > .t-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
body.t [data-company-offer-heading] { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
body.t [data-company-offer-heading] img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; }
body.t [data-company-offer-heading] > span { display: grid; justify-items: start; gap: 6px; }
body.t [data-company-offer-heading] strong { font: 700 var(--text-md)/1.25 var(--font-display); }
body.t [data-company-offer-stock] { gap: 6px; }
body.t [data-add-vouchers] > summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--color-brand-dark); }
body.t [data-add-vouchers] > summary::-webkit-details-marker { display: none; }
body.t [data-add-vouchers] > form { margin-top: 8px; }

body.t [data-about-page],
body.t [data-contact-page] { width: min(100%, 760px); }
body.t [data-about-intro] { gap: 8px; }
body.t [data-about-intro] h2,
body.t [data-about-intro] p { margin: 0; }
body.t [data-about-values] article {
  min-height: 78px; padding: 14px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  border-top: 1px solid var(--color-border);
}
body.t [data-about-values] article:first-child { border-top: 0; }
body.t [data-about-values] article > span { display: grid; gap: 3px; }
body.t [data-about-values] small { color: var(--color-text-secondary); font-size: var(--text-sm); line-height: 1.4; }
body.t [data-about-team] .panel { padding: 0 0 14px; overflow: hidden; }
body.t [data-about-team] .panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
body.t [data-about-team] .panel h3,
body.t [data-about-team] .panel p { margin: 10px 14px 0; }
body.t [data-about-team] .panel p { color: var(--color-text-secondary); font-size: var(--text-sm); }
body.t [data-contact-whatsapp] { color: var(--color-brand-dark); text-decoration: none; }
body.t [data-contact-whatsapp] > span { display: grid; flex: 1; }
body.t [data-contact-whatsapp] small { color: var(--color-text-secondary); }
body.t [data-contact-divider] {
  display: flex; align-items: center; gap: 10px; color: var(--color-text-secondary);
  font-size: var(--text-sm); text-align: center;
}
body.t [data-contact-divider]::before,
body.t [data-contact-divider]::after { content: ""; height: 1px; flex: 1; background: var(--color-border); }
body.t [data-contact-form] { gap: 16px; }
body.t [data-contact-form] fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
body.t [data-contact-form] .t-chips { flex-wrap: wrap; }
body.t [data-contact-form] .t-chip { position: relative; cursor: pointer; }
body.t [data-contact-form] .t-chip input { position: absolute; opacity: 0; pointer-events: none; }
body.t [data-contact-form] .t-chip:has(input:checked) {
  border-color: var(--color-brand-dark); background: var(--color-brand-dark); color: var(--color-brand);
}
body.t [data-contact-form] textarea.t-input { height: auto; min-height: 112px; padding-block: 12px; resize: vertical; }

body.t [data-aux-page] { width: min(100%, 520px); min-height: min(620px, calc(100dvh - 180px)); align-content: center; }
body.t [data-auth-aux] > .t-appbar { align-self: start; }
body.t [data-auth-aux] .panel { gap: 18px; }
body.t [data-email-sent] { justify-items: center; text-align: center; }
body.t [data-email-sent] > p { max-width: 42ch; margin: 0; }
body.t [data-email-sent-icon] {
  width: 72px; height: 72px; display: grid; place-items: center;
  border-radius: 50%; background: var(--color-brand); color: var(--color-brand-dark);
}
body.t [data-email-sent-icon] .i { width: 32px; height: 32px; }
body.t [data-email-sent] .t-banner { width: 100%; text-align: left; }
body.t [data-email-sent] .t-banner > span { display: grid; gap: 2px; }
body.t [data-password-field] { position: relative; }
body.t [data-password-field] > .t-input { padding-right: 52px; }
body.t [data-password-field] > .t-iconbtn { position: absolute; right: 6px; top: 28px; }
body.t [data-error-card] { justify-items: start; }
body.t [data-error-card] > .i { width: 44px; height: 44px; color: var(--color-brand-dark); }
body.t [data-admin-directory-page] { width: 100%; }
body.t [data-admin-directory-page] > .t-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
body.t [data-admin-directory-page] [data-label="Acciones"] > div {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
body.t [data-admin-directory-page] [data-label="Acciones"] form { margin: 0; }
body.t [data-admin-records-page] { width: 100%; }
body.t [data-admin-records-page] [data-label="Acciones"] > div {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
body.t [data-admin-records-page] [data-label="Acciones"] form { margin: 0; }
body.t [data-admin-responsive-table] [data-admin-table-detail] { display: none; }
body.t [data-admin-responsive-table] [data-admin-table-detail].is-open { display: table-row; }
body.t [data-admin-form-page] { width: 100%; min-width: 0; }
body.t [data-admin-form] { display: grid; gap: 16px; min-width: 0; }
body.t [data-admin-form] input[type="file"] { max-width: 100%; }
body.t [data-admin-form] textarea.t-input { height: auto; padding-block: 12px; }
body.t [data-admin-form-media] { width: min(100%, 560px); }
body.t [data-admin-form-media] img { display: block; width: 100%; height: auto; object-fit: cover; }
body.t [data-admin-form-page] [data-review-queue] { display: none; }
body.t [data-admin-intervention-head] {
  display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px;
}
body.t [data-admin-intervention-head] form {
  display: grid; grid-template-columns: minmax(220px, 360px) auto; gap: 8px;
}
body.t [data-admin-intervention-counts] {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px;
}
body.t [data-admin-intervention-counts] a {
  display: flex; min-height: 84px; padding: 12px 16px; flex-direction: column; justify-content: center;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); text-decoration: none;
}
body.t [data-admin-intervention-card] { margin-bottom: 16px; }
body.t [data-admin-intervention-card] ul { margin: 16px 0 0; padding: 0; list-style: none; }
body.t [data-admin-intervention-card] li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--color-border);
}
body.t [data-admin-intervention-card] li > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
body.t [data-admin-intervention-card] li span { overflow-wrap: anywhere; color: var(--color-text-secondary); }
body.t [data-admin-intervention-resolve] { min-width: 220px; }
body.t [data-dashboard-form-page] { width: 100%; min-width: 0; }
body.t [data-dashboard-form] { display: grid; gap: 16px; min-width: 0; }
body.t [data-dashboard-form] input[type="file"] { max-width: 100%; }
body.t [data-dashboard-form-media] { width: min(100%, 560px); overflow: hidden; }
body.t [data-dashboard-form-media] img { display: block; width: 100%; height: auto; object-fit: cover; }
body.t [data-dashboard-records-page] { width: 100%; min-width: 0; }
body.t [data-offer-creation-page] { width: 100%; min-width: 0; }
body.t [data-offer-creation-layout] { min-width: 0; }
body.t [data-offer-creation-layout] > .t-howto {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
body.t [data-offer-creation-layout] > .t-howto li {
  display: flex; flex: 0 0 auto; min-height: 40px; padding: 6px 10px; align-items: center; gap: 8px;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface);
  color: var(--color-text-secondary); white-space: nowrap;
}
body.t [data-offer-creation-layout] > .t-howto li::before { flex: 0 0 28px; }
body.t [data-offer-creation-layout] > .t-howto li.is-current,
body.t [data-offer-creation-layout] > .t-howto li[aria-current="step"] {
  border-color: var(--color-brand-dark); background: var(--color-brand-soft); color: var(--color-brand-dark); font-weight: 700;
}
body.t [data-offer-creation-layout] > .t-howto li.is-complete { color: var(--color-brand-dark); }
body.t [data-offer-creation-preview] { display: none; }
body.t [data-code-input] {
  display: grid; grid-template-columns: repeat(4, 56px); justify-content: center; gap: 8px; width: 100%;
}
body.t [data-code-input] input[data-code-digit] {
  width: 56px; min-width: 0; height: 64px; padding: 0; border-radius: var(--radius-sm);
  font: 700 28px/1 var(--font-mono); text-align: center; font-variant-numeric: tabular-nums;
}
body.t [data-service-request-filters] {
  display: flex; gap: 8px; margin-bottom: 16px; padding-bottom: 8px; overflow-x: auto; flex-wrap: nowrap;
}
body.t [data-service-request-filters] a {
  display: inline-flex; min-height: 44px; padding: 8px 12px; align-items: center; gap: 8px;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text-primary);
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
body.t [data-service-request-filters] a[aria-current="page"] {
  border-color: var(--color-brand-dark); background: var(--color-brand); color: var(--color-brand-dark);
}
body.t [data-service-request-filters] span { font-family: var(--font-mono); }
body.t [data-service-request-card] { height: 100%; }
body.t [data-support-page] { width: min(100%, 880px); }
body.t [data-support-hero] { overflow: hidden; padding: 0; }
body.t [data-support-hero] img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
body.t [data-dashboard-outcome-page] { width: min(100%, 760px); margin-inline: auto; }
body.t [data-dashboard-outcome-card] { justify-items: start; }
body.t [data-loyalty-page] [data-loyalty-exchange] .t-btn { width: 100%; }
body.t [data-vouchers-cartilla] { display: none; }
/* Wide private tables scroll inside their wrapper instead of contributing
   their min-content width to the desktop dashboard grid. */
body.t.talon-dashboard .dmain > .dgrid,
body.t.talon-dashboard .dmain .doc { min-width: 0; width: 100%; }

@media (max-width: 1199px) {
  body.t:has(.t-tabbar) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.t .t-tabbar {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: var(--z-nav); box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-brand-dark) 7%, transparent);
  }
  body.t.offers-map-open [data-offers-page] > [data-map-content] {
    inset: 0 0 var(--mobile-bottom-nav-height, 70px); height: auto; min-height: 0;
  }
  body.t [data-offers-page] > [data-map-content]:not([hidden]) {
    inset: 0 0 var(--mobile-bottom-nav-height, 70px); height: auto; min-height: 0;
  }
  body.t.talon-dashboard .dpanel { display: block; min-height: 0; }
  body.t.talon-dashboard .dside { display: none; }
  body.t.talon-dashboard .dmain { padding: 20px 16px 28px; }
}

@media (min-width: 1200px) {
  body.t .t-tabbar { display: none; }
  body.t.offers-map-open [data-map-overlay] { right: auto; left: var(--space-5); top: var(--space-5); width: min(440px, calc(100vw - 48px)); }
  body.t [data-offer-creation-layout] {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start;
  }
  body.t [data-offer-creation-layout] > .t-howto { grid-column: 1 / -1; }
  body.t [data-offer-creation-layout] > .t-howto {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible;
  }
  body.t [data-offer-creation-layout] > .t-howto li { justify-content: flex-start; min-width: 0; white-space: normal; }
  body.t [data-offer-creation-preview] {
    position: sticky; top: calc(var(--header-height, 72px) + 16px); display: grid; gap: 12px;
  }
  body.t [data-admin-form-page] [data-review-queue] { display: grid; }
  body.t [data-vouchers-layout] {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start;
  }
  body.t [data-vouchers-list] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.t [data-vouchers-cartilla] {
    position: sticky; top: calc(var(--header-height, 72px) + 16px); display: grid; gap: 12px;
    padding: 20px; border-radius: var(--radius-lg); background: var(--color-brand-dark); color: var(--color-surface);
  }
  body.t [data-vouchers-cartilla] h2 { margin: 0; color: var(--color-brand); font: 700 var(--text-3xl)/1 var(--font-mono); }
  body.t [data-vouchers-cartilla] p { margin: 0; }
  body.t [data-vouchers-cartilla] .t-btn { justify-self: start; }
}

@media (max-width: 767px) {
  body.t .map-offer-popup,
  body.t .map-offer-popup--touch { width: 220px; }
  body.t .map-popup-image-frame { height: 132px; }
  body.t .map-offer-nav { top: 66px; }
  body.t .map-offer-dots { top: 113px; }
  .talonaria-dev-banner { min-height: 44px; padding: 4px 8px; }
  .talonaria-dev-banner__inner { padding-inline: 8px; }
  body.talonaria-dev-environment,
  body.fixed.talonaria-dev-environment { padding-top: 44px !important; }
  body.talonaria-dev-environment header { top: 44px !important; }
  body.t.talon-dashboard .dmain { padding: 16px 12px 24px; }
  /* The proposal gives carousel cards a 236/112 crop. Reuse that crop in the
     mobile detail hero so the same photograph keeps the same framing. */
  body.t .hero-ph { height: auto; aspect-ratio: 59 / 28; }
  body.t main > .doc,
  body.t main.doc { padding-bottom: 24px; }
  body.t [data-offers-page] { padding-bottom: var(--space-2); }
  body.t main h2 { margin-top: 0; }
  body.t [data-offers-page]:has(> [data-map-content]:not([hidden])) { padding-inline: 0; padding-bottom: 0; }
  body.t [data-map-content] { min-height: calc(100dvh - 132px); }
  body.t [data-map-service-marker-popup] {
    position: absolute; left: 0; bottom: calc(100% + 8px);
    width: calc(100vw - 24px); max-width: 360px;
  }
  body.t [data-map-service-marker-popup].is-mobile-sheet {
    position: fixed; right: 12px; bottom: calc(var(--mobile-bottom-nav-height, 70px) + 12px + env(safe-area-inset-bottom, 0px)); left: 12px;
    z-index: var(--z-overlay); width: auto; max-width: none; max-height: calc(100dvh - var(--mobile-bottom-nav-height, 70px) - 132px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  body.t [data-map-service-slide] > a {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center;
  }
  body.t [data-map-service-slide] > a > img {
    width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius-sm);
  }
  body.t [data-admin-review-page] .dwrap,
  body.t [data-admin-review-page] .tw { overflow: visible; }
  body.t [data-admin-review-page] table,
  body.t [data-admin-review-page] tbody,
  body.t [data-admin-review-page] tr,
  body.t [data-admin-review-page] td { display: block; width: 100%; }
  body.t [data-admin-review-page] thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  body.t [data-admin-review-page] tbody { display: grid; gap: 12px; }
  body.t [data-admin-review-page] tbody tr {
    padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
  }
  body.t [data-admin-review-page] tbody td {
    display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); gap: 12px;
    padding: 7px 0; border: 0;
  }
  body.t [data-admin-review-page] tbody td::before {
    content: attr(data-label); color: var(--color-text-secondary); font: 700 var(--text-xs)/1.3 var(--font-mono);
  }
  body.t [data-admin-review-page] tbody td:first-child { display: block; }
  body.t [data-admin-review-page] tbody td:first-child::before { display: none; }
  body.t [data-admin-directory-page] > .grid.c2 { grid-template-columns: 1fr; }
  body.t [data-admin-directory-page] > form.stage-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  }
  body.t [data-admin-directory-page] .dwrap,
  body.t [data-admin-directory-page] .tw,
  body.t [data-admin-records-page] .dwrap,
  body.t [data-admin-records-page] .tw { overflow: visible; }
  body.t [data-admin-records-page] form.grid { grid-template-columns: 1fr; }
  body.t [data-admin-message-layout] { grid-template-columns: 1fr; }
  body.t [data-admin-form-actions] { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  body.t [data-admin-form-actions] > .t-btn,
  body.t [data-admin-form-actions] > details,
  body.t [data-admin-form-actions] > details > summary { width: 100%; }
  body.t [data-admin-form] > [data-admin-form-submit] { width: 100%; }
  body.t [data-admin-intervention-head] { align-items: stretch; flex-direction: column; }
  body.t [data-admin-intervention-head] form { grid-template-columns: 1fr; }
  body.t [data-admin-intervention-counts] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.t [data-admin-intervention-card] li { align-items: stretch; flex-direction: column; }
  body.t [data-admin-intervention-card] li .t-btn,
  body.t [data-admin-intervention-resolve] { width: 100%; }
  body.t [data-dashboard-form-actions] { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  body.t [data-dashboard-form-actions] > .t-btn { width: 100%; }
  body.t [data-dashboard-toolbar-form] { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  body.t [data-dashboard-toolbar-form] .t-btn { width: 100%; }
  body.t [data-dashboard-records-page] .dwrap { overflow: visible; }
  body.t [data-offer-upload-actions],
  body.t [data-offer-wizard-actions],
  body.t [data-service-request-actions],
  body.t [data-dashboard-outcome-actions] { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  body.t [data-offer-upload-actions] > .t-btn,
  body.t [data-offer-wizard-actions] > .t-btn,
  body.t [data-service-request-actions] > .t-btn,
  body.t [data-dashboard-outcome-actions] > .t-btn { width: 100%; }
  body.t [data-support-hero] img { max-height: 200px; }
  body.t [data-account-logout],
  body.t [data-following-empty] .t-btn,
  body.t [data-following-notice] > .t-btn { width: 100%; }
  body.t [data-following-notice] > .t-btn { grid-column: 1 / -1; }
  body.t [data-loyalty-history-filter],
  body.t [data-loyalty-exchange-dialog] .stage-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  body.t [data-loyalty-exchange-dialog] .t-btn { width: 100%; }
  body.t [data-today-redemption] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body.t [data-admin-responsive-table],
  body.t [data-admin-responsive-table] tbody,
  body.t [data-admin-responsive-table] tr,
  body.t [data-admin-responsive-table] td { display: block; width: 100%; }
  body.t [data-admin-responsive-table] thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  body.t [data-admin-responsive-table] tbody { display: grid; gap: 12px; }
  body.t [data-admin-responsive-table] tbody tr {
    padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
  }
  body.t [data-admin-responsive-table] tbody td {
    display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); gap: 12px;
    padding: 7px 0; border: 0; overflow-wrap: anywhere;
  }
  body.t [data-admin-responsive-table] tbody td::before {
    content: attr(data-label); color: var(--color-text-secondary); font: 700 var(--text-xs)/1.3 var(--font-mono);
  }
  body.t [data-admin-responsive-table] [data-empty-row] td { display: block; }
  body.t [data-admin-responsive-table] [data-empty-row] td::before { display: none; }
  body.t [data-admin-responsive-table] [data-admin-table-detail] {
    display: none; margin-top: -12px; padding-top: 0; border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  body.t [data-admin-responsive-table] [data-admin-table-detail].is-open { display: block; }
  body.t [data-admin-responsive-table] [data-admin-table-detail] td { display: block; }
  body.t [data-admin-responsive-table] [data-admin-table-detail] td::before { display: none; }
  body.t [data-dashboard-responsive-table],
  body.t [data-dashboard-responsive-table] tbody,
  body.t [data-dashboard-responsive-table] tr,
  body.t [data-dashboard-responsive-table] td { display: block; width: 100%; }
  body.t [data-dashboard-responsive-table] thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  body.t [data-dashboard-responsive-table] tbody { display: grid; gap: 12px; }
  body.t [data-dashboard-responsive-table] tbody tr {
    padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
  }
  body.t [data-dashboard-responsive-table] tbody td {
    display: grid; grid-template-columns: minmax(104px, 34%) minmax(0, 1fr); gap: 12px;
    padding: 7px 0; border: 0; overflow-wrap: anywhere;
  }
  body.t [data-dashboard-responsive-table] tbody td::before {
    content: attr(data-label); color: var(--color-text-secondary); font: 700 var(--text-xs)/1.3 var(--font-mono);
  }
}

