/* =========================================================================
   Valentina Shop · sistema visual
   Porcelana, tinta ciruela y vino. Plus Jakarta Sans en todo (sin serifas).
   ========================================================================= */


@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }\n@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --porcelain: #FFF8FA;
  --paper: #FFFFFF;
  --blush: #F8DAE4;
  --blush-2: #FCE8EF;
  --ink: #241118;
  --ink-2: #6E5660;
  --ink-3: #6E5660;
  --wine: #B52B65;
  --wine-2: #921E4F;
  --wine-soft: #FDECF2;
  --sage: #2F5D4A;
  --sage-soft: #E1EAE4;
  --amber: #8A5410;
  --amber-soft: #F7EBDA;
  --danger: #B0243A;
  --danger-soft: #FBE6E9;
  --line: #F2DDE5;
  --line-2: #E3D3DA;

  --serif: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --t-xs: .8125rem;
  --t-sm: .875rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  --t-3xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --t-display: clamp(2.6rem, 1.4rem + 5.4vw, 5.4rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --header-h: 68px;
  --shadow-1: 0 1px 2px rgba(43, 22, 34, .06), 0 2px 8px rgba(43, 22, 34, .04);
  --shadow-2: 0 12px 40px rgba(43, 22, 34, .14), 0 2px 6px rgba(43, 22, 34, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* ---- Capa comercial (Perú): significado, no marca. Contraste AA con texto blanco ---- */
  --pay-yape: #6B1D7C;      /* 9,6:1 */
  --pay-plin: #00727F;      /* 5,4:1 (el turquesa de marca no llega a AA con texto blanco) */
  --pay-card: #005F99;      /* 6,9:1, tarjetas por Mercado Pago */
  --pay-bank: var(--ink);
  --wa: #1F7A4D;            /* 5,4:1; el verde de marca #25D366 no llega a 3:1 */
  --wa-2: #17633E;
  --ship: var(--sage);      /* entrega y confianza */
  --action: var(--wine);    /* acción principal: una sola por pantalla */
  --action-2: var(--wine-2);
  --z-fab: 40;
  --tap: 48px;              /* objetivo táctil mínimo */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font: 400 var(--t-md)/1.6 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--wine); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 22px; height: 22px; flex: none; }
