/* =========================================================
   La Huerta CGS: tienda
   ========================================================= */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"); 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+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --brand: #1f5130;
  --brand-dark: #153a22;
  --brand-600: #2a6a3f;
  --brand-50: #f1f6ee;
  --brand-100: #e2eddb;
  --ink: #17201a;
  --ink-2: #3a463c;
  --muted: #667163;
  --line: #e3e8de;
  --line-2: #d3dacb;
  --surface: #f7f8f4;
  --white: #fff;
  --sale: #c23a27;
  --sale-50: #fcece9;
  --season: #8a5a0b;
  --season-50: #fdf2d8;
  --eco: #2b7148;
  --eco-50: #e4f2e8;
  --focus: #f0a71b;

  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(23,32,26,.04), 0 8px 24px -12px rgba(23,32,26,.18);
  --shadow-lg: 0 24px 60px -20px rgba(23,32,26,.35);
  --wrap: 80rem;
  --gutter: 1.5rem;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 9rem; }
body { margin: 0; font: 400 1rem/1.55 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-600); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.1; letter-spacing: -.015em; margin: 0; color: var(--ink); font-variation-settings: "opsz" 48; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.15rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: .5rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; display: inline-block; vertical-align: middle; }
.m0 { margin: 0; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 640px) { :root { --gutter: 1rem; } }

