/* ==========================================================================
   styles.css — Dan Imports · composición e identidad propias
   ========================================================================== */

body { background: var(--bg); }
.display { text-transform: uppercase; }
.h-3 { text-transform: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1; box-shadow: var(--sh-btn); }
.logo__mark::after { content: ""; position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2.5px var(--bg); }
.logo__word { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: .9; text-transform: uppercase; letter-spacing: .005em; }
.logo__word small { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); margin-top: 3px; }

.header__pill { font-size: 12.5px; }
.cart-btn { position: relative; padding-right: 10px; border-radius: var(--r-pill); }
.cart-btn__count, .ab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.cart-btn__count.is-zero { background: color-mix(in srgb, #fff 22%, transparent); color: #fff; }
.ab-count { min-width: 20px; height: 20px; font-size: 11.5px; }
.ab-count.is-zero { background: var(--muted-2); color: var(--ink-3); }
.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(36px, 6vw, 84px) clamp(56px, 7vw, 96px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--lime) 34%, transparent), transparent) 88% 40% / 760px 640px no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent) 62% 96% / 520px 360px no-repeat,
    radial-gradient(circle at 1px 1px, rgba(var(--shadow-rgb), .09) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 20px; }
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  background: linear-gradient(90deg, #1F3E8A 0 40%, transparent 40%) 0 0 / 100% 53% no-repeat, repeating-linear-gradient(180deg, #C8202F 0 2.15px, #fff 2.15px 4.3px); }
.hero__title { max-width: 11.5ch; }
.hl { position: relative; white-space: nowrap; color: var(--ink); z-index: 0; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; top: .12em; bottom: .02em; background: var(--accent); border-radius: .08em; transform: rotate(-1.2deg) scaleX(var(--hl, 1)); transform-origin: 0 50%; transition: transform 1s var(--ease-out) .6s; }
.motion-pending .hl::before { --hl: 0; }
.hero__lead { margin-top: 22px; max-width: 54ch; }
.hero__lead strong { color: var(--ink); font-weight: 800; }

.search { position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search__input { width: 100%; height: 62px; padding: 0 140px 0 50px; border: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-input), var(--sh-md); font-size: 16px; outline: none; transition: box-shadow var(--dur-1); }
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { box-shadow: inset 0 0 0 1.5px var(--brand), var(--ring), var(--sh-md); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn { position: absolute; right: 7px; --h: 48px; border-radius: var(--r-pill); padding: 0 20px; }
.search--hero { margin-top: 28px; max-width: 580px; }
.hero__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.qchip { height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: box-shadow var(--dur-1), color var(--dur-1), transform var(--dur-2) var(--ease); }
.qchip:hover { color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-200), var(--sh-sm); transform: translateY(-1px); }
.qchip:active { transform: translateY(0) scale(.98); }

.hero__stack { position: relative; aspect-ratio: 1 / .96; max-width: 600px; justify-self: end; width: 100%; }
.stack-card { position: absolute; margin: 0; padding: 7px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xl); overflow: hidden; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-xl) - 7px); }
.stack-card--a { width: 52%; aspect-ratio: 4 / 3; left: 0; top: 2%; transform: rotate(-7deg); }
.stack-card--b { width: 50%; aspect-ratio: 4 / 3; right: 0; top: 0; transform: rotate(6deg); }
.stack-card--c { width: 84%; aspect-ratio: 1080 / 792; left: 8%; bottom: 6%; transform: rotate(-1.5deg); z-index: 2; }
.sticker { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; padding: 10px 16px 9px 22px; background: var(--accent); color: var(--on-accent); border-radius: 10px 14px 14px 10px; box-shadow: var(--sh-lg), inset 0 -2px 0 rgba(0,0,0,.08); line-height: 1; }
.sticker::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }
.sticker small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sticker b { font-family: var(--font-display); font-size: 40px; font-weight: 900; margin-top: 3px; }
.sticker--1 { right: 2%; bottom: 40%; transform: rotate(7deg); }
.sticker--2 { left: -2%; top: 31%; transform: rotate(-6deg); }
.hero__note { left: 14%; bottom: -2%; z-index: 5; }