.num, .price { font-variant-numeric: tabular-nums lining-nums; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Tipografía editorial ---------- */
.display { font: 400 var(--t-display)/.98 var(--serif); letter-spacing: -.035em; }
.h1 { font: 400 var(--t-3xl)/1.04 var(--serif); letter-spacing: -.025em; }
.h2 { font: 400 var(--t-2xl)/1.1 var(--serif); letter-spacing: -.02em; }
.h3 { font: 500 var(--t-lg)/1.3 var(--sans); letter-spacing: -.01em; }
.lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.xsmall { font-size: var(--t-xs); }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose h2 { font: 400 var(--t-xl)/1.25 var(--serif); color: var(--ink); margin: 2.2em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font-size: var(--t-md); color: var(--ink); margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 500; font-size: var(--t-md); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { --bg: #1d0e17; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--wine { --bg: var(--wine); }
.btn--wine:hover { --bg: var(--wine-2); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--line:hover { --bg: var(--paper); --bd: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --bg: var(--blush-2); }
.btn--wa { --bg: var(--wa); }
.btn--wa:hover { --bg: var(--wa-2); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: var(--t-lg); border-radius: 14px; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: var(--t-sm); border-radius: 10px; }
.btn--block { width: 100%; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--wine); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--wine) 35%, transparent); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Barra de anuncio y cabecera ---------- */
.announce { background: var(--ink); color: #F3E6EC; font-size: var(--t-xs); letter-spacing: .01em; text-align: center; padding: 8px var(--gutter); }
.announce a { color: #fff; }

.header { position: sticky; top: 0; z-index: 40; background: var(--porcelain); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__name { font: 500 1.6rem/1 var(--serif); letter-spacing: -.03em; text-transform: lowercase; color: var(--md-sys-color-primary, #B52B65); }
.brand__tag { font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: var(--t-sm); color: var(--ink-2); padding: 8px 2px; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--wine); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--blush-2); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 500; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.search { display: none; }
.search input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 14px 0 42px; font-size: var(--t-sm); }
.search input:focus { outline: none; border-color: var(--ink); }
.search { position: relative; }
.search .i { position: absolute; left: 12px; top: 11px; color: var(--ink-3); width: 20px; height: 20px; }

@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .nav { display: flex; gap: 26px; margin-right: auto; margin-left: 40px; }
  .brand { margin-right: 0; }
  .search { display: block; width: 260px; }
  .menu-btn { display: none; }
}

/* Menú móvil (dialog nativo) */
.sheet { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: min(420px, 92vw); height: 100dvh; background: var(--porcelain); color: var(--ink); }
.sheet::backdrop { background: rgba(43, 22, 34, .42); }
.sheet[open] { animation: sheet-in .28s var(--ease); }
.sheet--right { margin-left: auto; }
@keyframes sheet-in { from { transform: translateX(-16px); opacity: .6; } }
.sheet--right[open] { animation-name: sheet-in-r; }
@keyframes sheet-in-r { from { transform: translateX(16px); opacity: .6; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet__body { padding: 18px; overflow-y: auto; }
.mnav { display: grid; gap: 2px; }
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: var(--t-lg); }
.mnav a .i { color: var(--ink-3); }
.msearch { margin-bottom: 14px; display: block; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 36px); }
.section__head p { color: var(--ink-3); margin-top: 6px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.band--ink { background: var(--ink); color: #F5EAEF; border: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 80px) clamp(40px, 6vw, 88px); overflow: hidden; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__copy .display { max-width: 11ch; }
.hero__copy .lead { margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero__art figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.hero__art figure:first-child { grid-row: span 2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero__art figure:first-child img { aspect-ratio: 4 / 5.6; }
.trust { display: grid; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust li { list-style: none; display: flex; gap: 12px; align-items: center; font-size: var(--t-sm); color: var(--ink-2); }
.trust .i { color: var(--wine); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; } }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero__art { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- Categorías ---------- */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; text-decoration: none; display: grid; gap: 10px; }
.cat__img { border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.cat__img img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.035); }
.cat__name { font-weight: 500; }
.cat__count { font-size: var(--t-xs); color: var(--ink-3); }
@media (min-width: 1000px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* ---------- Tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card__media { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.card__media .alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .card__media .alt { opacity: 1; } .card:hover .card__media img:first-child { transform: scale(1.02); } }
.card__flags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.card__body { display: grid; gap: 4px; }
.card__cat { font-size: var(--t-xs); color: var(--ink-3); }
.card__name { font-weight: 500; font-size: var(--t-md); line-height: 1.35; text-decoration: none; }
.card__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.card__price s { color: var(--ink-3); font-weight: 400; font-size: var(--t-sm); }
.card.is-soldout .card__media img { opacity: .55; filter: saturate(.6); }
.card__quick { position: relative; z-index: 3; justify-self: start; }
.flag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 500; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.flag--sale { background: var(--wine); color: #fff; }
.flag--new { background: var(--ink); color: #fff; }
.flag--out { background: var(--paper); color: var(--ink-2); }
.flag--low { background: var(--amber-soft); color: var(--amber); }

/* ---------- Catálogo ---------- */
.shop-head { padding-block: clamp(20px, 3vw, 36px) clamp(18px, 2.5vw, 28px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.shop { display: grid; gap: 28px; padding-bottom: 80px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 26px; position: sticky; top: var(--header-h); background: var(--porcelain); z-index: 5; }
.toolbar__count { font-size: var(--t-sm); color: var(--ink-3); }
.toolbar select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); padding: 0 34px 0 12px; font-size: var(--t-sm); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232B1622' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.filters { display: none; }
.filters h3 { font-size: var(--t-sm); font-weight: 500; margin-bottom: 10px; }
.filters section { padding-block: 18px; border-bottom: 1px solid var(--line); }
.filters section:first-child { padding-top: 0; }
.facet { display: grid; gap: 4px; }
.facet a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; margin-inline: -10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: var(--t-sm); }
.facet a:hover { background: var(--blush-2); color: var(--ink); }
.facet a[aria-current="true"] { background: var(--blush); color: var(--ink); font-weight: 500; }
.facet a small { opacity: .7; }
.price-filter { display: flex; gap: 8px; align-items: center; }
.price-filter input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--paper); font-size: var(--t-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: var(--t-sm); text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip .i { width: 14px; height: 14px; }
.filter-btn { display: inline-flex; }
@media (min-width: 1000px) {
  .shop { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .filter-btn { display: none; }
}
.empty { text-align: left; padding: 48px 0; max-width: 52ch; }
.empty .h2 { margin-bottom: 10px; }
.empty .btn { margin-top: 22px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; gap: 28px; padding-block: 12px 64px; }
.gallery { display: grid; gap: 10px; }
.gallery__main { border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.gallery__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumbs button { width: 76px; padding: 0; border: 1.5px solid transparent; border-radius: 12px; overflow: hidden; background: var(--blush); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { aspect-ratio: 4 / 5; object-fit: cover; }
.buy { display: grid; gap: 22px; align-content: start; }
.buy__title { font: 400 clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem)/1.04 var(--serif); letter-spacing: -.025em; }
.buy__short { color: var(--ink-2); font-size: var(--t-lg); max-width: 44ch; }
.buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.buy__price .price { font-size: 1.75rem; font-weight: 500; letter-spacing: -.01em; }
.buy__price s { color: var(--ink-3); font-size: var(--t-md); font-weight: 400; }
.buy .flag { margin-bottom: 14px; }
.buy__tax { font-size: var(--t-xs); color: var(--ink-3); width: 100%; margin-top: -6px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 500; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.stock--low { color: var(--amber); }
.stock--low::before { background: var(--amber); }
.stock--out { color: var(--danger); }
.stock--out::before { background: var(--danger); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.swatches legend { font-size: var(--t-sm); font-weight: 500; margin-bottom: 10px; padding: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch label { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: var(--t-sm); cursor: pointer; }
.swatch label b { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); background: var(--blush); }
.swatch input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch input:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 2px; }
.swatch input:disabled + label { opacity: .45; text-decoration: line-through; }
.buy__row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); height: 56px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; font-weight: 500; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 38px; border-radius: 10px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 28px; font-size: var(--t-sm); }
.buy__row .btn { flex: 1; }
.perks { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.perks li { list-style: none; display: flex; gap: 14px; padding: 16px 18px; font-size: var(--t-sm); color: var(--ink-2); }
.perks li + li { border-top: 1px solid var(--line); }
.perks strong { color: var(--ink); display: block; font-weight: 500; }
.perks .i { color: var(--wine); margin-top: 2px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { transition: transform .2s var(--ease); }
.acc details[open] summary .i { transform: rotate(180deg); }
.acc .acc__body { padding-bottom: 20px; color: var(--ink-2); }
.acc .acc__body ul { padding-left: 1.1em; display: grid; gap: 4px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s var(--ease); }
.sticky-buy.is-on { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; }
.sticky-buy__info strong { display: block; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1000px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
  .gallery { grid-template-columns: 84px 1fr; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .gallery__thumbs { flex-direction: column; order: -1; }
  .sticky-buy { display: none; }
}

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: var(--t-sm); font-weight: 500; }
.field small { color: var(--ink-3); font-size: var(--t-xs); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232B1622' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(140, 29, 74, .12); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: var(--t-xs); font-weight: 500; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--wine); flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; background: var(--blush-2); border-radius: 14px; border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 10px; font-weight: 500; font-size: var(--t-sm); cursor: pointer; color: var(--ink-2); }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.seg--wrap { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; }
.seg--wrap span { border: 1px solid var(--line); background: var(--paper); }
.seg--wrap input:checked + span { background: var(--wine); color: #fff; border-color: var(--wine); box-shadow: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-weight: 500; font-size: var(--t-sm); }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.seg input:focus-visible + span { outline: 2px solid var(--wine); }
.choices { display: grid; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; }
.choice label::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: border .15s; }
.choice input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice input:checked + label::before { border: 6px solid var(--wine); }
.choice input:focus-visible + label { outline: 2px solid var(--wine); outline-offset: 2px; }
.choice__t { font-weight: 500; }
.choice__d { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.choice__logo { flex: none; white-space: nowrap; margin-left: auto; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #fff; }
.logo-yape { background: var(--pay-yape); }
.logo-plin { background: var(--pay-plin); }
.logo-bank { background: var(--ink); }
.logo-cod { background: var(--sage); }
.logo-mp { background: var(--pay-card); }
.seg--sm span { height: 38px; font-weight: 500; }
.seg span small { font-weight: 400; color: var(--muted, inherit); margin-left: 4px; }
.pickup-key { font-variant-numeric: tabular-nums; letter-spacing: .3em; font-size: 1.6rem; font-weight: 500; }

/* ---------- Avisos ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: var(--t-sm); background: var(--paper); border: 1px solid var(--line); }
.notice .i { flex: none; margin-top: 1px; }
.notice--ok { background: var(--sage-soft); border-color: transparent; color: #1E4334; }
.notice--warn { background: var(--amber-soft); border-color: transparent; color: #6B3F07; }
.notice--err { background: var(--danger-soft); border-color: transparent; color: #8A1B2C; }
.notice--info { background: var(--wine-soft); border-color: transparent; color: var(--wine-2); }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 28px; padding-block: 8px 80px; }
.co-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.co-step__title { display: flex; align-items: baseline; gap: 12px; font: 400 var(--t-xl)/1.2 var(--serif); letter-spacing: -.01em; }
.co-step__title em { font: 500 var(--t-xs)/1 var(--sans); font-style: normal; color: var(--ink-3); }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px); display: grid; gap: 16px; align-content: start; }
.summary__lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.line img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--blush); }
.line__name { font-size: var(--t-sm); font-weight: 500; line-height: 1.35; }
.line__meta { font-size: var(--t-xs); color: var(--ink-3); }
.line__price { font-size: var(--t-sm); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.totals { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dd, .totals dt { margin: 0; }
.totals .grand { font-size: var(--t-lg); font-weight: 500; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .save { color: var(--sage); }
.coupon { display: flex; gap: 8px; }
.coupon .input { min-height: 44px; text-transform: uppercase; }
@media (min-width: 1000px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
  .checkout .summary { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Carrito (cajón) ---------- */
.drawer { width: min(460px, 100vw); }
.drawer .sheet__body { display: grid; gap: 16px; align-content: start; height: calc(100dvh - 63px - 170px); }
.drawer__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; }
.freebar { display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); padding: 14px; border-radius: var(--r-md); background: var(--blush-2); }
.freebar__track { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.freebar__track i { display: block; height: 100%; background: var(--wine); transition: width .4s var(--ease); }
.cline { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cline img { width: 76px; height: 95px; object-fit: cover; border-radius: 12px; background: var(--blush); }
.cline__top { display: flex; justify-content: space-between; gap: 10px; }
.cline__name { font-size: var(--t-sm); font-weight: 500; text-decoration: none; line-height: 1.35; }
.cline__meta { font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }
.cline__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cline__issue { font-size: var(--t-xs); color: var(--amber); margin-top: 6px; }
.remove { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; border-radius: 6px; }
.remove:hover { color: var(--danger); }

/* ---------- Pedido ---------- */
.order-hero { padding-block: clamp(28px, 5vw, 56px) 20px; display: grid; gap: 12px; }
.paybox { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--ink); color: #F7ECF1; }
.paybox .muted { color: #CDB7C3; }
.paybox__amount { font: 400 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--serif); letter-spacing: -.02em; }
.paybox__num { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.paybox__num strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.paybox .btn--line { --fg: #fff; --bd: rgba(255,255,255,.35); }
.paybox .btn--line:hover { --bg: rgba(255,255,255,.08); --bd: #fff; }
.paybox ol { padding-left: 1.2em; display: grid; gap: 6px; color: #E9D9E1; }
.countdown { font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 4px; }
.steps li { list-style: none; display: grid; gap: 8px; font-size: var(--t-xs); color: var(--ink-3); }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.is-done::before { background: var(--wine); }
.steps li.is-done { color: var(--ink); font-weight: 500; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px); display: grid; gap: 14px; align-content: start; }
.panel h2 { font: 400 var(--t-xl)/1.2 var(--serif); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: var(--t-sm); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.two { display: grid; gap: 20px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } .two--wide { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Bloques de la portada ---------- */
.howto { display: grid; gap: 28px; }
.howto li { list-style: none; display: grid; gap: 10px; }
.howto__n { font: 300 3.2rem/1 var(--serif); color: var(--wine); }
.howto h3 { font-size: var(--t-lg); }
.howto p { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 760px) { .howto { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.zones { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.zones th, .zones td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.zones th { font-weight: 500; color: var(--ink-3); font-size: var(--t-xs); }
.zones td:nth-child(n+2), .zones th:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zones td small { display: block; color: var(--ink-3); margin-top: 2px; }
.band--ink .zones th, .band--ink .zones td small { color: #CDB7C3; }
.band--ink .zones td, .band--ink .zones th { border-color: rgba(255,255,255,.12); }
.cta-wa { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-wa { grid-template-columns: 1fr auto; } }

/* ---------- Pie ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: var(--t-sm); }
.footer__grid { display: grid; gap: 32px; }
.footer h2 { font-size: var(--t-sm); font-weight: 500; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__brand .brand__name { font-size: 2.4rem; }
.footer__brand p { color: var(--ink-3); margin-top: 10px; max-width: 34ch; }
.social { display: flex; gap: 6px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); }
.social a:hover { border-color: var(--ink); text-decoration: none; }
.libro { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink) !important; font-weight: 500; margin-top: 4px; }
.libro .i { color: var(--wine); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-xs); }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-logos span { height: 26px; padding: 0 9px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: #fff; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); font-size: var(--t-sm); animation: toast-in .25s var(--ease); }
.toast a { color: #fff; font-weight: 500; margin-left: auto; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Cuenta y páginas ---------- */
.narrow { max-width: 560px; margin-inline: auto; }
.page-head { padding-block: clamp(28px, 5vw, 64px) clamp(18px, 3vw, 32px); }
.page-head .lead { margin-top: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 12px 14px; text-decoration: none; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--wine); }
.olist { display: grid; gap: 12px; }
.orow { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); text-decoration: none; }
.orow:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.orow strong { font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--blush-2); color: var(--ink-2); white-space: nowrap; }
.pill--pendiente { background: var(--amber-soft); color: var(--amber); }
.pill--pagado, .pill--entregado { background: var(--sage-soft); color: var(--sage); }
.pill--preparando, .pill--enviado { background: var(--wine-soft); color: var(--wine); }
.pill--cancelado { background: #EFE9EC; color: var(--ink-3); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding-bottom: 18px; color: var(--ink-2); max-width: 70ch; }

.error-page { padding-block: clamp(56px, 10vw, 120px); max-width: 640px; }
.error-page .display { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem); }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .header, .footer, .announce, .sticky-buy, .btn, .toasts { display: none !important; }
  body { background: #fff; }
}
.mnav + .btn { margin-top: 22px; }
.band--ink .lead { color: #E4D3DB; margin-top: 14px; }
.band--ink .h2 { color: #fff; }
.two > *, .checkout > *, .form-grid > *, .shop > * { min-width: 0; }
.btn--block { white-space: normal; text-align: center; }
.steps li { overflow-wrap: anywhere; }

/* =========================================================================
   MATERIAL 3 EXPRESSIVE · estructura y navegación (sin vidrio)
   Todas las superficies son sólidas y tonales; la profundidad la dan el tono
   del contenedor y la elevación, nunca la transparencia ni el desenfoque.
   ========================================================================= */
:root { --tabbar-h: 64px; }
body { position: relative; background: var(--md-sys-color-surface); }

/* Barra superior (top app bar): a todo el ancho; al desplazarse toma tono de contenedor y elevación */
.announce { position: relative; z-index: 41; }
.header { background: var(--md-sys-color-surface); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; padding-top: 0;
  transition: background-color var(--md-sys-motion-spring-default-effects), box-shadow var(--md-sys-motion-spring-default-effects); }
.header.is-scrolled { background: var(--md-sys-color-surface-container); box-shadow: var(--md-sys-elevation-2); border: 0; }
.header__in { height: var(--header-h); padding: 0 var(--gutter); background: none; border: 0; box-shadow: none; border-radius: 0; }
.header .icon-btn { width: 48px; height: 48px; border-radius: var(--md-sys-shape-corner-full); }
.header .icon-btn:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.search input { background: var(--md-sys-color-surface-container-high); border: 0; border-radius: var(--md-sys-shape-corner-full); min-height: 48px; }
.search input:focus { background: var(--md-sys-color-surface-container-highest); box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.nav a { padding: 10px 14px; border-radius: var(--md-sys-shape-corner-full); border-bottom: 0; font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); }
.nav a:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); color: var(--md-sys-color-on-surface); }
.nav a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
@media (min-width: 1000px) { .nav { gap: 4px; margin-left: 24px; } }

/* Barra de navegación (navigation bar): a todo el ancho, indicador en píldora detrás del ícono */
.tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  background: var(--md-sys-color-surface-container); border: 0; border-radius: 0; box-shadow: var(--md-sys-elevation-2);
}
.tabbar a, .tabbar button {
  position: relative; display: grid; place-items: center; align-content: center; gap: 4px;
  border: 0; background: none; text-decoration: none; cursor: pointer;
  font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); -webkit-tap-highlight-color: transparent;
}
.tabbar a::before, .tabbar button::before {
  content: ""; position: absolute; left: 50%; top: 4px; width: 56px; height: 32px; margin-left: -28px;
  border-radius: var(--md-sys-shape-corner-full); background: transparent;
  transition: background-color var(--md-sys-motion-spring-fast-effects), width var(--md-sys-motion-spring-fast-spatial), margin var(--md-sys-motion-spring-fast-spatial);
}
.tabbar a:hover::before, .tabbar button:hover::before { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.tabbar .i { position: relative; width: 24px; height: 24px; }
.tabbar [aria-current="page"] { background: none; color: var(--md-sys-color-on-surface); font-weight: 500; }
.tabbar [aria-current="page"]::before { background: var(--md-sys-color-secondary-container); }
.tabbar [aria-current="page"] .i { color: var(--md-sys-color-on-secondary-container); }
.tabbar .cart-count { top: 2px; right: calc(50% - 24px); z-index: 1; }
body { padding-bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .tabbar { display: none; } body { padding-bottom: 0; } }
@media (max-width: 999px) {
  .header .menu-btn, .header [data-hide-mobile] { display: none; }
}

/* Hojas laterales (menú, carrito, filtros): sólidas, a toda la altura, esquinas grandes hacia el contenido */
.sheet {
  margin: 0; height: 100dvh; overflow: hidden; border: 0;
  background: var(--md-sys-color-surface-container-low); -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: 0 var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0; box-shadow: var(--md-sys-elevation-3);
}
.sheet--right { margin-left: auto; border-radius: var(--md-sys-shape-corner-extra-large) 0 0 var(--md-sys-shape-corner-extra-large); }
.sheet::backdrop { background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet__head { border-bottom-color: var(--md-sys-color-outline-variant); }
.sheet .icon-btn { border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-high); }
.drawer__foot { background: var(--md-sys-color-surface-container); border-top-color: var(--md-sys-color-outline-variant); border-radius: 0; }
.sheet .freebar { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.sheet .cline { border-bottom-color: var(--md-sys-color-outline-variant); }
.sheet .qty, .sheet .search input { background: var(--md-sys-color-surface-container-lowest); }
.mnav a { border-bottom-color: var(--md-sys-color-outline-variant); }

/* Barra de compra de la ficha (móvil): barra flotante sólida sobre la navegación */
.sticky-buy {
  left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
  border: 0; border-radius: var(--md-sys-shape-corner-extra-large); padding: 8px 8px 8px 20px;
  background: var(--md-sys-color-surface-container-high); box-shadow: var(--md-sys-elevation-3);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transform: translateY(16px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform var(--md-sys-motion-spring-default-spatial), opacity .2s var(--ease), visibility 0s linear .3s;
}
.sticky-buy.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* Barra de herramientas del catálogo */
.toolbar { top: calc(var(--header-h) + 8px); border: 0; border-radius: var(--md-sys-shape-corner-full); padding: 6px 6px 6px 16px;
  background: var(--md-sys-color-surface-container); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.toolbar select { background-color: var(--md-sys-color-surface-container-lowest); border-radius: var(--md-sys-shape-corner-full); }
.toolbar .btn--line { border-radius: var(--md-sys-shape-corner-full); }

/* Avisos (snackbar) */
.toasts { bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .toasts { bottom: 24px; } }
.toast { border: 0; border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface);
  box-shadow: var(--md-sys-elevation-3); -webkit-backdrop-filter: none; backdrop-filter: none; }
.toast .i { color: var(--md-sys-color-inverse-primary); }
.toast a { color: var(--md-sys-color-inverse-primary); }

/* Botones planos: sin degradados ni brillos */
.btn--wine, .btn--wa, .btn:not(.btn--line):not(.btn--ghost) { box-shadow: none; }
.btn--wine { background: var(--md-sys-color-primary); }
.btn--wine:hover { background: var(--md-sys-color-primary); box-shadow: var(--md-sys-elevation-1); }
.btn--wa { background: var(--wa); }
.btn--line { background: transparent; }
.paybox .btn--line { background: transparent; --fg: var(--md-sys-color-inverse-on-surface); --bd: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 45%, transparent); }

/* Contenido: superficies tonales */
.perks { background: var(--md-sys-color-surface-container-low); border: 0; border-radius: var(--md-sys-shape-corner-extra-large); }

/* Más contraste a pedido: bordes visibles en las superficies */
@media (prefers-contrast: more) {
  .header, .tabbar, .sheet, .sticky-buy, .toolbar, .co-step, .summary, .panel, .perks { box-shadow: none; border: 1.5px solid var(--md-sys-color-on-surface); }
}
@media print { .tabbar, .wa-fab { display: none !important; } }
.search-btn { display: none; }
@media (max-width: 999px) { .search-btn { display: inline-grid; } }
.toolbar { flex-wrap: nowrap; }
.toolbar form { margin-left: auto; }
.toolbar select { max-width: 168px; }
@media (max-width: 420px) { .toolbar__count { display: none; } }
.drawer__foot .totals { border-top: 0; padding-top: 0; }

/* Agencias Shalom en el checkout */
.agency-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.agency-head .link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--wine); font: inherit; text-decoration: underline; }
.agency-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--paper); display: grid; gap: 8px; font-size: var(--t-sm); }
.agency-card .kv { margin: 0; }
/* Seguimiento Shalom */
.ship-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ship-track li { position: relative; padding: 0 0 14px 26px; color: var(--ink-2); }
.ship-track li::before { content: ""; position: absolute; left: 6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.ship-track li::after { content: ""; position: absolute; left: 11px; top: 17px; bottom: 0; width: 2px; background: var(--line); }
.ship-track li:last-child::after { display: none; }
.ship-track li.is-done { color: var(--ink); }
.ship-track li.is-done::before { background: var(--sage); border-color: var(--sage); }
.ship-track li.is-now strong { color: var(--wine); }
.ship-track small { display: block; color: var(--ink-3, var(--ink-2)); }

/* Comprobante de pago */
.proof { display: grid; gap: 10px; margin-top: 6px; }
.proof__form { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* Campo trampa antispam: fuera de la vista y del lector de pantalla */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Autocompletado con DNI o RUC */
[data-doc-status] { min-height: 1.2em; }
[data-doc-status].doc-busy { color: var(--ink-2); }
[data-doc-status].doc-ok { color: var(--sage); font-weight: 500; }
[data-doc-status].doc-warn { color: var(--amber); }

/* =========================================================================
   Componentes de conversión (Perú) · ver docs/DESIGN-SYSTEM.md
   ========================================================================= */

/* PayStrip: medios de pago visibles desde la ficha (Baymard: el pago no debe aparecer recién al final) */
.paystrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--t-sm); color: var(--ink-2); }
.paystrip__chip { display: inline-grid; place-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; color: #fff; letter-spacing: .01em; }
.paystrip__chip--yape { background: var(--pay-yape); }
.paystrip__chip--plin { background: var(--pay-plin); }
.paystrip__chip--card { background: var(--pay-card); }
.paystrip__chip--bank { background: var(--pay-bank); }

/* Prueba social honesta: solo unidades realmente vendidas */
.sold { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.sold strong { color: var(--ink); }

/* FAB de WhatsApp: mensaje según la página; no tapa el botón de compra */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 500; text-decoration: none; box-shadow: var(--shadow-2); transition: transform .2s var(--ease), background .2s; }
.wa-fab:hover { background: var(--wa-2); transform: translateY(-1px); }
.wa-fab .i { width: 24px; height: 24px; }
.wa-fab__label { font-size: var(--t-sm); }
@media (max-width: 640px) { .wa-fab { padding: 0; width: 56px; justify-content: center; } .wa-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 999px) {
  .wa-fab { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
  body.has-sticky-buy .wa-fab { display: none; } /* la ficha ya tiene «Consultar por WhatsApp» y la barra de compra */
}
.is-checkout .wa-fab, .is-order .wa-fab { display: none; }

/* QR de pago (escritorio: se escanea con el celular) */
.payqr { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--paper); }
.payqr img { width: 132px; height: 132px; object-fit: contain; border-radius: 8px; background: #fff; }
.payqr p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 640px) { .payqr { grid-template-columns: 96px 1fr; } .payqr img { width: 96px; height: 96px; } }

/* Promesa de entrega junto al botón (confianza cerca de la acción) */
.promise { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sage-soft); color: var(--ink); font-size: var(--t-sm); }
.promise strong { color: var(--ship); }
.promise .i { color: var(--ship); }
.promise__row { display: flex; gap: 10px; align-items: flex-start; }

.buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.buy__meta .sold .i { width: 16px; height: 16px; color: var(--ship); }
.buy .paystrip, .summary .paystrip { margin: 0; }

/* =========================================================================
   MATERIAL 3 EXPRESSIVE · capa de la tienda (ver docs/DESIGN-SYSTEM.md)
   Tokens en tokens.css. Los tokens anteriores pasan a ser alias de los M3,
   así cada regla vieja hereda la nueva paleta sin reescribirla.
   ========================================================================= */
:root {
  --porcelain: var(--md-sys-color-surface);
  --paper: var(--md-sys-color-surface-container-lowest);
  --blush: var(--md-sys-color-surface-container-high);
  --blush-2: var(--md-sys-color-surface-container);
  --ink: var(--md-sys-color-on-surface);
  --ink-2: var(--md-sys-color-on-surface-variant);
  --wine: var(--md-sys-color-primary);
  --wine-soft: var(--md-sys-color-primary-container);
  --sage: var(--md-sys-color-tertiary);
  --sage-soft: var(--md-sys-color-tertiary-container);
  --danger: var(--md-sys-color-error);
  --danger-soft: var(--md-sys-color-error-container);
  --line: var(--md-sys-color-outline-variant);
  --r-sm: var(--md-sys-shape-corner-small);
  --r-md: var(--md-sys-shape-corner-medium);
  --r-lg: var(--md-sys-shape-corner-large-increased);
  --r-xl: var(--md-sys-shape-corner-extra-large);
  --shadow-1: var(--md-sys-elevation-1);
  --ease: cubic-bezier(.31, .94, .34, 1);
}

/* Tipografía con énfasis: Plus Jakarta Sans en todo (sin serifas) */
.display { font: var(--md-sys-typescale-display-large); letter-spacing: -.03em; }
.h1 { font: var(--md-sys-typescale-headline-large); letter-spacing: -.02em; }
.h2 { font: var(--md-sys-typescale-headline-medium); letter-spacing: -.015em; }
.h3, .panel h2, .co-step__title { font: var(--md-sys-typescale-headline-small); letter-spacing: -.01em; }
.price { font-weight: 500; letter-spacing: -.01em; }

/* Foco: anillo grueso y visible */
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }

/* ---------- Botones: píldora que se vuelve más cuadrada al presionar (cambio de forma) ---------- */
.btn {
  min-height: 48px; border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-label-large); font-size: 1rem;
  position: relative; overflow: hidden; isolation: isolate;
  transition: border-radius var(--md-sys-motion-spring-fast-spatial), background-color var(--md-sys-motion-spring-fast-effects),
    box-shadow var(--md-sys-motion-spring-fast-effects), color var(--md-sys-motion-spring-fast-effects);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity var(--md-sys-motion-spring-fast-effects); }
.btn:hover::before { opacity: var(--md-sys-state-hover); }
.btn:focus-visible::before, .btn:active::before { opacity: var(--md-sys-state-pressed); }
.btn:active { transform: none; border-radius: var(--md-sys-shape-corner-medium); }
.btn--lg { min-height: 56px; border-radius: var(--md-sys-shape-corner-full); font-size: 1.0625rem; }
.btn--lg:active { border-radius: var(--md-sys-shape-corner-large); }
.btn--sm { min-height: 40px; border-radius: var(--md-sys-shape-corner-full); font-size: .875rem; }
.btn--wine { --bg: var(--md-sys-color-primary); --fg: var(--md-sys-color-on-primary); }
.btn--wine:hover { --bg: var(--md-sys-color-primary); box-shadow: var(--md-sys-elevation-1); }
.btn--tonal { --bg: var(--md-sys-color-secondary-container); --fg: var(--md-sys-color-on-secondary-container); --bd: transparent; }
.btn--line { --bg: transparent; --fg: var(--md-sys-color-primary); --bd: var(--md-sys-color-outline); }
.btn--line:hover { --bg: transparent; --bd: var(--md-sys-color-outline); }
.btn--ghost { --fg: var(--md-sys-color-primary); }
.btn--ghost:hover { --bg: transparent; }
.btn--wa { background: var(--wa); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 1; background: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent); color: color-mix(in srgb, var(--md-sys-color-on-surface) 45%, transparent); box-shadow: none; }

/* ---------- Superficies: contenedores tonales, sin bordes, esquinas extra grandes ---------- */
.co-step, .summary, .panel, .agency-card, .promise {
  background: var(--md-sys-color-surface-container-low); border: 0; border-radius: var(--md-sys-shape-corner-extra-large);
}
.summary { background: var(--md-sys-color-surface-container-lowest); box-shadow: var(--md-sys-elevation-1); }
.promise { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.promise strong, .promise .i { color: var(--md-sys-color-on-tertiary-container); }
.agency-card { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); }
.paybox { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); border-radius: var(--md-sys-shape-corner-extra-large-increased); }

/* ---------- Campos: estilo «outlined», altos y cómodos para el pulgar ---------- */
.input, .select, .textarea {
  min-height: 56px; border-radius: var(--md-sys-shape-corner-medium); border: 1px solid var(--md-sys-color-outline);
  background-color: var(--md-sys-color-surface-container-lowest); font: var(--md-sys-typescale-body-large);
  transition: border-color var(--md-sys-motion-spring-fast-effects), box-shadow var(--md-sys-motion-spring-fast-effects);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--md-sys-color-on-surface); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--md-sys-color-error); box-shadow: inset 0 0 0 1px var(--md-sys-color-error); }
.field > span, .field > label { font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface); }
.error { color: var(--md-sys-color-error); }

/* ---------- Opciones de pago: tarjetas seleccionables ---------- */
.choice label {
  border-radius: var(--md-sys-shape-corner-large-increased); border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest); min-height: 72px;
  transition: background-color var(--md-sys-motion-spring-fast-effects), border-color var(--md-sys-motion-spring-fast-effects), border-radius var(--md-sys-motion-spring-fast-spatial);
}
.choice label:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 4%, var(--md-sys-color-surface-container-lowest)); }
.choice input:checked + label { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); border-color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary); border-radius: var(--md-sys-shape-corner-extra-large); }
.choice input:checked + label .choice__d { color: var(--md-sys-color-on-primary-container); }
.choice__logo { border-radius: var(--md-sys-shape-corner-small); }

/* ---------- Grupo de botones conectado (entrega, modalidad) ---------- */
.seg { padding: 4px; gap: 4px; background: var(--md-sys-color-surface-container); border: 0; border-radius: var(--md-sys-shape-corner-full); }
.seg span { height: 48px; border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); transition: background-color var(--md-sys-motion-spring-fast-effects), border-radius var(--md-sys-motion-spring-fast-spatial); }
.seg input:checked + span { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: none; }
.seg input:active + span { border-radius: var(--md-sys-shape-corner-medium); }
.seg--sm span { height: 40px; }

/* ---------- Chips, variantes y cantidad ---------- */
.chip, .swatch label { border-radius: var(--md-sys-shape-corner-small); border: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container-lowest); font: var(--md-sys-typescale-label-large); }
.swatch label { height: 44px; border-radius: var(--md-sys-shape-corner-medium); }
.swatch input:checked + label { background: var(--md-sys-color-secondary-container); border-color: transparent; box-shadow: none; color: var(--md-sys-color-on-secondary-container); }
.qty { border-radius: var(--md-sys-shape-corner-full); border-color: var(--md-sys-color-outline); background: var(--md-sys-color-surface-container-lowest); height: 56px; }
.qty button { width: 48px; border-radius: var(--md-sys-shape-corner-full); }
.qty--sm { height: 40px; }
.qty--sm button { width: 36px; }

/* ---------- Tarjetas de producto: la imagen cambia de forma al pasar ---------- */
.card__media { border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container); transition: border-radius var(--md-sys-motion-spring-default-spatial); }
.card:hover .card__media { border-radius: var(--md-sys-shape-corner-extra-extra-large); }
.card__media img { transition: transform var(--md-sys-motion-spring-default-spatial), opacity .35s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__name { font: var(--md-sys-typescale-title-medium); }
.flag { border-radius: var(--md-sys-shape-corner-full); height: 26px; padding: 0 10px; font: var(--md-sys-typescale-label-medium); }
.flag--sale { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.flag--new { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.cat__img, .hero__art figure { border-radius: var(--md-sys-shape-corner-extra-large); }
.hero__art figure:first-child { border-radius: var(--md-sys-shape-corner-extra-extra-large) var(--md-sys-shape-corner-extra-large); }

/* ---------- Avisos: contenedores tonales ---------- */
.notice { border: 0; border-radius: var(--md-sys-shape-corner-large); }
.notice--ok { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.notice--err { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.notice--info { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }

/* ---------- Avance del pedido: indicador lineal grueso y redondeado ---------- */
.steps li::before { height: 6px; border-radius: 3px; background: var(--md-sys-color-secondary-container); }
.steps li.is-done::before { background: var(--md-sys-color-primary); }
.steps li.is-done { color: var(--md-sys-color-on-surface); font-weight: 500; }

/* ---------- Barra de navegación: indicador en píldora ---------- */
.tabbar a, .tabbar button { transition: transform var(--md-sys-motion-spring-fast-spatial); }
.tabbar a:active, .tabbar button:active { transform: scale(.94); }

/* ---------- FAB de WhatsApp: forma de FAB (esquinas grandes, no círculo) ---------- */
.wa-fab { border-radius: var(--md-sys-shape-corner-large-increased); min-height: 56px; box-shadow: var(--md-sys-elevation-3); transition: border-radius var(--md-sys-motion-spring-fast-spatial), transform var(--md-sys-motion-spring-fast-spatial), background-color .2s; }
.wa-fab:active { border-radius: var(--md-sys-shape-corner-extra-large); transform: scale(.96); }
@media (max-width: 640px) { .wa-fab { width: 56px; } }

/* ---------- Superficies sólidas de cierre ---------- */
.sheet { background: var(--md-sys-color-surface-container-low); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
.toolbar { background: var(--md-sys-color-surface-container-low); -webkit-backdrop-filter: none; backdrop-filter: none; }
.announce { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.footer { background: var(--md-sys-color-surface-container-low); border-top: 0; }
.band { background: var(--md-sys-color-surface-container-low); border-block: 0; }
.sticky-buy .btn { min-height: 48px; }

/* Movimiento: sin rebotes ni cambios de forma animados si la persona lo pide */
@media (prefers-reduced-motion: reduce) {
  .btn, .seg span, .choice label, .card__media, .card__media img, .wa-fab, .tabbar a, .tabbar button { transition: none !important; }
  .card:hover .card__media img, .wa-fab:active, .tabbar a:active, .tabbar button:active { transform: none !important; }
}

/* =========================================================================
   MATERIAL 3 EXPRESSIVE · detalles (tienda)
   Lo mínimo también es Material: barras de desplazamiento ocultas, controles,
   listas, tablas, insignias, progreso y textos con tokens M3.
   ========================================================================= */

/* Sin barras de desplazamiento visibles: el contenido se sigue desplazando (dedo, rueda, teclado) */
html { scrollbar-width: none; -ms-overflow-style: none; }
*, *::before, *::after { scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }
.sheet, .sheet__body, .drawer .sheet__body { overscroll-behavior: contain; }

/* Base: tipografía, selección, cursor y marcadores */
body { font: var(--md-sys-typescale-body-large); color: var(--md-sys-color-on-surface); -webkit-font-smoothing: antialiased; }
::selection { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
input, textarea, select { caret-color: var(--md-sys-color-primary); }
::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: .8; }
:focus-visible { border-radius: var(--md-sys-shape-corner-small); }
.skip { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); border-radius: var(--md-sys-shape-corner-full); }
.muted, .small.muted, .xsmall { color: var(--md-sys-color-on-surface-variant); }
.lead { font: var(--md-sys-typescale-body-large); font-size: 1.125rem; color: var(--md-sys-color-on-surface-variant); }
.link { color: var(--md-sys-color-primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, transparent); }
.prose { color: var(--md-sys-color-on-surface-variant); }
.prose h2 { font: var(--md-sys-typescale-headline-small); color: var(--md-sys-color-on-surface); }
.prose h3 { font: var(--md-sys-typescale-title-medium); color: var(--md-sys-color-on-surface); }
.prose a { color: var(--md-sys-color-primary); }

/* Casillas y opciones (checkbox / radio) */
input[type="checkbox"], input[type="radio"] { accent-color: var(--md-sys-color-primary); }
.check { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); min-height: 40px; align-items: center; }
.check input { width: 18px; height: 18px; margin: 0; border-radius: 2px; }
.choice label::before { width: 20px; height: 20px; border: 2px solid var(--md-sys-color-on-surface-variant); background: transparent;
  transition: border-width var(--md-sys-motion-spring-fast-spatial), border-color var(--md-sys-motion-spring-fast-effects); }
.choice input:checked + label::before { border: 6px solid var(--md-sys-color-primary); background: var(--md-sys-color-on-primary); }
.choice__t { font: var(--md-sys-typescale-title-medium); }
.choice__d { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }

/* Botones de ícono (cabecera, quitar, cerrar, redes) */
.icon-btn, .remove { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: var(--md-sys-shape-corner-full); color: var(--md-sys-color-on-surface-variant);
  transition: background-color var(--md-sys-motion-spring-fast-effects), border-radius var(--md-sys-motion-spring-fast-spatial); }
.icon-btn:hover, .remove:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); color: var(--md-sys-color-on-surface); }
.icon-btn:active, .remove:active { border-radius: var(--md-sys-shape-corner-medium); }
.social a { width: 48px; height: 48px; border: 0; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
.social a:hover { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }

/* Insignias (contador del carrito, estados del pedido, distintivos de pago) */
.cart-count { min-width: 18px; height: 18px; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); font: var(--md-sys-typescale-label-medium); font-size: 11px; }
.pill { height: 28px; padding: 0 12px; border-radius: var(--md-sys-shape-corner-small); font: var(--md-sys-typescale-label-medium); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
.pill--pagado, .pill--entregado { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.pill--preparando, .pill--enviado { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.pill--cancelado { background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }
.pay-logos span, .paystrip__chip { border-radius: var(--md-sys-shape-corner-small); font: var(--md-sys-typescale-label-medium); }
.flag--out { background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }

/* Chips de filtro, facetas, filtro de precio y paginación */
.chip { height: 32px; padding: 0 16px; border-radius: var(--md-sys-shape-corner-small); color: var(--md-sys-color-on-surface-variant); transition: background-color var(--md-sys-motion-spring-fast-effects); }
.chip:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, var(--md-sys-color-surface-container-lowest)); border-color: var(--md-sys-color-outline-variant); }
.facet a { min-height: 48px; align-items: center; padding: 0 16px; margin-inline: -16px; border-radius: var(--md-sys-shape-corner-full); color: var(--md-sys-color-on-surface-variant); }
.facet a:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.facet a[aria-current], .facet a.is-active { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-weight: 500; }
.price-filter input { height: 48px; border-radius: var(--md-sys-shape-corner-medium); border-color: var(--md-sys-color-outline); background: var(--md-sys-color-surface-container-lowest); }
.toolbar select { height: 40px; border: 0; padding-left: 16px; font: var(--md-sys-typescale-label-large); }
.pager { gap: 8px; }
.pager a, .pager span { min-width: 48px; height: 48px; border: 0; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-label-large);
  transition: border-radius var(--md-sys-motion-spring-fast-spatial), background-color var(--md-sys-motion-spring-fast-effects); }
.pager a:hover { background: var(--md-sys-color-surface-container-high); }
.pager a:active { border-radius: var(--md-sys-shape-corner-medium); }
.pager [aria-current] { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-radius: var(--md-sys-shape-corner-large); }

/* Migas de pan y pestañas (cuenta) */
.crumbs { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); }
.crumbs a:hover { color: var(--md-sys-color-primary); }
.tabs { gap: 8px; border: 0; padding: 4px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-corner-full); width: max-content; max-width: 100%; }
.tabs a { min-height: 40px; display: inline-grid; place-items: center; padding: 0 18px; margin: 0; border: 0; border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); }
.tabs a:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.tabs a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border: 0; }

/* Listas (menú, pedidos, garantías, acordeones, preguntas frecuentes) */
.mnav { gap: 4px; }
.mnav a { min-height: 56px; padding: 0 16px; border: 0; border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-title-medium); }
.mnav a:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.mnav a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.orow { border: 0; border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container-low); padding: 20px 24px;
  transition: border-radius var(--md-sys-motion-spring-default-spatial), background-color var(--md-sys-motion-spring-fast-effects); }
