@import url('/fonts/montserrat/montserrat.css');

/* ═══════════════════════════════════════════════════════════════
   Vitrina — tienda online con pedido por WhatsApp
   Re-tematizar = cambiar los tokens de :root. Los iconos de interfaz
   (.i-*) se generan al final del archivo (build.py).
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #3F3D38;
  --muted: #5F5C55;
  --line: #E3DFD5;
  --tint: #ECE8DE;
  --lime: #D4F34A;
  --lime-2: #C2E534;
  --sale: #B42A26;
  --ok: #1D6B45;
  --wa: #0E7A43;
  --wa-2: #0B6437;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 32px -18px rgba(20, 20, 20, .28);
  --wrap: 1200px;
}

* { font-family: 'Montserrat', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.vt-lock, html.vt-lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ─── Iconos de interfaz (máscaras CSS) ─── */
.i { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Botones (≥ 44 px) ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2D2C29; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-2); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn .i-arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }

/* ─── Cinta y cabecera ─── */
.ribbon { background: var(--ink); color: #fff; font-size: .84rem; font-weight: 600; }
.ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 40px; padding: 6px 16px; text-align: center; }
.ribbon-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--lime); font-weight: 800; }
.header { position: sticky; top: 0; z-index: 60; background: rgba(245, 243, 238, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .4); }
.header-inner { position: relative; display: flex; align-items: center; gap: 18px; width: min(var(--wrap), 100%); margin-inline: auto; padding: 10px 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.05em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink-2); transition: background-color .2s; }
.main-menu a:hover { background: var(--tint); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-menu + .header-actions { margin-left: 0; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .i { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; }
.cart-btn .cart-count { background: var(--ink); }
.cart-count.has-items { background: var(--sale); }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--ink); border-radius: 999px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-menu { display: none; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { min-height: 48px; padding-inline: 16px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}

/* ─── Secciones ─── */
section[id] { scroll-margin-top: 76px; } /* los anclas no quedan bajo la cabecera fija */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.sec-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 32px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sec-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.sec-lead { font-size: 1.05rem; color: var(--ink-2); }
.stars { --r: 5; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, #B7791F calc(var(--r) / 5 * 100%), #D5D0C4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── Hero bento ─── */
.hero { padding: 16px 0 8px; }
.bento { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tile-intro { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px 22px; background: var(--lime); }
.tile-intro .eyebrow { color: var(--ink); }
.hero-title { font-size: clamp(2.35rem, 6.4vw, 4.6rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
.hero-lead { max-width: 34em; font-size: 1.05rem; color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn-ghost { border-color: var(--ink); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 700; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .stars::before { background: linear-gradient(90deg, var(--ink) calc(var(--r) / 5 * 100%), rgba(20, 20, 20, .25) 0); -webkit-background-clip: text; background-clip: text; }
.tile-photo { min-height: 340px; margin: 0; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.photo-tag { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .82rem; font-weight: 800; }
.tile-deal { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--ink); color: #fff; }
.deal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.deal-eyebrow { padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.deal-timer { font-size: .85rem; color: #D9D6CE; }
.deal-clock { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.tile-deal.is-over .deal-clock { color: #C9C5BC; }
.deal-body { display: flex; align-items: center; gap: 16px; }
.deal-img { position: relative; flex: 0 0 38%; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #FCD34D; }
.deal-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-info { display: grid; gap: 8px; justify-items: start; }
.deal-name { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.deal-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.deal-now { font-size: 1.5rem; font-weight: 900; color: var(--lime); }
.deal-was { color: #C9C5BC; font-weight: 600; }
.deal-was:empty { display: none; }
.tile-mini { display: grid; align-content: center; gap: 4px; padding: 20px; }
.tile-mini svg { color: var(--ink); margin-bottom: 6px; }
.mini-title { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.mini-text { font-size: .88rem; color: var(--muted); }
@media (min-width: 640px) and (max-width: 979px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-intro { grid-column: 1 / -1; }
  .tile-deal { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr 1.05fr 1.05fr; grid-template-rows: 1fr auto; min-height: min(640px, calc(100vh - 150px)); }
  .tile-intro { grid-column: 1 / 3; grid-row: 1; padding: 44px; }
  .tile-photo { grid-column: 3; grid-row: 1 / 3; }
  .tile-deal { grid-column: 4; grid-row: 1 / 3; justify-content: space-between; padding: 26px; }
  .deal-body { flex: 1; flex-direction: column; align-items: stretch; }
  .deal-img { flex: 1 1 auto; aspect-ratio: auto; min-height: 220px; }
  .tile-mini-a { grid-column: 1; grid-row: 2; }
  .tile-mini-b { grid-column: 2; grid-row: 2; }
}

/* ─── Beneficios ─── */
.benefits { padding: 16px 0 8px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); justify-content: center; gap: 12px; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.benefit-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); }
.benefit-title { font-weight: 800; font-size: .95rem; line-height: 1.3; }
.benefit-text { font-size: .85rem; color: var(--muted); }

/* ─── Categorías ─── */
/* auto-fill: with only 1–2 categories the tiles keep their size (see .products) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
.cat-tile { position: relative; display: flex; align-items: flex-end; min-height: 200px; padding: 16px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.cat-img { position: absolute; inset: 0; z-index: -1; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .72)); pointer-events: none; }
.cat-tile:hover .cat-img img { transform: scale(1.05); }
.cat-text { display: grid; gap: 2px; flex: 1; }
.cat-name { font-size: clamp(1.05rem, 3.4vw, 1.3rem); font-weight: 800; letter-spacing: -.02em; }
.cat-sub { font-size: .88rem; opacity: .95; }
.cat-tile .i-arrow { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 999px; background: #fff; color: var(--ink); -webkit-mask: none; mask: none; background-image: none; position: relative; }
.cat-tile .i-arrow::before { content: ''; position: absolute; inset: 10px; background: var(--ink); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Tienda: herramientas y chips ─── */
.shop { padding-top: 48px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.shop-head .sec-head { margin-bottom: 0; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 320px; justify-content: flex-end; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 380px; }
.search .i { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; font-weight: 700; color: var(--muted); }
.sort select { min-height: 44px; border: 0; background: transparent; font-weight: 700; color: var(--ink); cursor: pointer; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-grid { display: contents; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 700; cursor: pointer; user-select: none; transition: background-color .2s, border-color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip-fav .i { width: 16px; height: 16px; }
.chip-fav:has(input:checked) { background: var(--sale); border-color: var(--sale); }
.shop-count { margin: 6px 0 16px; font-size: .88rem; font-weight: 600; color: var(--muted); }

/* ─── Tarjeta de producto ─── */
/* auto-fill (not auto-fit): empty columns are kept, so 1, 2 or 3 products (a short catalog, a
   filter with few results) keep the same card size as a full row instead of stretching */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; } }
.products > .tm-add-btn { order: 9999; }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.product:hover { box-shadow: var(--shadow); border-color: #D6D1C5; }
.pd-media { position: relative; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; cursor: pointer; }
.pd-gallery { position: relative; height: 100%; }
.pd-shot { position: relative; margin: 0; height: 100%; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; }
.product:not(.is-open) .pd-shots { position: absolute; inset: 0; pointer-events: none; }
.product:not(.is-open) .pd-shots .pd-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.product:not(.is-open) .pd-shots .pd-shot ~ .pd-shot { display: none; }
@media (hover: hover) { .product:not(.is-open):hover .pd-shots .pd-shot:first-child { opacity: 1; } }
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-shots { display: none; } /* en el editor: clic en la foto = cambiarla */
.pd-badge { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 70px); padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 800; line-height: 1.3; }
.pd-badge:empty { display: none; }
.pd-badge.is-sale { background: var(--sale); color: #fff; }
.pd-badge.is-hot { background: var(--ink); color: #fff; }
.pd-badge.is-new { background: var(--lime); color: var(--ink); }
.pd-fav { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; transition: transform .15s; }
.pd-fav:active { transform: scale(.9); }
.pd-fav[aria-pressed="true"] { color: var(--sale); }
.pd-fav[aria-pressed="true"] .i { --i: var(--i-heart-on); }
.pd-open { position: absolute; left: 50%; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .8rem; font-weight: 800; white-space: nowrap; cursor: pointer; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.pd-open .i { width: 16px; height: 16px; }
@media (hover: hover) {
  .product:not(.is-open) .pd-open { opacity: 0; transform: translate(-50%, 8px); }
  .product:not(.is-open):hover .pd-open, .product:not(.is-open) .pd-open:focus-visible { opacity: 1; transform: translate(-50%, 0); }
}
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-open { opacity: 1; transform: translate(-50%, 0); } /* en el editor siempre visible */
.pd-info { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 12px 14px; }
@media (min-width: 700px) { .pd-info { padding: 16px 18px 18px; } }
.pd-cat { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-name { font-size: 1rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; cursor: pointer; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.pd-rating .stars { font-size: .82rem; letter-spacing: 1px; }
.rt-c { color: var(--muted); font-weight: 600; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.pd-now { font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; }
.pd-was { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pd-was:empty { display: none; }
.pd-price:has(.pd-was:not(:empty)) .pd-now { color: var(--sale); }
.pd-short { font-size: .88rem; color: var(--ink-2); display: none; }
@media (min-width: 700px) { .product:not(.is-open) .pd-short { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.pd-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-buy { flex: 1; min-height: 44px; padding: 10px 12px; font-size: .88rem; gap: 7px; }
.btn-buy .i { width: 18px; height: 18px; }
.btn-buy { min-width: 0; }
@media (max-width: 480px) { /* tarjetas de ~160 px: «Comprar» + «+» deben caber */
  .btn-buy { padding: 10px 8px; font-size: .84rem; }
  .btn-buy .i { display: none; }
}
.btn-add-quick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.btn-add-quick:hover { border-color: var(--ink); }
.product.is-open .pd-card-actions { display: none; }
.product:not(.is-open) .pd-more, .product:not(.is-open) .pd-bar, .product:not(.is-open) .pd-nav { display: none; }
.shop-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.shop-empty-title { font-weight: 800; font-size: 1.1rem; }

/* ─── Inicio vs. página «Catálogo» (/#catalogo; la clase la pone script.js en <html>) ─── */
html:not(.vt-catalog) .only-catalog, html.vt-catalog .only-home { display: none; }
html.vt-catalog main > section:not(#catalogo) { display: none; }
html.vt-catalog .shop { padding-top: 28px; min-height: 70vh; }
/* En el inicio solo los 8 primeros productos; el resto está en el catálogo completo */
html:not(.vt-catalog) .products > .product:nth-child(n+9):not(.is-open) { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 28px; }
.all-count { font-weight: 600; opacity: .8; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
/* Dentro del editor: en el inicio se ven también los productos «solo catálogo», marcados */
html:not(.vt-catalog) body:not(.tm-preview-mode) #tm-template-container .products > .product:nth-child(n+9):not(.is-open) { display: flex; opacity: .55; }
html:not(.vt-catalog) body:not(.tm-preview-mode) #tm-template-container .products > .product:nth-child(n+9)::before { content: 'Solo en el catálogo completo'; position: absolute; left: 10px; right: 10px; top: 60px; z-index: 3; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; text-align: center; pointer-events: none; }
/* Selector de página: solo en el editor (fuera de la vista previa); en la web publicada no se ve */
.vt-pages { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-pages { position: fixed; left: 50%; bottom: 20px; z-index: 88; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translateX(-50%); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .vt-pages { bottom: calc(80px + env(safe-area-inset-bottom)); } } /* encima de la barra móvil */
.vt-pages-label { padding: 0 8px 0 12px; font-size: .78rem; font-weight: 700; color: #D9D6CE; }
.vt-pages button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: .85rem; font-weight: 800; cursor: pointer; }
.vt-pages button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
/* Dentro del editor: recordar que la categoría del producto debe coincidir con un chip */
#tm-template-container .pd-cat:focus::after { content: ' ← escribe una categoría del catálogo'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--sale); }

/* ─── Detalle de producto: la misma tarjeta, abierta como panel ─── */
.pd-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 20, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s; }
.product.is-open { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; top: auto; display: block; max-height: min(92dvh, calc(100dvh - var(--tm-top, 0px) - 12px)); border-radius: 24px 24px 0 0; border: 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
.product.is-open:hover { box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); }
.pd-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; height: 0; }
.pd-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 10px 10px 0 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); cursor: pointer; }
.product.is-open .pd-media { aspect-ratio: auto; height: min(96vw, 50dvh); cursor: default; }
.product.is-open .pd-fav { right: 62px; top: 10px; }
.product.is-open .pd-open { display: none; }
.product.is-open .pd-gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product.is-open .pd-gallery::-webkit-scrollbar { display: none; }
.product.is-open .pd-shots { display: contents; }
.product.is-open .pd-shot { flex: 0 0 100%; scroll-snap-align: start; }
.product.is-open .pd-shots > .tm-add-btn { flex: 0 0 auto; align-self: center; margin: 0 16px; }
.pd-nav { position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.product.is-open .pd-info { gap: 10px; padding: 20px 16px 0; }
.product.is-open .pd-name { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.035em; cursor: auto; }
.product.is-open .pd-now { font-size: 1.6rem; }
.product.is-open .pd-short { display: block; font-size: 1rem; }
.pd-more { display: grid; gap: 16px; padding-bottom: 20px; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--ok); }
.pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-stock.is-low { color: var(--sale); }
.pd-vars { display: grid; gap: 14px; }
.pd-var legend { margin-bottom: 8px; font-size: .88rem; font-weight: 800; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .9rem; font-weight: 700; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.pd-buybox { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.pd-buybox .pd-buy, .pd-buybox .pd-add { grid-column: 1 / -1; }
.pd-line-total { justify-self: end; font-size: .92rem; font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty-btn, .cart-q { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; cursor: pointer; border-radius: 999px; }
.qty-btn:hover, .cart-q:hover { background: var(--tint); }
.qty-n { width: 36px; border: 0; background: transparent; text-align: center; font-weight: 800; }
.pd-perks { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--tint); }
.pd-perks:empty { display: none; }
.pd-perks li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; font-size: .88rem; line-height: 1.35; }
.pd-perks li::before { content: '✓'; grid-row: span 2; font-weight: 900; color: var(--ok); }
.pd-perks span { color: var(--muted); }
.pd-acc { border-top: 1px solid var(--line); }
.pd-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 800; cursor: pointer; list-style: none; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: '+'; font-size: 1.4rem; font-weight: 500; line-height: 1; transition: transform .2s; }
.pd-acc[open] summary::after { transform: rotate(45deg); }
.pd-long { padding-bottom: 16px; color: var(--ink-2); font-size: .95rem; }
.pd-specs { display: grid; padding-bottom: 16px; }
.spec { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.spec:last-of-type { border-bottom: 0; }
.spec-k { font-weight: 800; }
.spec-v { color: var(--ink-2); }
.pd-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: .92rem; color: var(--wa); }
@media (min-width: 900px) {
  .product.is-open { inset: var(--tm-top, 0px) 0 0 0; margin: auto; width: min(1080px, calc(100vw - 48px)); height: min(760px, calc(100dvh - var(--tm-top, 0px) - 64px)); max-height: none; border-radius: var(--r-lg); display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
  .product.is-open .pd-bar { position: absolute; top: 0; right: 0; height: auto; }
  .product.is-open .pd-media { height: 100%; }
  .product.is-open .pd-fav { right: auto; left: auto; top: 14px; right: 14px; }
  .product.is-open .pd-info { overflow-y: auto; overscroll-behavior: contain; padding: 36px 36px 0; }
  .pd-buybox { margin: 0 -36px; padding: 14px 36px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ─── Regalo ─── */
.gift { padding: 24px 0; }
.gift-card { display: grid; gap: 0; width: min(calc(var(--wrap) - 48px), calc(100% - 32px)); padding: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.gift-img { position: relative; margin: 0; min-height: 240px; }
.gift-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gift-text { display: grid; gap: 14px; align-content: center; justify-items: start; padding: 32px 22px; }
@media (min-width: 860px) { .gift-card { grid-template-columns: 1fr 1fr; } .gift-text { padding: 56px; } }

/* ─── Cómo comprar ─── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); justify-content: center; gap: 12px; counter-reset: step; }
.step { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime); font-weight: 900; font-size: 1.1rem; }
.step-title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.step-text { color: var(--ink-2); font-size: .95rem; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.pay-label { font-weight: 800; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 700; }

/* ─── Nosotros ─── */
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-img { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: grid; gap: 14px; }
.about-p { color: var(--ink-2); font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.stats li { display: grid; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat-n { font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; }
.stat-l { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* ─── Opiniones ─── */
.rev-layout { display: grid; gap: 20px; }
.rev-summary { align-self: start; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.rev-score { display: flex; align-items: center; gap: 12px; }
.rev-score-n { font-size: 3.2rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.rev-summary .stars { font-size: 1.2rem; }
.rev-summary .stars::before { background: linear-gradient(90deg, var(--lime) calc(var(--r) / 5 * 100%), rgba(255, 255, 255, .25) 0); -webkit-background-clip: text; background-clip: text; }
.rev-count { font-size: .9rem; color: #D9D6CE; margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .8s; }
.bar-pct { text-align: right; color: #D9D6CE; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); justify-content: center; gap: 12px; }
.review { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rev-verified { font-size: .76rem; font-weight: 800; color: var(--ok); }
.rev-text { font-size: .98rem; }
.rev-meta { display: grid; margin-top: auto; }
.rev-name { font-weight: 800; }
.rev-place { font-size: .85rem; color: var(--muted); }
.rev-reply { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .88rem; }
.rev-reply-t { font-weight: 800; margin-bottom: 2px; }
@media (min-width: 980px) { .rev-layout { grid-template-columns: 320px 1fr; } }

/* ─── Envíos ─── */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); justify-content: center; gap: 12px; }
.ship-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ship-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lime); }
.ship-title { font-size: 1.1rem; font-weight: 800; }
.ship-meta { display: grid; gap: 2px; }
.ship-time { font-weight: 700; }
.ship-price { font-weight: 800; color: var(--ok); }
.ship-text { font-size: .92rem; color: var(--ink-2); }

/* ─── FAQ (componente del editor: .faq-list > .faq-item) ─── */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { position: relative; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 500; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-2); }

/* ─── Contacto ─── */
.contact { padding-top: 24px; }
.contact-card { display: grid; gap: 24px; align-items: center; padding-block: 40px; }
.contact-card > div:first-child { display: grid; gap: 12px; }
.contact .wrap { background: var(--lime); border-radius: var(--r-lg); padding: 36px 22px; width: min(calc(var(--wrap) - 48px), calc(100% - 32px)); }
.contact .eyebrow { color: var(--ink); }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
@media (min-width: 900px) { .contact-card { grid-template-columns: 1.4fr 1fr; } .contact .wrap { padding: 56px; } .contact-actions { justify-items: end; } }

/* ─── Pie ─── */
.footer { margin-top: 64px; padding: 56px 0 24px; background: var(--ink); color: #E8E5DD; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -.05em; color: #fff; }
.footer-text { font-size: .92rem; color: #CFCBC2; }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: rgba(255, 255, 255, .16); }
.footer-h { margin-bottom: 8px; font-weight: 800; color: #fff; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: #CFCBC2; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #BDB9AF; }

/* ─── Pedido (panel lateral) ─── */
.drawer { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 100; /* --tm-top: barra del editor/demo, 0 en la web publicada */ display: flex; justify-content: flex-end; background: rgba(20, 20, 20, .55); animation: fade .2s; }
.drawer-panel { display: flex; flex-direction: column; width: min(440px, 100%); height: 100%; background: var(--bg); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .6); animation: slide-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--tint); cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 24px; display: grid; gap: 18px; align-content: start; }
.ship-meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.ship-msg { font-size: .88rem; font-weight: 700; }
.ship-track { display: block; height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.ship-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); transition: width .4s; }
.cart-list { display: grid; gap: 10px; }
.cart-list:empty { display: none; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 32px; gap: 12px; align-items: start; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.cart-line img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-line:not(:has(img)) { grid-template-columns: 1fr 32px; }
.cart-line-info { display: grid; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.cart-line-opts { font-size: .8rem; color: var(--muted); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cart-line-price { font-weight: 800; }
.qty-sm .cart-q { width: 40px; height: 40px; }
.qty-v { min-width: 22px; text-align: center; font-weight: 800; }
.cart-rm { position: relative; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); }
.cart-rm::before { content: ''; position: absolute; inset: 7px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
.cart-rm::after { content: ''; position: absolute; inset: -6px; } /* objetivo táctil de 44 px */
.cart-rm:hover { color: var(--sale); }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 12px; text-align: center; }
.cart-empty > .i { width: 44px; height: 44px; color: var(--muted); }
.cart-empty-title { font-weight: 800; font-size: 1.1rem; }
/* Pedido vacío: sin formulario. En el editor se ve igual, para editar sus textos. Es una clase y no
   [hidden] porque en el editor el reset de Tailwind (`[hidden] { display: none !important }` en
   @layer base) gana a cualquier regla de la plantilla, aunque lleve !important. */
.checkout.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .checkout.is-empty { display: grid; opacity: .75; }
.checkout { display: grid; gap: 14px; padding-top: 4px; }
.co-title { font-weight: 900; font-size: 1.05rem; }
.field { display: grid; gap: 6px; }
.field label, .co-group legend { font-size: .85rem; font-weight: 800; }
.co-group legend { margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--tint); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: 10px; font-size: .88rem; font-weight: 700; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ink); }
.pay-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-opts .opt { font-size: .84rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92rem; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.drawer-foot { display: grid; gap: 10px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.totals { display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.totals dt { color: var(--muted); font-weight: 600; }
.totals dd { font-weight: 700; }
.totals .total-row { margin-top: 4px; font-size: 1.1rem; }
.totals .total-row dt { color: var(--ink); font-weight: 800; }
.totals .total-row dd { font-weight: 900; }
.ship-rule { font-size: .8rem; color: var(--muted); }
.cart-fine { font-size: .78rem; color: var(--muted); text-align: center; }

/* ─── Aviso, barra móvil y botón flotante ─── */
.vt-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.vt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.vt-lock .vt-toast { top: calc(var(--tm-top, 0px) + 16px); bottom: auto; } /* con el pedido o un detalle abierto, arriba: abajo están sus botones */
.vt-toast:empty { display: none; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mbar a, .mbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: transparent; color: var(--ink); font-size: .75rem; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 12px; }
.mbar .i { width: 22px; height: 22px; }
.mbar a[data-whatsapp-btn] { color: var(--wa); }
.mbar .cart-count { top: 2px; right: calc(50% - 26px); }
body { padding-bottom: 72px; }
.wa-fab { display: none; }
@media (min-width: 769px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
  .vt-toast { bottom: 28px; }
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(14, 122, 67, .6); transition: transform .2s; }
  .wa-fab:hover { transform: scale(1.06); }
  .wa-fab .i { width: 28px; height: 28px; }
  html.vt-lock .wa-fab { display: none; }
}

/* ─── Movimiento: solo si el usuario no pidió reducirlo ─── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .benefit, .cat-tile, .step, .review, .ship-card, .faq-item, .stats li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ─── Información legal (ventanas que se abren desde el pie) ─── */
.info-modal { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; background: rgba(15, 15, 15, .55); overflow-y: auto; overscroll-behavior: contain; }
.info-modal[hidden] { display: none; }
.info-panel { position: relative; width: min(720px, 100%); margin: auto 0; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .info-panel { padding: 40px 44px 36px; } }
.info-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--tint); color: var(--ink); cursor: pointer; }
.info-close:hover { background: var(--line); }
.info-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-title { margin: 6px 48px 4px 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.info-updated { font-size: .82rem; color: var(--muted); }
.info-body { display: grid; gap: 10px; margin-top: 22px; }
.info-h { margin-top: 10px; font-size: 1rem; font-weight: 800; }
.info-p { font-size: .95rem; line-height: 1.6; color: #3B3A36; }
.info-business { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .9rem; font-weight: 700; }
.info-note { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.claim-form { display: grid; gap: 14px; margin: 8px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.claim-kind { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; border: 0; }
.claim-kind legend { margin-bottom: 4px; font-size: .85rem; font-weight: 800; }
.claim-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.claim-error { font-size: .88rem; font-weight: 700; color: var(--sale); }
.claim-form .field.is-bad input, .claim-form .field.is-bad textarea { border-color: var(--sale); }
/* «Editar» junto a cada enlace legal: solo en el editor (abre la ventana para cambiar su contenido) */
.vt-open-info { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-open-info { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; padding: 2px 10px; border: 1.5px dashed #60eba0; border-radius: 999px; background: transparent; color: #60eba0; font: 700 .75rem/1 system-ui, sans-serif; cursor: pointer; vertical-align: middle; }
/* ═══ Kit ecommerce — docs/template-kit/ecommerce/ecommerce.css ═══
   Lo agrega el generador al styles.css de la plantilla cuando ECOMMERCE = True.
   Envío gratis según la decisión del dueño (ecommerce.js › applyShipMode → <html data-free-ship>):
   sin el atributo (la página antes de su script) se ve el modo «desde un monto». */
.fs-none, .fs-always { display: none; }
[data-free-ship="none"] .fs-none, [data-free-ship="always"] .fs-always { display: inline; }
[data-free-ship="none"] .fs-free, [data-free-ship="none"] .fs-min { display: none; }
[data-free-ship="always"] .fs-min, [data-free-ship="always"] .fs-paid { display: none; }
/* Medidor «te faltan S/ X para el envío gratis»: se oculta cuando no hay envío gratis */
.ship-track[hidden] { display: none; }

/* ─── Iconos de interfaz: generados por build.py (máscaras CSS, no son <svg> editables) ─── */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  --i-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  --i-bag-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2M12 11.5v6M9 14.5h6'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-heart-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.6a8.5 8.5 0 0 1-12.6 7.5L3.5 20.5l1.5-4.2a8.5 8.5 0 1 1 15.5-4.7z'/%3E%3Cpath d='M9 8.6c.3 2.9 2.6 5.3 5.6 5.8l1-1.3-1.8-.9-.8.8c-1-.4-1.9-1.3-2.3-2.3l.8-.8-.9-1.8z'/%3E%3C/svg%3E");
}
.i-search { --i: var(--i-search); }
.i-bag { --i: var(--i-bag); }
.i-bag-plus { --i: var(--i-bag-plus); }
.i-heart { --i: var(--i-heart); }
.i-heart-on { --i: var(--i-heart-on); }
.i-close { --i: var(--i-close); }
.i-chev-l { --i: var(--i-chev-l); }
.i-chev-r { --i: var(--i-chev-r); }
.i-eye { --i: var(--i-eye); }
.i-arrow { --i: var(--i-arrow); }
.i-home { --i: var(--i-home); }
.i-grid { --i: var(--i-grid); }
.i-wa { --i: var(--i-wa); }