/* ---------- Marquee de marcas ---------- */
.brands { background: var(--brand); color: #fff; padding-block: 18px; overflow: hidden; border-block: 1px solid var(--brand-600); }
.brands .marquee__group span { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 48px); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brands .marquee__group span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.92); }
.brands .marquee__group i { font-style: normal; color: var(--accent); font-size: 20px; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.cat { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); overflow: hidden; transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.cat:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--sh-lg); transform: translateY(-2px); }
.cat:active { transform: translateY(0) scale(.995); }
.cat--wide { grid-column: span 2; flex-direction: row; }
.cat__media { display: block; margin: 7px 7px 0; aspect-ratio: 16 / 10; border-radius: calc(var(--r-xl) - 7px); overflow: hidden; background: var(--muted-2); }
.cat--wide .cat__media { flex: 0 0 52%; aspect-ratio: auto; margin: 7px 0 7px 7px; min-height: 210px; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.cat:hover .cat__media img { transform: scale(1.06); }
.cat__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.cat--wide .cat__body { justify-content: flex-end; padding: 22px 24px; }
.cat__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: .95; text-transform: uppercase; }
.cat--wide .cat__name { font-size: clamp(30px, 3vw, 40px); }
.cat__short { font-size: 14px; color: var(--ink-3); }
.cat__meta { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.cat__meta b { color: var(--brand-text); font-weight: 800; }
.cat__go { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--sh-sm); color: var(--ink); transition: transform var(--dur-2) var(--ease), background-color var(--dur-1), color var(--dur-1); }
.cat:hover .cat__go { transform: rotate(45deg); background: var(--brand); color: #fff; }

/* ---------- Catálogo ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); background: color-mix(in srgb, var(--muted) 90%, transparent); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
.toolbar__row { display: flex; align-items: center; gap: 10px; }
.search--bar { flex: 1; min-width: 0; }
.search--bar .search__input { height: 46px; padding: 0 76px 0 46px; box-shadow: inset 0 0 0 1px var(--border-input), var(--sh-xs); font-size: 15.5px; }
.search--bar .search__icon { left: 16px; width: 18px; height: 18px; }
.search__kbd { position: absolute; right: 14px; display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: var(--muted); box-shadow: inset 0 0 0 1px var(--border-strong); font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.search__clear { position: absolute; right: 4px; width: 38px; height: 38px; }
.search__clear:not([hidden]) ~ .search__kbd, .search--bar:has(.search__clear:not([hidden])) .search__kbd { display: none; }
.view-toggle { flex: none; }
.view-toggle .i { width: 16px; height: 16px; }
.sort { position: relative; flex: none; }
.sort__select { appearance: none; height: 46px; padding: 0 40px 0 14px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-input); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sort__select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sort .i { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; color: var(--ink-3); }
.filters { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 14px; font-weight: 650; color: var(--ink-2); white-space: nowrap; transition: background-color var(--dur-1), box-shadow var(--dur-1), color var(--dur-1); }
.fchip span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.fchip:hover { background: var(--brand-25); color: var(--ink); }
.fchip:active { transform: scale(.98); }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: var(--sh-btn); }
.fchip[aria-pressed="true"] span { color: #C4D0C0; }
.results { margin: 18px 0 16px; font-size: 14.5px; color: var(--ink-3); }
.results b { color: var(--ink); }

.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.vcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); animation: cardIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.vcard:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--sh-lg); transform: translateY(-2px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.vcard__media { position: relative; display: block; margin: 7px 7px 0; aspect-ratio: 4 / 3; border-radius: calc(var(--r-xl) - 7px); overflow: hidden; background: var(--muted-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.vcard:hover .vcard__media img { transform: scale(1.05); }
.vcard__count { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--inverse); box-shadow: 0 0 0 1px rgba(255,255,255,.14); color: #fff; font-size: 12.5px; font-weight: 700; }
.price-tag { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 7px 12px 7px 18px; border-radius: 8px 11px 11px 8px; background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-md), inset 0 -2px 0 rgba(0,0,0,.07); line-height: 1; transform: rotate(4deg); pointer-events: none; }
.price-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }
.price-tag small { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price-tag b { font-family: var(--font-display); font-size: 28px; font-weight: 900; }
.vcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 18px 18px; }
.vcard__cat { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); }
.vcard__title { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: .98; text-transform: uppercase; text-wrap: balance; }
.vcard__title button { text-align: left; }
.vcard__title button:hover { color: var(--brand-text); }
.peek { margin: 12px 0 4px; display: grid; }
.peek li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 46px; border-top: 1px dashed var(--border-strong); }
.peek__name { font-size: 14px; color: var(--ink-2); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.peek__price { font-weight: 800; font-size: 15px; }
.vcard__more { font-size: 13px; margin-top: 2px; }
.vcard__all { margin-top: auto; padding-top: 10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--brand-text); }
.vcard__all .i { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.vcard__all:hover .i { transform: translateX(3px); }
mark { background: color-mix(in srgb, var(--accent) 70%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Agregar / cantidad */
.slot { display: inline-flex; justify-content: flex-end; min-width: 104px; }
.add { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 13px 0 10px; border-radius: var(--r-pill); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-soft-border); color: var(--brand-text); font-size: 13.5px; font-weight: 750; white-space: nowrap; transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1), transform .12s var(--ease); }
.add .i { width: 15px; height: 15px; stroke-width: 2.6; }
.add:hover { background: var(--brand); color: #fff; box-shadow: var(--sh-btn); }
.add:active { transform: translateY(1px) scale(.97); }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: var(--r-pill); background: var(--brand); color: #fff; box-shadow: var(--sh-btn); animation: qtyIn .3s var(--ease-out); }
@keyframes qtyIn { from { opacity: .4; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent); } }
.qty button { display: grid; place-items: center; width: 34px; height: 36px; border-radius: var(--r-pill); color: #fff; transition: background-color var(--dur-1); }
.qty button:hover { background: rgba(255,255,255,.14); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty .i { width: 15px; height: 15px; stroke-width: 2.6; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }

@media (pointer: coarse), (max-width: 767px) {
  .add, .qty, .qchip { height: 40px; }
  .qty button { width: 40px; height: 40px; }
}

/* Lista de precios */
.plist__ul { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); padding: 4px 0; }
.pgroup { position: sticky; top: calc(var(--header-h) + var(--toolbar-h, 118px)); z-index: 2; display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 8px; background: var(--surface); border-bottom: 1px solid var(--border); }
.pgroup__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.pgroup .num { font-size: 13px; }
.prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; animation: cardIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 18ms); }
.prow + .prow { border-top: 1px solid var(--border); }
.prow:hover { background: var(--brand-25); }
.prow__thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--muted-2); box-shadow: inset 0 0 0 1px var(--border); }
.prow__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.prow__thumb:hover img { transform: scale(1.12); }
.prow__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prow__name { font-weight: 650; font-size: 15px; line-height: 1.3; }
.prow__from { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow__price { font-weight: 800; font-size: 16px; min-width: 64px; text-align: right; }
.is-ask { font-size: 13px; font-weight: 700; color: var(--ink-3); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(40px, 6vw, 72px) 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.empty p { max-width: 46ch; color: var(--ink-3); }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-soft-border); margin-bottom: 6px; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Precio único (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: var(--grid-gap); }
.bcard { position: relative; grid-column: span 3; overflow: hidden; border-radius: var(--r-xl); background: var(--inverse); text-align: left; color: #fff; isolation: isolate; box-shadow: var(--sh-sm); transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.bcard.is-feature { grid-column: span 6; grid-row: span 2; }
.bcard:hover { box-shadow: var(--sh-xl); transform: translateY(-3px); }
.bcard:active { transform: translateY(-1px) scale(.995); }
.bcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--dur-4) var(--ease-out); }
.bcard:hover img { transform: scale(1.05); }
.bcard__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,29,18,0) 35%, rgba(11,29,18,.88) 100%); }
.bcard__price { position: absolute; left: 16px; top: 16px; display: flex; align-items: baseline; gap: 6px; padding: 8px 14px 8px 20px; border-radius: 9px 13px 13px 9px; background: var(--accent); color: var(--on-accent); line-height: 1; box-shadow: var(--sh-md); transform: rotate(-3deg); }
.bcard__price::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--inverse); opacity: .6; }
.bcard__price b { font-family: var(--font-display); font-size: 34px; font-weight: 900; }
.bcard.is-feature .bcard__price b { font-size: 58px; }
.bcard__price small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; }
.bcard__text { position: absolute; left: 18px; right: 60px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.bcard__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: .95; text-transform: uppercase; text-wrap: balance; }
.bcard.is-feature .bcard__title { font-size: clamp(32px, 3.4vw, 48px); }
.bcard__sub { font-size: 13.5px; color: rgba(255,255,255,.82); }
.bcard__go { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform var(--dur-2) var(--ease); }
.bcard:hover .bcard__go { transform: rotate(45deg); }