.orow:hover { box-shadow: none; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-corner-extra-large-increased); }
.perks { overflow: hidden; }
.perks li { padding: 16px 20px; font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }
.perks li + li { border-top: 1px solid var(--md-sys-color-outline-variant); }
.perks strong { font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface); }
.perks .i, .trust .i { color: var(--md-sys-color-primary); }
.trust { border-top-color: var(--md-sys-color-outline-variant); }
.acc details, .faq details { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.acc summary, .faq summary { min-height: 56px; padding: 16px 4px; font: var(--md-sys-typescale-title-medium); border-radius: var(--md-sys-shape-corner-medium); }
.acc summary:hover, .faq summary:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 5%, transparent); }
.acc summary .i { transition: transform var(--md-sys-motion-spring-default-spatial); }
.acc .acc__body, .faq details > div { font: var(--md-sys-typescale-body-medium); font-size: .9375rem; color: var(--md-sys-color-on-surface-variant); padding-inline: 4px; }

/* Datos y totales */
.kv { font: var(--md-sys-typescale-body-medium); }
.kv dt { color: var(--md-sys-color-on-surface-variant); }
.totals { font: var(--md-sys-typescale-body-medium); border-top-color: var(--md-sys-color-outline-variant); }
.totals .grand { font: var(--md-sys-typescale-title-large); border-top-color: var(--md-sys-color-outline-variant); }
.totals .save { color: var(--md-sys-color-tertiary); }
.zones { font: var(--md-sys-typescale-body-medium); }
.zones th { font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); }
.zones th, .zones td { border-bottom-color: var(--md-sys-color-outline-variant); }
.coupon .input { min-height: 48px; }
.coupon .btn { min-height: 48px; }

