/* Hallmark · shape: kept · genre: editorial · theme: Contemporánea · redesign: restyle
 * hero: kept · nav: kept · imagery: foto y catálogo originales · signature: precios sobre papel cálido · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 · una jerarquía de nombre, proveedor y precio con el verde y el rojo del sitio. */
:root {
  color-scheme: light;
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem);
  --ink: #173f32;
  --green: #22684d;
  --green-deep: #18533e;
  --red: #b32038;
  --red-deep: #92142b;
  --paper: #fff9f1;
  --white: #fffefa;
  --line: #e4decf;
  --muted: #4e6659;
  --soft: #e4f2e4;
  --gold: #ffdd9c;
  --hero-green: #237053;
  --hero-ink: #fff9e9;
  --hero-subtle-ink: #e1f0df;
  --hero-button-shadow: #331c24a0;
  --hero-focus: #efc989;
  --button-line: #90b6a1;
  --button-shadow: #92142b30;
  --photo-paper: #fffdf8;
  --product-body-paper: #fff4f6;
  --brand-line: #ede5d9;
  --brand-hover: #cdbda9;
  --placeholder-paper: #f4f3ee;
  --photo-line: #e9e8e1;
  --placeholder-ink: #56695b;
  --placeholder-icon: #758a76;
  --category-ink: #465f4d;
  --promo-ink: #794032;
  --count-paper: #fbe8e8;
  --count-line: #f0ced2;
  --control-line: #b9c4b8;
  --control-placeholder: #607068;
  --empty-line: #b4c1b3;
  --backdrop: #0c211ab8;
  --dialog-close-line: #a6b6a8;
  --fact-paper: #f0f7ed;
  --fact-line: #dae9da;
  --color-paper: var(--paper);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-accent: var(--red);
  --color-focus: var(--red);
  --font-display: "Avenir Next", "Trebuchet MS", ui-sans-serif, sans-serif;
  --font-body: system-ui, sans-serif;
  --tracking-display: -.03em;
  --display-weight: 700;
  --clear: transparent;
  --card-radius: .65rem;
  --card-shadow: oklch(36% 0.04 113 / 9%);
  --card-title-weight: 700;
  --card-title-size: clamp(1.03rem, 1.2vw, 1.25rem);
  --card-price-size: clamp(1.27rem, 1.8vw, 1.65rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, var(--clear)); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--font-body); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; background: var(--placeholder-paper); color: var(--muted); }
.button:active:not(:disabled) { transform: translateY(1px); }
.product-open:active { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); }
.shell { width: min(100% - 6rem, 79rem); margin-inline: auto; }
.icon-definitions { position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 3; top: var(--space-md); left: var(--space-md); transform: translateY(-160%); padding: var(--space-sm) var(--space-md); background: var(--white); border-radius: .4rem; }
.skip:focus { transform: none; }