/* ---------- Cómo pedir ---------- */
.how { position: relative; overflow: clip; }
.how::before { content: ""; position: absolute; right: -10%; top: -20%; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 22%, transparent), transparent); pointer-events: none; }
.how__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how .eyebrow { color: var(--accent); }
.how .eyebrow::before { background: var(--accent); }
.how h2 { margin-top: 14px; max-width: 18ch; }
.steps { display: grid; gap: 4px; margin-top: 34px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--inverse-border); }
.steps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 900; font-size: 28px; }
.steps h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; margin-top: 4px; }
.steps p { margin-top: 6px; color: var(--on-inverse-2); max-width: 46ch; }
.steps b { color: #fff; }
.how__ctas { margin-top: 28px; }
.ticket-wrap { display: flex; justify-content: center; }
.ticket { position: relative; width: min(380px, 100%); padding: 30px 26px 26px; background: #FFFEF8; color: #1D211B; font-family: var(--font-mono); font-size: 13px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(2deg);
  --zig: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px 100% repeat-x;
  -webkit-mask: linear-gradient(#000, #000) 0 8px / 100% calc(100% - 16px) no-repeat, radial-gradient(circle at 7px 8px, transparent 7px, #000 7.5px) 0 0 / 14px 8px repeat-x, radial-gradient(circle at 7px 0, transparent 7px, #000 7.5px) 0 100% / 14px 8px repeat-x;
  mask: linear-gradient(#000, #000) 0 8px / 100% calc(100% - 16px) no-repeat, radial-gradient(circle at 7px 8px, transparent 7px, #000 7.5px) 0 0 / 14px 8px repeat-x, radial-gradient(circle at 7px 0, transparent 7px, #000 7.5px) 0 100% / 14px 8px repeat-x; }
.ticket__head { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 16px; border-bottom: 1.5px dashed #B7BDB0; text-align: center; }
.ticket__head strong { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.ticket__head span { font-size: 11.5px; color: #5A6156; letter-spacing: .06em; text-transform: uppercase; }
.ticket__lines { display: grid; gap: 9px; padding: 16px 0; min-height: 120px; border-bottom: 1.5px dashed #B7BDB0; }
.ticket__lines li { display: flex; justify-content: space-between; gap: 14px; line-height: 1.35; }
.ticket__lines li span { min-width: 0; }
.ticket__lines li b { flex: none; font-weight: 600; }
.ticket__lines li.is-sample { color: #6B7267; }
.ticket__lines li.is-new { animation: printIn .55s var(--ease-out) both; }
.ticket__lines li.is-more { color: #6B7267; }
@keyframes printIn { from { clip-path: inset(0 0 100% 0); background: color-mix(in srgb, var(--accent) 60%, transparent); } 60% { background: color-mix(in srgb, var(--accent) 45%, transparent); } to { clip-path: inset(0); background: transparent; } }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 600; }
.ticket__total b { font-family: var(--font-display); font-size: 40px; font-weight: 900; }
.ticket__foot { margin-top: 6px; font-size: 11.5px; color: #5A6156; line-height: 1.45; }
.ticket__btn { margin-top: 18px; font-family: var(--font-sans); }

/* ---------- Cifras ---------- */
.stats { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 6px clamp(14px, 2.4vw, 32px); }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 5.6vw, 80px); line-height: .9; color: var(--brand); }
.stat b small { font-size: .45em; color: var(--ink-3); }
.stat > span { font-size: 14.5px; color: var(--ink-3); max-width: 22ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; justify-items: start; }
.faq__head h2 { margin-top: -2px; }

/* ---------- CTA ---------- */
.cta { padding-top: clamp(56px, 7vw, 96px); }
.cta__card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-2xl); background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-lg), inset 0 -3px 0 rgba(0,0,0,.06); }
.cta__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(0,0,0,.08) 1px, transparent 1.4px) 0 0 / 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.eyebrow--dark { color: var(--on-accent); }
.eyebrow--dark::before { background: var(--on-accent); }
.cta__title { font-size: clamp(48px, 6.4vw, 96px); margin-top: 12px; max-width: 12ch; }
.cta__lead { margin-top: 14px; font-size: var(--fs-lead); max-width: 46ch; color: color-mix(in srgb, var(--on-accent) 82%, transparent); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn--glass { background: color-mix(in srgb, #fff 55%, transparent); color: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.btn--glass:hover { background: color-mix(in srgb, #fff 80%, transparent); }
.cta__facts { position: relative; display: grid; gap: 10px; }
.cta__facts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); background: color-mix(in srgb, #fff 62%, transparent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.cta__facts .i { flex: none; margin-top: 2px; color: var(--brand-700); }
.cta__facts span { display: flex; flex-direction: column; font-size: 14px; color: color-mix(in srgb, var(--on-accent) 78%, transparent); }
.cta__facts b { font-size: 15.5px; color: var(--on-accent); }

/* ---------- Footer ---------- */
.footer { background: var(--inverse); color: var(--on-inverse); padding-block: 56px 28px; }
.footer__row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 40px; align-items: start; }
.footer__word { font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 8vw, 120px); line-height: .85; text-transform: uppercase; color: var(--lime); }
.footer__brand p { margin-top: 14px; max-width: 40ch; color: var(--on-inverse-2); }
.footer__nav, .footer__contact { display: grid; gap: 10px; font-size: 15px; }
.footer__nav a, .footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-inverse-2); transition: color var(--dur-1); }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--inverse-border); font-size: 13px; color: var(--on-inverse-2); }

/* ---------- Diálogo de vitrina ---------- */
.vdialog { width: min(1120px, calc(100vw - 40px)); height: min(760px, calc(100dvh - 40px)); max-height: none; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.vdialog__media { position: relative; overflow: hidden; background: var(--inverse); min-height: 0; }
.vdialog__media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.vdialog__body { display: flex; flex-direction: column; min-height: 0; }
.vdialog__head { display: flex; justify-content: space-between; gap: 12px; padding: 22px 22px 14px 26px; border-bottom: 1px solid var(--border); }
.vdialog__head .h-3 { margin-top: 6px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: .95; }
.vdialog__head .muted-text { margin-top: 6px; font-size: 13.5px; }
.vdialog__items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px 6px 26px; }
.vitem { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 54px; padding-block: 6px; border-bottom: 1px dashed var(--border-strong); }
.vitem.is-hit { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent); margin-inline: -10px; padding-inline: 10px; border-radius: 8px; }
.vitem__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.vitem__price { font-weight: 800; font-size: 16px; min-width: 56px; text-align: right; }
.vdialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }

/* ---------- Mi pedido ---------- */
.order { width: min(480px, 100vw); }
.order__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; }
.order__sub { font-size: 13px; }
.order__list { display: grid; }
.oline { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.oline img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--muted-2); }
.oline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oline__name { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.oline__unit { font-size: 12.5px; color: var(--ink-3); }
.oline__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.oline__side b { font-size: 15px; }
.oline .slot { min-width: 0; }
.order__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 10px; }
.order__empty p { color: var(--ink-3); font-size: 14.5px; max-width: 34ch; margin-bottom: 8px; }
.order__form { display: grid; gap: 16px; margin-top: 20px; padding-top: 4px; }
.order__form fieldset { border: 0; padding: 0; margin: 0; }
.order__form legend { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.order__total { display: flex; justify-content: space-between; align-items: baseline; }
.order__total span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.order__total b { font-family: var(--font-display); font-weight: 900; font-size: 38px; line-height: 1; }
.order__hint { font-size: 12.5px; color: var(--ink-3); margin-top: -4px; }
.order__clear { justify-self: center; color: var(--ink-3); }

/* Fly-to-list */
.fly-clone { position: fixed; z-index: 140; pointer-events: none; object-fit: cover; border-radius: 14px; box-shadow: var(--sh-xl); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat--wide .cat__media { flex-basis: 46%; }
  .cat__name { font-size: 23px; }
  .bcard { grid-column: span 6; }
  .bcard.is-feature { grid-column: span 12; grid-row: span 2; }
  .header__pill { display: none; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 13ch; }
  .hero__stack { justify-self: center; max-width: 560px; margin-top: 8px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat--wide { grid-column: span 3; }
  .how__grid, .faq, .cta__card { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; }
  .footer__row { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .vdialog { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --header-h: 62px; }
  .logo__word { font-size: 22px; }
  .logo__mark { width: 36px; height: 36px; font-size: 23px; }
  .cart-btn { padding: 0 8px 0 10px; }
  .h-hero { font-size: clamp(50px, 14.5vw, 72px); }
  .hero { padding-top: 26px; }
  .hero__kicker { font-size: 11px; margin-bottom: 14px; }
  .search__input { height: 56px; padding-right: 58px; font-size: 16px; }
  .search__btn { padding: 0; width: 44px; --h: 44px; font-size: 0; gap: 0; }
  .search__btn .i { width: 19px; height: 19px; }
  .search--hero { margin-top: 22px; }
  .hero__stack { aspect-ratio: 1 / 1.02; }
  .sticker b { font-size: 30px; }
  .sticker { padding: 8px 12px 7px 19px; }
  .hero__note { left: 4%; right: 4%; bottom: -4%; }
  .brands { padding-block: 13px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat--wide { grid-column: span 2; flex-direction: column; }
  .cat--wide .cat__media { flex: none; margin: 7px 7px 0; aspect-ratio: 16 / 9; min-height: 0; }
  .cat--wide .cat__body { padding: 14px 16px 16px; }
  .cat__body { padding: 12px 13px 14px; }
  .cat__name { font-size: 21px; }
  .cat--wide .cat__name { font-size: 28px; }
  .cat__short { font-size: 13px; }
  .cat__go { width: 32px; height: 32px; right: 12px; top: 12px; }
  .toolbar { padding-block: 8px; }
  .toolbar__row { flex-wrap: wrap; gap: 8px; }
  .search--bar { flex: 1 1 100%; }
  .search--bar .search__input { height: 44px; }
  .view-toggle { flex: 1; padding: 3px; }
  .view-toggle button { flex: 1; height: 36px; padding: 0 10px; }
  .sort__select { height: 42px; max-width: 150px; font-size: 14px; }
  .filters { margin-top: 8px; }
  .fchip { height: 40px; }
  .vgrid { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "t n n" "t p s"; row-gap: 6px; padding: 12px 12px; }
  .prow__thumb { grid-area: t; width: 48px; height: 48px; align-self: start; }
  .prow__text { grid-area: n; }
  .prow__price { grid-area: p; text-align: left; align-self: center; }
  .prow .slot { grid-area: s; }
  .bento { grid-auto-rows: minmax(200px, auto); }
  .bcard, .bcard.is-feature { grid-column: span 12; grid-row: auto; }
  .bcard.is-feature { min-height: 340px; }
  .bcard.is-feature .bcard__price b { font-size: 44px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .steps__n { width: 44px; height: 44px; font-size: 24px; }
  .ticket { transform: none; }
  .stat b { font-size: 52px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .footer { padding-bottom: calc(28px + 68px + env(safe-area-inset-bottom)); }
  .footer__row { grid-template-columns: 1fr; gap: 28px; }
  .vdialog { width: 100%; height: calc(100dvh - 24px); grid-template-rows: minmax(0, 36%) minmax(0, 1fr); }
  .vdialog__media img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .vdialog__items { padding-inline: 16px; }
  .vdialog__head { padding: 16px 12px 12px 16px; }
  .vdialog__foot { padding-inline: 16px; }
  .vdialog__foot .btn { flex: 1; }
  .toast-region { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
}
@media (max-width: 400px) {
  .sticker--2 { left: 0; }
  .slot { min-width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .vcard, html:not(.force-motion) .prow, html:not(.force-motion) .ticket__lines li.is-new { animation: none; }
}

/* ==========================================================================
   Capa de animación (fx.js)
   ========================================================================== */
/* Scroll suave Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }

/* Cortina de entrada (solo con JS; se autodestruye a los 3.5 s si algo falla) */
.curtain { display: none; }
.js .curtain { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--brand);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 22px 22px;
  animation: curtainSafety 0s 3.5s forwards; }
@keyframes curtainSafety { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.curtain__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; text-align: center; }
.curtain__mark { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 22px; background: #fff; color: var(--brand); font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1; box-shadow: var(--sh-xl); }
.curtain__mark::after { content: ""; position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--brand); }
.curtain__word { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 11vw, 140px); line-height: .9; text-transform: uppercase; overflow: hidden; padding-top: .08em; }
.curtain__sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* Etiqueta que sigue al cursor */
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; opacity: 0; visibility: hidden; transform: scale(0); }
.cursor-tag span { display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1; text-transform: uppercase; text-align: center; padding: 10px; box-shadow: var(--sh-xl); }
@media (pointer: fine) { .fx .vcard__media, .fx .bcard, .fx .cat__media, .fx .stack-card { cursor: none; } }

/* Las etiquetas del hero se balancean (propiedad rotate, independiente del transform) */
.sticker--1 { animation: swing 3.6s var(--ease-in-out) infinite alternate; }
.sticker--2 { animation: swing 4.2s var(--ease-in-out) -1.4s infinite alternate-reverse; }
@keyframes swing { from { rotate: -3deg; } to { rotate: 3deg; } }
.stack-card { will-change: translate; }

/* Con fx.js, GSAP se encarga de la entrada de tarjetas y filas */
.fx .vcard, .fx .prow { animation: none; }
.fx .how { will-change: clip-path; }