/* Progreso (barra de envío gratis): indicador lineal M3 con separación */
.freebar { border-radius: var(--md-sys-shape-corner-large); background: var(--md-sys-color-surface-container); font: var(--md-sys-typescale-body-medium); }
.freebar__track { height: 6px; border-radius: 3px; background: var(--md-sys-color-secondary-container); }
.freebar__track i { border-radius: 3px; background: var(--md-sys-color-primary); transition: width var(--md-sys-motion-spring-default-spatial); }

/* Estado de stock y vendidos */
.stock { font: var(--md-sys-typescale-label-large); }
.stock::before { width: 8px; height: 8px; background: var(--md-sys-color-tertiary); }
.stock--out { color: var(--md-sys-color-error); }
.stock--out::before { background: var(--md-sys-color-error); }
.sold { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); }

/* Imágenes: galería, miniaturas, líneas del carrito y categorías */
.gallery__main { border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container); }
.gallery__thumbs button { width: 72px; border: 0; border-radius: var(--md-sys-shape-corner-large); background: var(--md-sys-color-surface-container); outline-offset: 2px;
  transition: border-radius var(--md-sys-motion-spring-fast-spatial); }
.gallery__thumbs button[aria-current="true"] { border-radius: var(--md-sys-shape-corner-extra-large); box-shadow: 0 0 0 2px var(--md-sys-color-primary); }
.line img, .cline img { border-radius: var(--md-sys-shape-corner-large); background: var(--md-sys-color-surface-container); }
.cat__img { border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container); transition: border-radius var(--md-sys-motion-spring-default-spatial); }
.cat:hover .cat__img { border-radius: var(--md-sys-shape-corner-extra-extra-large); }
.cat__img img { transition: transform var(--md-sys-motion-spring-default-spatial); }
.cat__name { font: var(--md-sys-typescale-title-medium); }
.cat__count { font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); }
.swatch label b { box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }

/* Precios */
.buy__title { font: var(--md-sys-typescale-headline-large); letter-spacing: -.02em; }
.buy__short { font: var(--md-sys-typescale-body-large); font-size: 1.0625rem; color: var(--md-sys-color-on-surface-variant); }
.buy__price .price { font: var(--md-sys-typescale-headline-medium); font-family: var(--md-ref-typeface-plain); font-weight: 500; }
.buy__tax { font: var(--md-sys-typescale-label-medium); font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.card__price { font: var(--md-sys-typescale-title-medium); font-weight: 500; }
.card__cat { font: var(--md-sys-typescale-label-medium); font-weight: 500; color: var(--md-sys-color-on-surface-variant); }

/* Bloques oscuros (franja de envíos, pago): superficie inversa */
.band--ink { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.band--ink .h2 { color: var(--md-sys-color-inverse-on-surface); }
.band--ink .lead, .band--ink .zones th, .band--ink .zones td small { color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 78%, transparent); }
.band--ink .zones td, .band--ink .zones th { border-color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 14%, transparent); }
.paybox .muted, .paybox ol { color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 80%, transparent); }
.paybox__amount { font: var(--md-sys-typescale-display-medium); }
.payqr { border: 0; border-radius: var(--md-sys-shape-corner-large-increased); background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); }
.payqr p { color: var(--md-sys-color-on-surface-variant); }
.payqr img { border-radius: var(--md-sys-shape-corner-medium); }
.howto__n { font: var(--md-sys-typescale-display-medium); color: var(--md-sys-color-primary); }
.howto h3 { font: var(--md-sys-typescale-title-large); }