.site-header { background: var(--white); border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.65rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; font-family: var(--font-display); font-size: 1.17rem; font-weight: 600; line-height: 1.2; }
.brand-image { width: min(100%, 12.625rem); min-width: 0; }
.brand-image img { width: 100%; }
.brand-mark { display: grid; flex: 0 0 auto; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: .7rem; color: var(--gold); background: var(--red); }
.gift-icon { display: inline-block; position: relative; width: 1.18em; height: .86em; color: inherit; border: 1.4px solid currentColor; border-radius: .13em; background: linear-gradient(90deg, var(--clear) 45%, currentColor 45%, currentColor 55%, var(--clear) 55%); margin-top: .24em; }
.gift-icon::before, .gift-icon::after { content: ""; position: absolute; width: .4em; height: .26em; bottom: 100%; border: 1.4px solid currentColor; }
.gift-icon::before { right: 50%; transform: rotate(27deg); border-radius: .25em .25em 0 .25em; }
.gift-icon::after { left: 50%; transform: rotate(-27deg); border-radius: .25em .25em .25em 0; }
.button.header-join, .button.join-whatsapp { gap: .45rem; color: var(--white); background: var(--green-deep); }
.button.header-join { justify-self: end; padding-inline: .85rem; white-space: nowrap; }
.button.header-join:hover, .button.join-whatsapp:hover { background: var(--green); }
.header-join svg, .join-whatsapp svg { flex-shrink: 0; }
.header-join-short { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; overflow: hidden; width: 100%; min-height: 32rem; background: linear-gradient(122deg, var(--hero-green), var(--green-deep) 49%); isolation: isolate; }
.hero-copy { z-index: 1; padding: clamp(2rem, 5.3vw, 4.25rem); color: var(--hero-ink); align-self: center; }
.hero-copy { padding-left: max(clamp(2rem, 5.3vw, 4.25rem), calc(100% - 39.5rem)); }
.hero h1 { font-size: clamp(3.45rem, 6.2vw, 6.15rem); letter-spacing: -.052em; line-height: .98; margin-top: var(--space-md); }
.hero-description { max-width: 38ch; margin-top: clamp(.85rem, 2.4vw, 1.4rem); color: var(--hero-subtle-ink); font-size: clamp(1rem, 1.55vw, 1.21rem); line-height: 1.5; }
.hero-count { display: flex; align-items: center; gap: .15em; margin-top: 1.15rem; color: var(--gold); font: 650 clamp(3rem, 5.8vw, 5.4rem)/.9 var(--font-display); letter-spacing: -.055em; }
.hero-count > strong { display: inline-flex; align-items: center; gap: .08em; font-weight: inherit; font-variant-numeric: lining-nums tabular-nums; }
.hero-count strong span { font-size: .55em; letter-spacing: 0; }
.hero-count-label { font-size: .57em; letter-spacing: -.035em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.55rem; }
.hero-actions .button { padding-inline: clamp(.6rem, 1.35vw, 1.15rem); white-space: nowrap; }
.hero-button { color: var(--photo-paper); background: var(--red); box-shadow: 0 4px 14px var(--hero-button-shadow); }
.hero-button:hover { background: var(--red-deep); }
.button.hero-join { gap: .4rem; color: var(--ink); background: #c7d505; }
.hero-join:hover { background: #d7e619; }
.hero-join svg { flex: none; }
.hero-media { --photo-fade: linear-gradient(90deg, transparent, rgb(0 0 0 / .18) 12%, #000 48%); position: relative; margin-left: -3rem; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: url("portada.jpg") 54% 55% / cover no-repeat; -webkit-mask-image: var(--photo-fade); mask-image: var(--photo-fade); }
.hero :focus-visible { outline-color: var(--hero-focus); }

.button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; gap: .26em; min-height: 2.75rem; border: 1px solid var(--clear); border-radius: 999px; padding: .65rem 1.2rem; font-size: .89rem; font-weight: 720; line-height: 1.25; text-align: center; transition: background-color .16s, border-color .16s, box-shadow .16s; }
.button.outline { color: var(--green-deep); border-color: var(--button-line); background: var(--white); }
.button.outline:hover:not(:disabled) { background: var(--soft); border-color: var(--green); }
.button.primary { color: var(--photo-paper); background: var(--red); box-shadow: 0 3px 10px var(--button-shadow); }
.button.primary:hover { background: var(--red-deep); }

.brand-strip { margin-top: 1.9rem; }
.brands-heading { margin-bottom: .8rem; }
.brands-heading h2 { font-size: 1.4rem; }
.brands-heading p { margin-top: .15rem; color: var(--muted); font-size: .86rem; }
.join-cta { min-height: 2.65rem; padding: .4rem .75rem; font-size: .875rem; }
.join-cta svg { flex: none; }
.brand-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.brand-viewport.is-scrollable { scrollbar-width: none; }
.brand-viewport.is-scrollable::-webkit-scrollbar { display: none; }
.brand-track { display: flex; width: max-content; }
.brand-viewport:not(.is-scrollable) .brand-list[aria-hidden],
.brand-viewport.is-keyboard .brand-list[aria-hidden] { display: none; }
.brand-list { display: flex; gap: .55rem; margin: 0; padding: .22rem .55rem .22rem 0; list-style: none; }
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.25rem;
  height: 4.75rem;
  padding-inline: .65rem;
  background: var(--photo-paper);
  border: 1px solid var(--brand-line);
  border-radius: .65rem;
  user-select: none;
}
.brand-logo:hover { border-color: var(--brand-hover); }
.brand-logo:focus-visible { outline-offset: -3px; }
.brand-logo img { display: block; width: 100%; height: 3.35rem; min-width: 0; object-fit: contain; mix-blend-mode: multiply; }
.brand-fallback { font: 650 1.15rem/1.15 var(--font-display); text-align: center; }
@media (any-pointer: fine) {
  .brand-viewport.is-scrollable .brand-logo { cursor: grab; }
  .brand-viewport.is-dragging, .brand-viewport.is-dragging .brand-logo { cursor: grabbing; }
}

.featured { margin-block: 3.75rem 5.3rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.4rem; margin-bottom: 1.45rem; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); letter-spacing: -.036em; line-height: 1.13; }
.section-head p, .page-intro p { color: var(--muted); margin-top: .52rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; align-items: stretch; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); border-radius: .9rem; }
.product-photo { display: grid; place-items: center; position: relative; aspect-ratio: 4 / 3; isolation: isolate; overflow: hidden; background: var(--placeholder-paper); border-bottom: 1px solid var(--photo-line); }
.product-photo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; position: absolute; inset: 0; object-fit: contain; background: var(--photo-paper); }
.photo-placeholder { display: grid; place-items: center; align-content: center; gap: .85rem; color: var(--placeholder-ink); text-align: center; font-size: .8rem; }
.photo-placeholder .gift-icon { font-size: 1.8rem; color: var(--placeholder-icon); }
.product-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: .6rem; padding: var(--space-md); background: var(--product-body-paper); }
.product-meta { width: 100%; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: .6rem; row-gap: .23rem; }
.vendor { color: var(--red); font-size: .8rem; font-weight: 700; }
.category-tag { font-size: .77rem; font-weight: 600; color: var(--category-ink); }
.product-title { width: 100%; overflow-wrap: break-word; font-size: 1.08rem; font-weight: 670; line-height: 1.32; margin: .02rem 0 0; }
.product-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: start; overflow-wrap: inherit; }
.product-open::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: .85rem; }
.product-open:hover { text-decoration: underline; text-underline-offset: .16em; }
.product-open:focus-visible { outline: none; }
.product-open:focus-visible::after { outline: 3px solid var(--red); outline-offset: -3px; }
.button.selection-toggle { position: relative; z-index: 2; align-self: stretch; margin-top: auto; padding: .45rem .7rem; font-size: .875rem; }
.button.selection-toggle[data-selected="true"] { border-color: var(--green); background: var(--soft); }
.button.selection-toggle:focus-visible { outline-offset: 2px; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: .26rem .5rem; }
.price-label { font-variant-numeric: tabular-nums; font-size: 1.38rem; letter-spacing: -.026em; font-weight: 730; line-height: 1.22; }
.quote-label { font-size: 1rem; letter-spacing: normal; }
.price-note { font-variant-numeric: tabular-nums; color: var(--promo-ink); font-size: .8rem; font-weight: 620; line-height: 1.38; }
.product-includes { display: flex; align-items: baseline; flex-wrap: wrap; gap: .32rem .42rem; }
.includes-label { color: var(--muted); font-size: .81rem; font-weight: 650; }
.product-tags { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.product-tag { color: var(--green-deep); background: var(--soft); border-radius: 1rem; font-size: .8rem; line-height: 1.35; padding: .14rem .5rem; }
.coverage-label, .filter-note { color: var(--muted); font-size: .86rem; }
.filter-note { margin-block: .52rem .1rem; }

.featured-grid { gap: clamp(.9rem, 1.6vw, 1.45rem); }
.featured-grid .product-card { box-shadow: var(--card-shadow); }
.featured-grid .product-photo { aspect-ratio: 1; }
.featured-grid .product-photo img { padding: clamp(.55rem, 1.2vw, 1rem); }
.featured-grid .product-body { padding: clamp(1rem, 1.65vw, 1.4rem); gap: .75rem; }
.featured-grid .product-title { font-size: clamp(1.17rem, 1.58vw, 1.42rem); }
.featured-grid .price-label { color: var(--red-deep); font-size: clamp(1.6rem, 2.2vw, 1.95rem); }
.featured-grid .quote-label { font-size: 1.1rem; }

.inner-view { min-height: 65dvh; padding-block: 3rem var(--space-2xl); }
.page-intro { margin-bottom: 1.75rem; }
.page-intro h1 { margin: 0; font-size: clamp(2.8rem, 5.7vw, 4.8rem); letter-spacing: -.044em; line-height: 1.08; }
.page-intro p { max-width: 42rem; }
.page-intro .catalog-count { display: inline-flex; align-items: baseline; gap: .45em; background: var(--count-paper); color: var(--red-deep); padding: .24rem .8rem; border: 1px solid var(--count-line); border-radius: 999px; font-weight: 720; margin-top: .7rem; }
.catalog-count strong { font-size: 1.35rem; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: .8rem; padding: 1.1rem; border: 1px solid var(--fact-line); border-radius: .95rem; background: var(--fact-paper); }
.filter-fields { display: contents; }
.filters .search-label { position: relative; grid-column: span 2; min-width: 0; }
.filters input, .filter-field select { display: block; width: 100%; min-width: 0; min-height: 3.55rem; padding: 1.25rem .75rem .32rem; border: 1px solid var(--control-line); border-radius: .65rem; color: var(--ink); background-color: var(--white); font-size: .91rem; }
.filters input { font-weight: 500; }
.filters input::placeholder { color: var(--control-placeholder); }
.filter-field { position: relative; display: block; min-width: 0; }
.search-label > span, .filter-field > span { position: absolute; inset: .45rem 1.5rem auto .75rem; overflow: hidden; color: var(--muted); font-size: .75rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.filter-field::after { content: ""; position: absolute; top: 46%; right: .82rem; width: .42rem; height: .42rem; transform: rotate(45deg); border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); pointer-events: none; }
.filter-field select { padding-right: 1.65rem; appearance: none; font-weight: 620; text-overflow: ellipsis; transition: background-color .16s, border-color .16s; }
.filter-field select:hover { border-color: var(--green); }
.filter-field.has-value > span { color: var(--green-deep); }
.filter-field.has-value select { border-color: var(--green); background: var(--soft); box-shadow: inset .18rem 0 var(--green); }
.product-filter { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.product-filter legend { padding: 0; margin-bottom: .32rem; font-size: .87rem; font-weight: 650; }
.product-filter-controls, .product-filter-options { display: flex; align-items: center; gap: .38rem; flex-wrap: wrap; }
.product-filter-controls { gap: .38rem .75rem; }
.product-filter-controls .text-button { font-size: .87rem; }
.filter-chip { background: var(--white); color: var(--green-deep); border: 1px solid var(--control-line); border-radius: 1.5rem; padding: .28rem .72rem; min-height: 2rem; font-size: .875rem; line-height: 1.25; }
.filter-chip:hover { background: var(--soft); }
.filter-chip[aria-pressed="true"] { color: var(--photo-paper); background: var(--green); border-color: var(--green); }
.filter-toggle { display: none; }
.filter-toggle:disabled { color: var(--muted); background: var(--placeholder-paper); }
.filter-icon { display: grid; width: 1.25rem; gap: .27rem; }
.filter-icon span { position: relative; height: 1.5px; border-radius: 99px; background: currentColor; }
.filter-icon span::after { content: ""; position: absolute; top: 50%; left: 24%; transform: translate(-50%, -50%); width: 4px; height: 6px; border-radius: 1px; background: currentColor; }
.filter-icon span:nth-child(2)::after { left: 72%; }
.filter-count { position: absolute; top: -.4rem; right: -.35rem; display: grid; place-items: center; min-width: 1.3rem; min-height: 1.3rem; padding-inline: .18rem; border: 2px solid var(--paper); border-radius: 999px; color: var(--white); background: var(--red); font-size: .72rem; font-weight: 750; line-height: 1.1; }
.filter-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(90vw, 24rem);
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: .95rem 0 0 .95rem;
  overflow: hidden;
}
.filter-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: filter-drawer-in .18s ease-out; }
@keyframes filter-drawer-in { from { transform: translateX(100%); } }
html:has(.filter-drawer[open], .join-dialog[open]) { overflow: hidden; }
.filter-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: .85rem 1rem; border-bottom: 1px solid var(--fact-line); background: var(--fact-paper); }
.filter-drawer-header h2 { font-size: 1.6rem; }
.filter-drawer-close { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: 50%; border: 1px solid var(--dialog-close-line); color: var(--ink); background: var(--white); font-size: 1.4rem; line-height: 1; }
.filter-drawer-content { overflow-y: auto; overscroll-behavior: contain; padding: 1rem; background: var(--paper); }
.filter-drawer-content .filter-fields { display: flex; flex-direction: column; gap: .68rem; }
.filter-drawer-content .filter-note { margin: 0; }
.filter-drawer-content .product-filter { margin-top: .5rem; }
.filter-drawer-content .filter-chip { min-height: 2.4rem; }
.filter-drawer-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .6rem; padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.filter-drawer-actions .text-button { min-height: 2.75rem; font-size: .875rem; }
.filter-drawer-actions .text-button:disabled { background: none; text-decoration: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 3.7rem; }
.results-bar p { color: var(--muted); font-size: .93rem; font-weight: 620; scroll-margin-top: 1.3rem; }
.results-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .15rem 1rem; }
.selection-entry { padding-block: .5rem; color: var(--green-deep); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.text-button { padding: .35rem 0; color: var(--green); border: 0; background: none; font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
.empty { border: 1px dashed var(--empty-line); border-radius: .8rem; padding: 3rem 1.3rem; text-align: center; background: var(--white); }
.empty h2 { font-size: 1.65rem; margin-bottom: .85rem; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; padding-top: 1.65rem; }
.page-index { color: var(--muted); font-size: .9rem; text-align: center; min-width: 7rem; }
.footnote { color: var(--muted); font-size: .86rem; margin-top: 1.55rem; }
.catalog-join { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.25rem; margin-top: 1.65rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--count-line); border-radius: .9rem; background: var(--count-paper); }
.catalog-join h2 { font-size: clamp(1.28rem, 3vw, 1.75rem); }
.selection-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.selection-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.selection-notice { margin-block: 0 1rem; padding: .75rem 1rem; border: 1px solid var(--count-line); border-radius: .65rem; background: var(--count-paper); color: var(--red-deep); }
.selection-empty p { color: var(--muted); }
.selection-empty .button { margin-top: 1rem; }
.selection-dock { position: sticky; z-index: 4; bottom: max(.65rem, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: .5rem; margin-bottom: 1rem; pointer-events: none; }
.button.selection-shortcut { gap: .65rem; background: var(--green-deep); color: var(--white); box-shadow: 0 4px 14px var(--card-shadow); pointer-events: auto; }
.button.selection-shortcut:hover { background: var(--green); }
.selection-shortcut span { padding: .13rem .5rem; border-radius: 999px; background: var(--soft); color: var(--green-deep); font-variant-numeric: tabular-nums; }
.selection-limit { max-width: min(100%, 20rem); padding: .45rem .7rem; border: 1px solid var(--count-line); border-radius: .65rem; background: var(--white); color: var(--red-deep); font-size: .875rem; }
.load-error { margin-block: var(--space-lg); color: var(--red); }
.site-footer { padding-block: 1rem; background: var(--green-deep); }
.site-footer :focus-visible { outline-color: var(--hero-focus); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; }
.footer-credit { display: grid; justify-items: center; gap: .3rem; color: #fff; font-size: .8125rem; cursor: pointer; }
.footer-credit img { width: 4.25rem; height: auto; }

dialog { color: var(--ink); background: var(--white); width: min(calc(100% - 2rem), 49rem); max-height: min(89dvh, 56rem); border: 1px solid var(--line); border-radius: 1rem; padding: 0; }
dialog::backdrop { background: var(--backdrop); }
.dialog-close { display: grid; place-items: center; position: sticky; margin: .68rem .68rem -2.93rem auto; top: .68rem; z-index: 3; padding: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--dialog-close-line); background: var(--white); color: var(--ink); font-size: 1.6rem; line-height: 1; }
.join-dialog { width: min(calc(100% - 1rem), 31rem); border-top: 3px solid var(--red); }
.join-dialog-content { display: grid; justify-items: start; gap: 1rem; padding: clamp(1rem, 4vw, 1.65rem); }
.join-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; }
.join-dialog h2 { font-size: clamp(1.45rem, 5vw, 2.1rem); }
.join-dialog .dialog-close { position: static; width: 2.75rem; height: 2.75rem; margin: 0; }
.join-dialog-content p { color: var(--muted); }
.join-dialog-content strong { color: var(--ink); }
.detail-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 1.4rem; align-items: center; padding: 1.55rem; }
.detail-layout .product-photo { border: 1px solid var(--line); border-radius: .72rem; min-width: 0; }
.detail-header { padding: .45rem var(--space-md) .45rem 0; min-width: 0; }
.detail-header h2 { font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.08; letter-spacing: -.025em; margin-block: .5rem .7rem; overflow-wrap: break-word; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: var(--space-md); }
.detail-info { border-top: 1px solid var(--line); padding: 1.3rem 1.55rem 1.65rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.4rem; }
.fact { background: var(--fact-paper); border: 1px solid var(--fact-line); border-radius: .65rem; padding: .68rem .75rem; }
.fact dt { display: flex; align-items: baseline; gap: .42rem; font-size: .82rem; font-weight: 780; line-height: 1.3; color: var(--red-deep); }
.fact dt::before { content: ""; flex: 0 0 .32rem; height: .32rem; translate: 0 -.08rem; border-radius: 1px; background: var(--red); rotate: 45deg; }
.fact dd { margin: .32rem 0 0; font-size: .9rem; line-height: 1.42; overflow-wrap: break-word; }
.detail-info h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.detail-info .product-includes { margin-bottom: .65rem; }
.ingredients { margin: 0; padding-left: 1.3rem; }
.ingredients li + li { margin-top: .32rem; }
.ingredients li::marker { color: var(--red); }
.detail-note { margin-top: 1.1rem; color: var(--muted); font-size: .88rem; }