/* ---------- Botones ---------- */
.btn { --bg: var(--white); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.15rem;
  font: 600 .95rem/1.1 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--r-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { --bd: var(--ink-2); color: var(--fg); }
.btn-primary { --bg: var(--brand); --fg: #fff; --bd: var(--brand); }
.btn-primary:hover { --bg: var(--brand-dark); --bd: var(--brand-dark); }
.btn-light { --bg: #fff; --fg: var(--brand-dark); --bd: #fff; }
.btn-light:hover { --bg: var(--brand-50); --bd: var(--brand-50); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn-outline-light:hover { --bd: #fff; --bg: rgba(255,255,255,.08); }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--brand); padding-inline: .5rem; }
.btn-ghost:hover { --bg: var(--brand-50); --bd: transparent; }
.btn-lg { min-height: 3.25rem; padding-inline: 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-more { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.link-more .ico { width: 1rem; height: 1rem; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--brand-dark); color: #dce9d3; font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.25rem; }
.topbar ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.topbar li { display: flex; align-items: center; gap: .45rem; }
.topbar .ico { width: 1rem; height: 1rem; color: #a9cc94; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { text-decoration: underline; }
.topbar-msg { color: #fff; font-weight: 500; }
@media (max-width: 1000px) { .topbar ul li:nth-child(n+2) { display: none; } }
@media (max-width: 640px) { .topbar-contact { display: none; } .topbar .wrap { justify-content: center; } }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 2.4rem; height: 2.4rem; }
.brand-name { display: block; font: 700 1.2rem/1 var(--display); letter-spacing: -.02em; color: var(--brand-dark); }
.brand-tag { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.search { position: relative; flex: 1; max-width: 38rem; }
.search form { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, background .15s; }
.search form:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,81,48,.12); }
.search .ico { margin-left: .8rem; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem .75rem; font-size: .95rem; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; background: transparent; padding: 0 1rem; align-self: stretch; font-weight: 600; color: var(--brand); cursor: pointer; border-left: 1px solid var(--line); }
.suggest { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; }
.suggest a { display: grid; grid-template-columns: 2.75rem 1fr auto; gap: .75rem; align-items: center; padding: .55rem .8rem; text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--brand-50); }
.suggest img { width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: var(--r-sm); background: var(--surface); }
.suggest strong { display: block; font-weight: 600; }
.suggest span { font-size: .82rem; color: var(--muted); }
.suggest .s-price { font-weight: 600; color: var(--ink); font-size: .9rem; white-space: nowrap; }
.suggest .s-all { display: block; padding: .7rem .8rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--brand); }
.suggest .s-empty { padding: .9rem .8rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }
.h-link { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .65rem; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; }
.h-link:hover { background: var(--surface); color: var(--ink); }
.h-link small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; line-height: 1.1; }
.cart-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .7rem; border-radius: var(--r-sm); border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; font-weight: 600; min-height: 2.75rem; }
.cart-btn:hover { background: var(--brand-dark); }
.cart-btn .ico { width: 1.4rem; height: 1.4rem; }
.cart-ico { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -.45rem; right: -.55rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: var(--focus); color: var(--ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count[data-empty] { display: none; }
.cart-total { font-variant-numeric: tabular-nums; }
.menu-btn { display: none; }

.catnav { border-top: 1px solid var(--line); }
.catnav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .8rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--brand); }
.catnav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.catnav .ico { width: 1.05rem; height: 1.05rem; }
.catnav .nav-sale { color: var(--sale); }
.catnav .nav-season { color: var(--season); }
.catnav .sep { width: 1px; background: var(--line); margin: .55rem .4rem; }

@media (max-width: 960px) {
  .header-main { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .h-link-help { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
  .brand-tag { display: none; }
}
@media (max-width: 640px) {
  .cart-btn .cart-total { display: none; }
  .cart-btn { padding: .45rem .7rem; }
  .catnav a { padding: .6rem .65rem; font-size: .9rem; }
}

/* Menú móvil */
.navdrawer { position: fixed; inset: 0; z-index: 70; }
.navdrawer-panel { position: absolute; inset: 0 auto 0 0; width: min(20rem, 88vw); background: #fff; display: flex; flex-direction: column; animation: slideL .2s ease-out; }
.navdrawer-panel nav { overflow: auto; padding: .5rem 0 1rem; }
.navdrawer-panel a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.25rem; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.navdrawer-panel a small { color: var(--muted); font-weight: 400; }
.navdrawer-panel .group { padding: 1rem 1.25rem .4rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
@keyframes slideL { from { transform: translateX(-100%); } to { transform: none; } }

/* ---------- Avisos ---------- */
.alert { display: flex; gap: .75rem; border-radius: var(--r); padding: .9rem 1.1rem; margin-bottom: 1.25rem; border: 1px solid; font-size: .95rem; }
.alert > .ico { margin-top: .1rem; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.alert-error { background: var(--sale-50); border-color: #f1c3bb; color: #6e1d12; }
.alert-ok { background: var(--eco-50); border-color: #bfdcc8; color: #17402a; }
.alert-info { background: var(--season-50); border-color: #f0dba6; color: #5c3d07; }

/* ---------- Etiquetas ---------- */
.badges { position: absolute; top: .65rem; left: .65rem; display: flex; flex-wrap: wrap; gap: .3rem; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; line-height: 1; padding: .32rem .5rem; border-radius: var(--r-sm); background: #fff; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.badge-sale { background: var(--sale); color: #fff; }
.badge-season { background: var(--season-50); color: var(--season); }
.badge-eco { background: var(--eco-50); color: var(--eco); }
.badge-out { background: var(--ink); color: #fff; }
.badge .ico { width: .85rem; height: .85rem; }

/* ---------- Tarjeta de producto ---------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.products.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1280px) { .products.cols-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .products.cols-3 .pcard-body { padding: .75rem .8rem .85rem; } }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .products, .products.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }

.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard-media { position: relative; display: block; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.pcard-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard-media > img { transform: scale(1.03); }
.pcard.is-out .pcard-media > * { opacity: .55; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; }
.ph img { width: 46%; height: auto; transition: transform .4s ease; }
.pcard:hover .ph img { transform: translateY(-3px) rotate(-2deg); }
.ph-tomato, .ph-pepper { background: #fbeee9; }
.ph-citrus, .ph-pumpkin { background: #fdf1e2; }
.ph-leaf, .ph-artichoke, .ph-brassica { background: #edf4e6; }
.ph-root, .ph-onion { background: #f7ece8; }
.ph-egg, .ph-jar { background: #f8f2e4; }
.ph-fruit, .ph-crate { background: #f4f1ea; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: .85rem .95rem 1rem; }
.pcard-meta { font-size: .8rem; color: var(--muted); margin: 0 0 .2rem; display: flex; align-items: center; gap: .25rem; min-height: 1.2em; }
.pcard-meta .ico { width: .85rem; height: .85rem; }
.pcard h3 { font: 600 1rem/1.3 var(--body); letter-spacing: 0; margin: 0 0 .15rem; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.pcard h3 a:hover { color: var(--brand); }
.pcard-note { font-size: .8rem; color: var(--muted); margin: 0; }
.pcard-foot { margin-top: auto; padding-top: .75rem; position: relative; z-index: 2; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; margin-bottom: .65rem; }
.price { font: 700 1.2rem/1 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price.is-sale { color: var(--sale); }
.per { font-size: .82rem; color: var(--muted); }
.was { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.buy { min-height: 2.6rem; }
.buy .btn { width: 100%; min-height: 2.6rem; }
.buy .btn .ico { width: 1.1rem; height: 1.1rem; }
.unavailable { display: flex; align-items: center; justify-content: center; min-height: 2.6rem; font-size: .88rem; color: var(--muted); background: var(--surface); border-radius: var(--r-sm); }

/* Selector de cantidad */
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--brand); border-radius: var(--r-sm); background: var(--brand-50); min-height: 2.6rem; overflow: hidden; }
.qty button { width: 2.6rem; align-self: stretch; border: 0; background: transparent; color: var(--brand); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--brand-100); }
.qty button .ico { width: 1.05rem; height: 1.05rem; }
.qty output { flex: 1; text-align: center; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
@media (max-width: 760px) {
  .pcard-body { padding: .7rem .7rem .8rem; }
  .pcard h3 { font-size: .93rem; }
  .price { font-size: 1.08rem; }
  .badges { top: .45rem; left: .45rem; }
  .badge { font-size: .68rem; padding: .28rem .4rem; }
}

/* ---------- Secciones ---------- */
.section { padding-block: 4rem; }
.section-sm { padding-block: 2.5rem; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head p { margin: .4rem 0 0; color: var(--muted); }
@media (max-width: 640px) { .section { padding-block: 2.75rem; } .section-head { margin-bottom: 1.25rem; } }

/* ---------- Hero ---------- */
.hero { padding-block: 1.5rem 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
.hero-main { position: relative; overflow: hidden; background: var(--brand-dark); color: #e9f1e3; border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; min-height: 30rem; isolation: isolate; }
.hero-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 100% 100%, rgba(122,170,90,.35), transparent 60%),
  radial-gradient(40% 50% at 0% 0%, rgba(255,255,255,.06), transparent 70%); }
.hero-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 500; color: #cfe3c2; margin-bottom: 1.1rem; }
.hero-kicker .ico { color: var(--focus); width: 1.1rem; height: 1.1rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; max-width: 13ch; margin-bottom: 1.1rem; font-variation-settings: "opsz" 96; }
.hero-text { font-size: 1.08rem; max-width: 34rem; color: #d7e6cd; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-art { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 46%; max-width: 22rem; pointer-events: none; z-index: -1; opacity: .95; }
.hero-art img { position: absolute; width: 42%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.hero-art .a1 { right: 30%; bottom: 8%; width: 46%; }
.hero-art .a2 { right: 2%; bottom: 26%; width: 40%; transform: rotate(10deg); }
.hero-art .a3 { right: 48%; bottom: 34%; width: 30%; transform: rotate(-12deg); }
.hero-art .a4 { right: 12%; bottom: 2%; width: 34%; }
.hero-art-box { position: relative; aspect-ratio: 1; }

.board { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; }
.board-head { padding: 1.35rem 1.5rem 1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.board-head h2 { font-size: 1.3rem; }
.board-head p { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.board-list { list-style: none; margin: 0; padding: .35rem 0; flex: 1; }
.board-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto 2.4rem; align-items: center; gap: .75rem; padding: .5rem 1.5rem; }
.board-row + .board-row { border-top: 1px dashed var(--line); }
.board-thumb { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; }
.board-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.board-thumb .ph img { width: 78%; }
.board-name { min-width: 0; text-decoration: none; color: var(--ink); }
.board-name strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name span { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name:hover strong { color: var(--brand); }
.board-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-price small { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.board-price .is-sale { color: var(--sale); }
.board-row.is-out { opacity: .5; }
.add-mini { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; color: var(--brand); cursor: pointer; display: grid; place-items: center; font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.add-mini:hover { border-color: var(--brand); background: var(--brand-50); }
.add-mini[data-in-cart] { background: var(--brand); border-color: var(--brand); color: #fff; }
.add-mini:disabled { cursor: not-allowed; color: var(--muted); }
.add-mini .ico { width: 1.05rem; height: 1.05rem; }
.board-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-main { min-height: 24rem; } }
@media (max-width: 640px) {
  .hero { padding-top: 1rem; }
  .hero-main { min-height: 0; padding: 1.75rem 1.4rem 9.5rem; border-radius: var(--r); }
  .hero-art { width: 15rem; right: -1rem; bottom: -2.5rem; }
  .board { border-radius: var(--r); }
  .board-row { padding-inline: 1rem; }
  .board-head { padding-inline: 1rem; }
}

/* ---------- Ventajas ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.perk { display: flex; gap: .85rem; align-items: flex-start; }
.perk-ico { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.perk-ico .ico { width: 1.35rem; height: 1.35rem; }
.perk > div > strong { display: block; font-weight: 600; margin-bottom: .1rem; }
.perk > div > span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Categorías ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.4rem 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile .ph { width: 5rem; height: 5rem; border-radius: 50%; }
.cat-tile .ph img { width: 70%; }
.cat-tile strong { font-weight: 600; }
.cat-tile span { font-size: .82rem; color: var(--muted); margin-top: -.4rem; }
@media (max-width: 640px) { .cats-grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .65rem; } .cat-tile { padding: 1rem .6rem; } .cat-tile .ph { width: 4rem; height: 4rem; } }

/* ---------- Ofertas ---------- */
.offers-band { background: var(--sale-50); border-radius: var(--r-lg); padding: 2rem; }
.offers-band .section-head h2 { color: var(--sale); }

/* ---------- Cómo funciona + entrega ---------- */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }
.card h2 { margin-bottom: 1.25rem; font-size: 1.45rem; }
.card h3 { margin-bottom: .4rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; }
.steps li::before { content: counter(s); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1.05rem var(--display); }
.steps h3 { font: 600 1rem var(--body); letter-spacing: 0; margin: .45rem 0 .2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.delivery-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dopt-title { display: flex; align-items: center; gap: .55rem; font: 600 1.05rem var(--body); margin-bottom: .75rem; }
.dopt-title .ico { color: var(--brand); width: 1.4rem; height: 1.4rem; }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .93rem; }
.dl-list li { display: flex; gap: .5rem; }
.dl-list .ico { width: 1.05rem; height: 1.05rem; color: var(--muted); margin-top: .15rem; }
.zones { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 1rem; }
.zones th, .zones td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.zones th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.zones td.num { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.zones th.num { text-align: right; }
.cp-check { display: flex; gap: .5rem; margin-top: .25rem; }
.cp-check input { flex: 1; min-width: 0; }
.cp-result { min-height: 1.4em; margin: .5rem 0 0; font-size: .9rem; font-weight: 600; display: flex; gap: .4rem; align-items: center; }
.cp-result[data-state="ok"] { color: var(--eco); }
.cp-result[data-state="no"] { color: var(--sale); }
@media (max-width: 1000px) { .service { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .delivery-opts { grid-template-columns: 1fr; } .card { padding: 1.25rem; border-radius: var(--r); } }

/* ---------- Sobre nosotros / FAQ ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.about-text p { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.contact-card { background: var(--brand-50); border-radius: var(--r-lg); padding: 1.75rem; }
.contact-card h3 { margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; align-items: start; }
.contact-list .ci { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; }
.contact-list .ci .ico { width: 1.1rem; height: 1.1rem; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.pre { white-space: pre-line; }
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 65ch; white-space: pre-line; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Pie ---------- */
.footer { background: var(--brand-dark); color: #c9dabd; margin-top: 0; font-size: .93rem; }
.footer a { color: #e9f1e3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer h2 { color: #fff; font: 600 .95rem var(--body); letter-spacing: 0; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer .brand-name { color: #fff; font-size: 1.35rem; margin-bottom: .75rem; }
.footer-about { max-width: 22rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.footer-contact li { display: flex; gap: .55rem; }
.footer-contact .ico { width: 1.05rem; height: 1.05rem; color: #a9cc94; margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: .84rem; color: #a7bc9a; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem 2rem; } }

/* ---------- Migas y cabecera de página ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .ico { width: .9rem; height: .9rem; }
.page-head { padding-block: 2rem 1.25rem; }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--muted); margin: 0; }

/* ---------- Catálogo ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar-count { color: var(--muted); font-size: .92rem; }
.toolbar-count strong { color: var(--ink); }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.sort label { color: var(--muted); white-space: nowrap; margin: 0; font-weight: 500; }
.sort select { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .5rem 2rem .5rem .75rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667163' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 1rem; appearance: none; font-weight: 500; cursor: pointer; }
.filters-btn { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -0.25rem 0 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem .35rem .75rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-dark); font-size: .84rem; font-weight: 500; text-decoration: none; border: 1px solid var(--brand-100); }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip .ico { width: .9rem; height: .9rem; }
.chip-clear { background: transparent; border-color: transparent; color: var(--muted); text-decoration: underline; }

.filters { position: sticky; top: calc(var(--header-h) + 4rem); max-height: calc(100vh - var(--header-h) - 5rem); overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.filters-head h2 { font: 600 1rem var(--body); letter-spacing: 0; display: flex; gap: .5rem; align-items: center; }
.filters-head a { font-size: .85rem; }
.filters .filters-close { display: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; font-weight: 600; font-size: .92rem; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .ico { width: 1rem; height: 1rem; color: var(--muted); transition: transform .2s; }
.fgroup[open] summary .ico { transform: rotate(180deg); }
.fbody { padding: 0 1.1rem 1rem; display: grid; gap: .15rem; }
.fcat { display: flex; justify-content: space-between; padding: .35rem .5rem; margin-inline: -.5rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.fcat:hover { background: var(--surface); color: var(--ink); }
.fcat[aria-current="page"] { background: var(--brand-50); color: var(--brand-dark); font-weight: 600; }
.fcat small, .fcheck small { color: var(--muted); font-variant-numeric: tabular-nums; }
.fcheck { display: flex; align-items: center; gap: .6rem; padding: .32rem 0; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.fcheck input { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); margin: 0; flex: none; }
.fcheck span { flex: 1; display: flex; align-items: center; gap: .35rem; }
.fcheck .ico { width: .95rem; height: .95rem; }
.fcheck.is-zero { opacity: .45; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.price-range input { width: 100%; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: .9rem; }
.price-range span { color: var(--muted); }
.filters-foot { padding: 1rem 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; background: var(--surface); }
.js .filters-foot .btn-apply { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; min-width: 1rem; }
.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty .ph { width: 7rem; height: 7rem; margin: 0 auto 1rem; border-radius: 50%; }
.empty h2 { font-size: 1.35rem; margin-bottom: .5rem; }
@media (max-width: 1000px) {
  .shop { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters { position: fixed; inset: 0 0 0 auto; top: 0; width: min(22rem, 92vw); max-height: none; height: 100%; border-radius: 0; border: 0; z-index: 75; display: none; flex-direction: column; box-shadow: var(--shadow-lg); }
  .filters.open { display: flex; animation: slideR .2s ease-out; }
  .filters form { flex: 1; overflow: auto; display: flex; flex-direction: column; }
  .filters .filters-close { display: grid; }
  .js .filters-foot .btn-apply { display: inline-flex; }
  .filters-foot { position: sticky; bottom: 0; margin-top: auto; }
}
.scrim { position: fixed; inset: 0; background: rgba(23,32,26,.45); z-index: 65; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; padding-block: .5rem 3.5rem; }
.gallery { position: sticky; top: calc(var(--header-h) + 4rem); align-self: start; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .ph img { width: 50%; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.thumbs button { width: 4.75rem; height: 4.75rem; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--surface); }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .badges { position: static; margin-bottom: .9rem; }
.pdp-info .badge { box-shadow: none; font-size: .8rem; padding: .38rem .6rem; }
.pdp-info h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.pdp-origin { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin-bottom: 1.5rem; }
.pdp-origin .ico { width: 1.05rem; height: 1.05rem; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .65rem; margin-bottom: .35rem; }
.pdp-price .price { font-size: 2rem; }
.pdp-price .per { font-size: 1rem; }
.pdp-price .was { font-size: 1rem; }
.pdp-price .off { background: var(--sale); color: #fff; font-weight: 700; font-size: .8rem; padding: .25rem .5rem; border-radius: var(--r-sm); }
.pdp-note { color: var(--muted); font-size: .92rem; margin-bottom: 0; }
.pdp-buy { display: flex; gap: .75rem; margin: 1.5rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.pdp-buy .qty { width: 11rem; min-height: 3.25rem; }
.pdp-buy .qty button { width: 3rem; }
.pdp-buy .btn { flex: 1; }
.pdp-buy.is-out { display: block; }
.service-box { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.75rem; }
.service-box > div { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; padding: 1rem 1.1rem; align-items: start; }
.service-box > div + div { border-top: 1px solid var(--line); }
.service-box .si { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.service-box > div > span:last-child > strong { display: block; font-weight: 600; font-size: .95rem; }
.service-box > div > span:last-child > span { display: block; font-size: .88rem; color: var(--muted); }
.pdp-section { margin-bottom: 1.75rem; }
.pdp-section h2 { font: 600 1.05rem var(--body); letter-spacing: 0; margin-bottom: .6rem; }
.pdp-desc { color: var(--ink-2); white-space: pre-line; }
.specs { width: 100%; border-collapse: collapse; font-size: .93rem; }
.specs th, .specs td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 40%; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 1.75rem; } .gallery { position: static; } }
@media (max-width: 520px) { .pdp-buy { flex-direction: column; } .pdp-buy .qty { width: 100%; } }

/* ---------- Cesta lateral ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(27rem, 100%); background: #fff; display: flex; flex-direction: column; animation: slideR .22s ease-out; box-shadow: var(--shadow-lg); }
@keyframes slideR { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.icon-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; padding: 0 1.25rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; background: var(--surface); }
.drawer-foot .btn + .btn { margin-top: .5rem; }
.drawer-foot .cart-note { margin: .75rem 0 1rem; }
.line { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 4rem; height: 4rem; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.line-img > img { width: 100%; height: 100%; object-fit: cover; }
.line-img .ph img { width: 72%; }
.line-name { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.line-meta { display: block; color: var(--muted); font-size: .84rem; margin-top: .1rem; }
.line-ctrl { display: flex; align-items: center; gap: .6rem; margin-top: .55rem; }
.line-ctrl .qty { min-height: 2.2rem; width: 8.5rem; }
.line-ctrl .qty button { width: 2.2rem; }
.line-ctrl .qty output { font-size: .85rem; }
.line-remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .3rem; border-radius: var(--r-sm); display: grid; place-items: center; }
.line-remove:hover { color: var(--sale); background: var(--sale-50); }
.line-remove .ico { width: 1.1rem; height: 1.1rem; }
.line-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: .4rem; font-variant-numeric: tabular-nums; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-weight: 700; font-size: 1.15rem; padding-top: .6rem; margin-top: .25rem; border-top: 1px solid var(--line-2); }
.cart-note { font-size: .82rem; color: var(--muted); margin: .75rem 0 0; display: flex; gap: .4rem; }
.cart-note .ico { width: 1rem; height: 1rem; margin-top: .1rem; }
.cart-empty { text-align: center; padding: 3.5rem 1rem; }
.cart-empty .ph { width: 6rem; height: 6rem; margin: 0 auto 1rem; border-radius: 50%; }
.cart-empty p { color: var(--muted); }
.problems { margin: 1rem 0 0; }

/* ---------- Formularios ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .84rem; }
.input, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: .72rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,81,48,.12); }
textarea { min-height: 6rem; resize: vertical; }
.field { margin-bottom: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row3 { display: grid; grid-template-columns: 2fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .93rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Checkout ---------- */
.progress { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; padding: 0; margin: 0 0 1.5rem; }
.progress li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); font-weight: 500; }
.progress li + li::before { content: ""; width: 2.5rem; height: 1px; background: var(--line-2); margin-right: .25rem; }
.progress .n { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.progress .n .ico { width: .9rem; height: .9rem; }
.progress li.done .n { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.progress li.current { color: var(--ink); }
.progress li.current .n { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 480px) { .progress li + li::before { width: 1rem; } .progress li { font-size: .82rem; } }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; gap: 2.5rem; padding-bottom: 4rem; align-items: start; }
.co-section { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.5rem .5rem; margin: 0 0 1.25rem; }
.co-section legend { float: left; width: 100%; padding: 0; margin-bottom: 1.1rem; font: 650 1.2rem var(--display); letter-spacing: -.01em; display: flex; gap: .6rem; align-items: center; }
.co-section legend span { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 .85rem var(--body); }
.co-section legend + * { clear: both; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.choice label { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r); padding: 1rem; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; font-weight: 400; transition: border-color .15s, background .15s; }
.choice label:hover { border-color: var(--ink-2); }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { grid-row: span 2; accent-color: var(--brand); width: 1.15rem; height: 1.15rem; margin-top: .15rem; }
.choice strong { font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.choice strong .ico { width: 1.1rem; height: 1.1rem; color: var(--brand); }
.choice .hint { display: block; }
.choice label.disabled { opacity: .5; cursor: not-allowed; }
.slots-wrap { margin-bottom: 1rem; }
.slots-label { font-size: .85rem; color: var(--muted); font-weight: 500; margin: 0 0 .5rem; }
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.dates label { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r); padding: .6rem .5rem; cursor: pointer; text-align: center; font-weight: 400; transition: border-color .15s, background .15s; }
.dates label strong { display: block; font-weight: 600; font-size: .95rem; }
.dates label small { display: block; font-size: .78rem; color: var(--muted); }
.dates label:hover { border-color: var(--ink-2); }
.dates input, .slots input { position: absolute; opacity: 0; pointer-events: none; }
.dates label:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.dates label:has(input:checked) small { color: #d2e4c6; }
.slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.slots label { margin: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 500; font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.slots label .ico { width: 1rem; height: 1rem; color: var(--muted); }
.slots label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.slots label:has(input:checked) .ico { color: var(--brand); }
.dates label:has(input:focus-visible), .slots label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.summary { position: sticky; top: calc(var(--header-h) + 4rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.summary-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.summary-head h2 { font-size: 1.15rem; }
.summary-head a { font-size: .85rem; }
.summary-lines { padding: 0 1.25rem; max-height: 22rem; overflow: auto; }
.summary .line { grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; padding: .75rem 0; }
.summary .line-img { width: 3rem; height: 3rem; }
.summary-foot { padding: 1rem 1.25rem 1.25rem; background: var(--surface); border-top: 1px solid var(--line); }
.summary-foot .btn { margin-top: 1rem; }
.secure { display: flex; align-items: center; gap: .4rem; justify-content: center; font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }
.secure .ico { width: .95rem; height: .95rem; }
@media (max-width: 1000px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } .summary-lines { max-height: none; } }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } .co-section { padding: 1.1rem 1rem .25rem; border-radius: var(--r); } }

/* ---------- Pedido recibido ---------- */
.done-page { max-width: 46rem; margin-inline: auto; padding-block: 3rem 4rem; }
.done-hero { text-align: center; margin-bottom: 2rem; }
.done-ico { width: 4rem; height: 4rem; border-radius: 50%; background: var(--eco-50); color: var(--eco); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.done-ico .ico { width: 2rem; height: 2rem; }
.done-hero p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.done-code { display: inline-flex; flex-direction: column; align-items: center; margin-top: .5rem; padding: .75rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--r); }
.done-code small { color: var(--muted); font-size: .8rem; }
.done-code strong { font: 700 1.75rem/1.2 var(--display); letter-spacing: .04em; color: var(--brand-dark); }
.done-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.done-grid > div { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.done-grid small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.done-grid strong { font-weight: 600; }
.order-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.order-table th, .order-table td { padding: .7rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.order-table th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.order-table .num { text-align: right; white-space: nowrap; }
.order-table tfoot td { border-bottom: 0; padding-block: .4rem; }
.order-table tfoot tr.grand td { font-weight: 700; font-size: 1.15rem; padding-top: .8rem; border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .done-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas legales ---------- */
.prose { max-width: 46rem; padding-block: 1rem 4rem; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.prose ul { padding-left: 1.25rem; }

/* ---------- Toast y barra móvil ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg); max-width: calc(100% - 2rem); animation: pop .2s ease-out; }
.toast .ico { color: #a9cc94; }
.toast a { color: #fff; font-weight: 600; margin-left: .5rem; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, .5rem); } }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar:not([hidden]) { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 30; display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: #fff; border: 0; border-radius: var(--r); padding: .85rem 1.1rem; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer; }
  .mobile-bar span { display: flex; align-items: center; gap: .5rem; }
  body.has-bar { padding-bottom: 5rem; }
  body.has-bar .toast { bottom: 5.5rem; }
}

/* ---------- Error ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--surface); padding: 1.5rem; }
.error-box { max-width: 30rem; text-align: center; }
.error-code { font: 700 4.5rem/1 var(--display); color: var(--brand); margin: 0 0 .75rem; }
.error-box h1 { font-size: 1.6rem; margin-bottom: .75rem; }
.error-box p { color: var(--muted); }
.section.pt0 { padding-top: 0; }
@media (min-width: 1001px) { .js .filters-foot { display: none; } }

.zones-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .zones th:nth-child(2), .zones td:nth-child(2) { display: none; }
  .toast { left: .75rem; right: .75rem; transform: none; max-width: none; }
  @keyframes pop { from { opacity: 0; transform: translateY(.5rem); } }
  .hero-ctas .btn { flex: 1 1 auto; }
  .sort { flex: 1; justify-content: space-between; }
  .sort label { display: none; }
  .toolbar { gap: .75rem; }
}
.done-page .cart-note { margin-bottom: 1.5rem; }
.photo-credit { font-size: .75rem; color: var(--muted); margin: .5rem 0 0; } .photo-credit a { color: var(--muted); }

/* Capas de los paneles: el fondo oscuro siempre por debajo del panel */
.drawer > .scrim, .navdrawer > .scrim { z-index: 0; }
.drawer > .drawer-panel, .navdrawer > .navdrawer-panel { z-index: 1; }