/* Comprobante, seguimiento y libro */
.proof__form { border-top: 1px dashed color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 30%, transparent); }
.ship-track li::before { border-color: var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface); }
.ship-track li.is-done::before { background: var(--md-sys-color-tertiary); border-color: var(--md-sys-color-tertiary); }
.ship-track li::after { background: var(--md-sys-color-outline-variant); }
.ship-track li.is-now strong { color: var(--md-sys-color-primary); }
.libro { border: 0; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-high); min-height: 48px; padding: 0 20px; font: var(--md-sys-typescale-label-large); }
.libro:hover { background: var(--md-sys-color-secondary-container); }
.pickup-key { font-family: var(--md-ref-typeface-plain); color: var(--md-sys-color-primary); }

/* Pie de página y secciones */
.footer { font: var(--md-sys-typescale-body-medium); }
.footer h2 { font: var(--md-sys-typescale-title-small); color: var(--md-sys-color-on-surface); }
.footer a { color: var(--md-sys-color-on-surface-variant); }
.footer a:hover { color: var(--md-sys-color-primary); }
.section__head .btn--ghost, .section__head .link { font: var(--md-sys-typescale-label-large); }
.empty .h2 { font: var(--md-sys-typescale-headline-medium); }

@media (prefers-reduced-motion: reduce) {
  .icon-btn, .remove, .pager a, .orow, .gallery__thumbs button, .cat__img, .cat__img img, .freebar__track i, .choice label::before, .acc summary .i { transition: none !important; }
  .cat:hover .cat__img img { transform: none !important; }
}