@media (min-width: 1051px) {
  .featured { width: min(100% - 6rem, 86rem); }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 4rem); }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .order-field { grid-column: span 2; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { gap: .75rem; }
  .panel-header .header-inner { padding-top: .65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: initial; }
  .hero-copy { padding: 1.95rem 1.55rem var(--space-md); }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.25rem); }
  .hero-media { --photo-fade: linear-gradient(180deg, transparent, rgb(0 0 0 / .18) 12%, #000 42%); min-height: 15rem; margin: -.3rem 0 0; }
  .hero-media::before { background-position: 50% 59%; }
  .section-head { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .featured { margin-block: 2.6rem 2.65rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  #catalog-grid, #selection-grid { grid-template-columns: minmax(0, 1fr); }
  .selection-empty { padding-inline: 1.15rem; }
  .catalog-view.inner-view { padding-top: 1.3rem; }
  .catalog-view .page-intro { margin-bottom: .85rem; }
  .catalog-view .page-intro h1 { max-width: none; font-size: clamp(1.65rem, 6vw, 2.1rem); }
  .catalog-view .catalog-count { margin-top: .4rem; font-size: .88rem; }
  .catalog-view .catalog-count strong { font-size: 1.05rem; }
  .catalog-description { display: none; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; padding: 0; border: 0; background: none; }
  .filters > .filter-fields { display: none; }
  .filters .search-label { grid-column: auto; }
  .search-label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .filters input { min-height: 2.85rem; padding: .57rem .7rem; }
  .filters input, .filter-fields select { font-size: 1rem; }
  .filter-toggle { position: relative; display: grid; place-items: center; width: 2.85rem; height: 2.85rem; padding: 0; border: 1px solid var(--green-deep); border-radius: .65rem; color: var(--white); background: var(--green-deep); }
  .results-bar { min-height: 2.85rem; }
  .brand-logo { width: 7.2rem; height: 4.25rem; }
  .brand-logo img { height: 3rem; }
  .inner-view { padding-block: 2rem 3rem; }
}
@media (max-width: 480px) {
  .header-join-full { display: none; }
  .header-join-short { display: inline; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-grid .product-photo { aspect-ratio: 5 / 4; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 1.6rem); }
  .brands-heading h2 { font-size: clamp(1.15rem, 5vw, 1.4rem); }
  .join-cta { padding-inline: .6rem; }
  .brand { font-size: 1.04rem; gap: .46rem; }
  .brand-mark { width: 2.1rem; height: 2.1rem; }
  .hero-copy { padding-inline: 1.3rem; }
  .hero-actions .button { padding-inline: .55rem; font-size: clamp(.75rem, 3.4vw, .89rem); }
  .hero-join svg { width: 16px; height: 16px; }
  .hero-media { min-height: 12.5rem; }
  .product-body { padding: .72rem; gap: .48rem; }
  .product-title { font-size: .96rem; }
  .price-label { font-size: 1.18rem; }
  .quote-label { font-size: .93rem; }
  .product-meta { align-items: start; flex-direction: column; }
}
@media (max-width: 359px) {
  .hero-actions { gap: .4rem; }
  .hero-actions .button { padding-inline: .35rem; }
}
@media (max-width: 585px) {
  dialog { width: calc(100% - 1rem); max-height: 92dvh; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: .85rem; padding: var(--space-md); }
  .detail-header { padding: .2rem 0 0; }
  .detail-layout .product-photo { max-height: 14rem; }
  .detail-info { padding: var(--space-md); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* Jerarquía de las tarjetas del catálogo. */
h1, h2, h3 {
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero h1 { margin-top: 0; }
.product-card {
  border-radius: var(--card-radius);
  box-shadow: 0 2px 9px var(--card-shadow);
}
.product-open::after { border-radius: var(--card-radius); }
.product-title {
  margin-top: var(--space-3xs);
  min-height: 2.4em;
  font-family: var(--font-display);
  font-weight: var(--card-title-weight);
  font-size: var(--card-title-size);
  line-height: 1.2;
}
.product-body { padding: var(--space-md); }
.price-label { font-weight: 700; }
.product-card .price-label {
  font-size: var(--card-price-size);
  letter-spacing: -.035em;
}
.product-card .quote-label { font-size: 1em; }
.product-card .price-block { gap: var(--space-2xs) var(--space-xs); }
.product-card .product-includes { margin-top: var(--space-2xs); }
.detail-vendor { margin-block: var(--space-2xs); color: var(--red); font-weight: 650; font-size: var(--text-sm); }

/* Contemporánea */
.hero h1 {
  font-size: clamp(2.6rem, 5.18vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.06em;
}
.product-card .product-photo img { padding: var(--space-xs); }
.product-card .price-label { color: var(--green-deep); }
.product-card .product-tag { border-radius: .3rem; }

@media (max-width: 760px) {
  .product-body { padding: var(--space-sm); }
  .hero h1 { font-size: clamp(2.65rem, 8vw, 4.2rem); }
}