/* Ajustes tras revisión: avance legible en celular y texto claro dentro de la caja de pago */
.steps li { font: var(--md-sys-typescale-label-medium); font-weight: 500; overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 420px) { .steps { gap: 4px; } .steps li { font-size: .6875rem; letter-spacing: -.01em; } }
.paybox .field > span, .paybox .field > label, .paybox small, .paybox .proof .muted { color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 82%, transparent); }
.paybox .input { background-color: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); }

/* Selector de archivo: botón tonal en píldora */
input[type="file"] { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }
input[type="file"]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font: var(--md-sys-typescale-label-large); cursor: pointer;
  transition: border-radius var(--md-sys-motion-spring-fast-spatial); }
input[type="file"]::file-selector-button:active { border-radius: var(--md-sys-shape-corner-medium); }

/* Checkout en celular: total y «Confirmar» siempre a mano; sin barra de navegación que distraiga */
.cobar { display: none; }
@media (max-width: 999px) {
  .is-checkout .tabbar { display: none; }
  .is-checkout { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cobar { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--md-sys-color-surface-container); box-shadow: var(--md-sys-elevation-2);
    transition: transform var(--md-sys-motion-spring-default-spatial), opacity .2s var(--ease); }
  .cobar.is-off { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .cobar__sum { display: grid; line-height: 1.15; }
  .cobar__sum span { font: var(--md-sys-typescale-label-medium); color: var(--md-sys-color-on-surface-variant); }
  .cobar__sum strong { font: var(--md-sys-typescale-title-large); font-weight: 500; }
  .cobar .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cobar { transition: none; } }
/* ---------- Comodidad táctil (revisión UX 2026-12-02) ---------- */
@media (max-width: 767px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
details > summary { min-height: 2.75rem; padding-block: .6rem; cursor: pointer; }
@media (pointer: coarse) {
  input[type=checkbox], input[type=radio] { width: 1.375rem; height: 1.375rem; }
}

/* Mapa de agencias Shalom (checkout) */
.agency-map { height: 260px; margin-top: 10px; border-radius: var(--r-lg, 16px); overflow: hidden; border: 1px solid var(--line); z-index: 0; position: relative; }
@media (min-width: 768px) { .agency-map { height: 320px; } }
.agency-map .leaflet-tooltip { font: 500 13px/1.3 inherit; }

.agency-map .leaflet-interactive:focus:not(:focus-visible) { outline: none; }

/* Íconos Material Symbols: contorno normal y relleno en lo activo (favorito marcado, página actual) */
svg .ms-f { display: none; }
[aria-pressed="true"] svg .ms-o, [aria-current="page"] svg .ms-o, .is-active svg .ms-o { display: none; }
[aria-pressed="true"] svg .ms-f, [aria-current="page"] svg .ms-f, .is-active svg .ms-f { display: inline; }

/* Mapa de agencias minimalista: calles en grises suaves; solo destacan las agencias (magenta) y la clienta (azul) */
.agency-map { background: #F4F1F2; }
.agency-map .agency-map__tiles { filter: grayscale(1) brightness(1.07) contrast(.86); opacity: .9; }
.agency-map .leaflet-control-attribution { background: rgba(255, 251, 252, .78); font-size: 10px; padding: 0 6px; border-radius: 8px 0 0 0; color: #8a7480; }
.agency-map .leaflet-control-attribution a { color: inherit; }
.agency-map .leaflet-bar { border: 0; box-shadow: 0 2px 8px rgba(36, 17, 24, .12); border-radius: 12px; overflow: hidden; }
.agency-map .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; color: #5C0E30; border-color: #F3E6EB; }
.agency-map .leaflet-tooltip { border: 0; border-radius: 10px; box-shadow: 0 4px 14px rgba(36, 17, 24, .14); font-weight: 500; color: #241118; padding: 6px 10px; }
.agency-map .leaflet-tooltip-top::before { border-top-color: #fff; }
@media (max-width: 767px) { .agency-map { height: 220px; } }
