/* =============================================================
   Bacanito · Estilos de la tienda
   Identidad:
     Baloo 2   → solo títulos (h1, h2, h3…)
     Quicksand → todo lo demás
     #050608 tinta · #fcefdd crema · #fc5d0c naranja · #fdc316 amarillo
     #9844fa morado · #05c07c verde
   Idea visual (v3): moderna y limpia, tipo iPhone — superficies claras,
   sombras suaves, esquinas amplias, vidrio esmerilado y los colores de marca.
   ============================================================= */

:root {
  --ink: #050608;
  --cream: #fcefdd;
  --orange: #fc5d0c;
  --yellow: #fdc316;
  --purple: #9844fa;
  --green: #05c07c;

  /* Tonos derivados (siempre a partir de la paleta) */
  --paper: color-mix(in srgb, var(--cream) 55%, #fff);
  --cream-deep: color-mix(in srgb, var(--cream) 78%, var(--yellow));
  --muted: color-mix(in srgb, var(--ink) 68%, var(--cream));
  --line: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  --overlay: rgba(5, 6, 8, .45);
  --glass: color-mix(in srgb, #fff 84%, transparent);
  --shadow-s: 0 0 0 1px rgba(5, 6, 8, .05), 0 1px 2px rgba(5, 6, 8, .04), 0 6px 14px -8px rgba(5, 6, 8, .16);
  --shadow-m: 0 0 0 1px rgba(5, 6, 8, .05), 0 2px 4px rgba(5, 6, 8, .04), 0 14px 30px -14px rgba(5, 6, 8, .26);
  --shadow-l: 0 4px 8px rgba(5, 6, 8, .05), 0 28px 56px -22px rgba(5, 6, 8, .38);

  --f-title: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-text: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --press: var(--shadow-s);
  --header-h: 84px;          /* encabezado flotante (queda fijo al bajar) */
  --top-h: var(--header-h);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body.no-announce { --announce-h: 0px; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--f-title);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.ic { flex: none; }

/* ---------- Preloader (los estilos críticos van en el <head>) ---------- */
.preloader video { width: min(340px, 64vw); height: auto; object-fit: contain; background: transparent; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .7em 1.4em;
  border: var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: var(--press);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(3px); box-shadow: var(--shadow-s); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--press); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--orange) 88%, var(--yellow)); }
.btn-wa { background: var(--green); color: #fff; }
.btn-ghost { background: var(--paper); }
.btn-lg { min-height: 58px; font-size: 1.075rem; padding-inline: 1.6em; }
.btn-block { width: 100%; }
.btn-link {
  display: inline-block; background: none; border: 0; padding: .5em 0; margin-top: .5em;
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { color: var(--purple); border-color: var(--purple); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: var(--line); background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .12s ease;
}
.icon-btn:hover { background: var(--yellow); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Franja de avisos ---------- */

/* ---------- Encabezado: ver bloque «Encabezado flotante» al final del archivo ---------- */

/* ---------- Secciones ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-top: clamp(16px, 3vw, 32px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.section-head h2 { margin-bottom: .15em; }
.section-sub { color: var(--muted); font-size: 1.075rem; max-width: 56ch; margin: 0; }
.page-head { padding-top: clamp(32px, 5vw, 64px); }
.page-head h1 { margin-bottom: .2em; }
.page-head-sm h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

/* ---------- Hero ---------- */
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 42ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.swipe-hint {
  --dx: 0px; --dy: 0px;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  transition: transform .25s ease;
  animation: floaty var(--fl-d, 6s) ease-in-out var(--fl-delay, 0s) infinite;   /* flota suave (se suma al arrastre) */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  cursor: grab;
}
.is-dragging { cursor: grabbing; --sc: 1.05; animation-play-state: paused; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: var(--fl-x, 0px) var(--fl-y, -10px); } }

/* ---------- Tarjetas de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 1023px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 679px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  --tone: var(--yellow);
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.tone-green { --tone: var(--green); }
.tone-purple { --tone: var(--purple); }
.tone-orange { --tone: var(--orange); }
.card-media { position: relative; display: block; background: color-mix(in srgb, var(--tone) 22%, var(--cream)); border-bottom: var(--line); }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card.is-soldout .card-media img { filter: grayscale(.7); opacity: .7; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.card-cat { margin: 0 0 2px; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 0 0 8px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es clicable */
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-swatches { display: flex; gap: 5px; margin: 0 0 10px; padding: 0; list-style: none; }
.card-swatches li { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card-action {
  position: relative; z-index: 2; flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--yellow);
  box-shadow: var(--shadow-s); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.card-action:hover { background: var(--orange); }
.card-action:active { transform: translateY(2px); box-shadow: var(--shadow-s); }
.card-action.is-off { background: var(--cream); box-shadow: none; opacity: .5; }

.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45em; }
.price-now { font-weight: 700; font-size: 1.05rem; }
.price-now .from { font-weight: 600; font-size: .8em; color: var(--muted); }
.price-was { color: var(--muted); font-size: .88rem; font-weight: 600; }

.tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: .25em .75em; border-radius: 999px; border: var(--line);
  font-size: .8rem; font-weight: 700; line-height: 1.3;
}
.tag-ink { background: var(--ink); color: var(--cream); }
.tag-orange { background: var(--orange); }
.tag-purple { background: var(--purple); color: var(--cream); }

@media (max-width: 679px) {
  .card { border-radius: var(--r-md); }
  .card-body { padding: 10px 10px 12px; }
  .card-action { width: 40px; height: 40px; }
  .price-now { font-size: .98rem; }
  .tag { top: 8px; left: 8px; font-size: .72rem; }
}

/* ---------- Caja de llamado (WhatsApp) ---------- */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px); border: var(--line); border-radius: var(--r-xl);
  background: var(--purple); color: var(--cream); box-shadow: var(--shadow-s);
}
.cta-box h2 { max-width: 18ch; }
.cta-box p { max-width: 46ch; font-size: 1.1rem; }
.cta-box-sm { margin-top: 48px; }
.cta-box-sm h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Vacíos ---------- */
.empty { text-align: center; max-width: 480px; margin-inline: auto; padding: 32px 0; }
.empty p { color: var(--muted); }
.empty .btn { margin-top: 8px; }
.empty-title { font-family: var(--f-title); font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--ink) !important; margin-bottom: .3em; }
.empty-page { padding-block: 48px 64px; }

/* ---------- Producto ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 600; font-size: .95rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--top-h) + 20px); }
.pd-main { position: relative; border: var(--line); border-radius: var(--r-xl); overflow: hidden; background: color-mix(in srgb, var(--yellow) 22%, var(--cream)); }
.pd-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pd-main .tag { top: 16px; left: 16px; font-size: .9rem; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb { flex: none; width: 74px; padding: 0; border: var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); opacity: .6; transition: opacity .15s ease; }
.pd-thumb img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pd-thumb[aria-pressed="true"], .pd-thumb:hover { opacity: 1; }
.pd-thumb[aria-pressed="true"] { outline: 3px solid var(--purple); outline-offset: 2px; }
.pd-cat { margin: 0 0 4px; font-weight: 600; color: var(--muted); }
.pd-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: .95; margin-bottom: .25em; }
.pd-price { display: flex; align-items: baseline; gap: .6em; margin-bottom: 18px; }
.pd-price .price-now { font-size: 1.7rem; }
.pd-price .price-was { font-size: 1.05rem; }
.pd-desc { margin-bottom: 22px; max-width: 60ch; }

.opt { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.opt legend strong { font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: var(--line); background: var(--sw, var(--yellow)); padding: 0;
  transition: transform .12s ease;
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { outline: 3px solid var(--purple); outline-offset: 3px; }
.swatch.is-out { opacity: .45; }
.swatch.is-out::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2.5px; background: var(--ink); transform: rotate(45deg); }

.pd-stock { min-height: 1.5em; margin: 0 0 12px; font-weight: 700; font-size: .95rem; }
.pd-stock.is-low { color: var(--ink); }
.pd-stock.is-low::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); margin-right: 8px; vertical-align: -1px; }
.pd-stock.is-out { color: var(--muted); }

.pd-buy { display: flex; gap: 12px; margin-bottom: 12px; }
.pd-add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: var(--line); border-radius: 999px; background: var(--paper); height: 58px; }
.qty-btn { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: none; border-radius: 999px; }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty input { width: 38px; height: 100%; border: 0; background: none; text-align: center; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 38px; }
.qty-sm .qty-btn { width: 36px; }
.qty-val { min-width: 24px; text-align: center; font-weight: 700; }

.pd-highlights { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.pd-highlights li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.pd-highlights .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); }
.pd-facts { list-style: none; margin: 24px 0 0; padding: 18px 20px; display: grid; gap: 12px; border: var(--line); border-radius: var(--r-md); background: var(--cream-deep); font-size: .95rem; }
.pd-facts li { display: flex; gap: 12px; align-items: flex-start; }

@media (max-width: 899px) {
  .pd { grid-template-columns: minmax(0, 1fr); }
  .pd-gallery { position: static; }
  .pd-main { border-radius: var(--r-lg); }
}
@media (max-width: 419px) {
  .pd-buy { flex-direction: column; }
  .qty { align-self: flex-start; }
}

/* ---------- Paneles laterales (carrito y menú) ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: var(--overlay); opacity: 0; transition: opacity .25s ease; }
.overlay.is-on { opacity: 1; }
.sheet {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw);
  display: flex; flex-direction: column; background: var(--cream);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
}
.sheet:focus { outline: none; }
.sheet.is-open { transform: none; visibility: visible; }
.sheet-right { right: 0; border-left: var(--line); border-radius: var(--r-xl) 0 0 var(--r-xl); transform: translateX(105%); }
.sheet-left { left: 0; border-right: var(--line); border-radius: 0 var(--r-xl) var(--r-xl) 0; transform: translateX(-105%); padding-bottom: 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: var(--line); }
.sheet-head img { height: 60px; width: auto; max-width: 220px; object-fit: contain; }
.sheet-title { font-size: 1.8rem; margin: 0; }
.sheet-nav { display: grid; padding: 16px 12px; gap: 4px; }
.sheet-nav a { padding: .45em .6em; border-radius: var(--r-md); text-decoration: none; font-weight: 700; font-size: 1.5rem; }
.sheet-nav a:hover, .sheet-nav a[aria-current="page"] { background: var(--yellow); }
.sheet-left .btn { width: auto; margin: auto 20px 0; }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.cart-foot { padding: 16px 20px 20px; border-top: var(--line); background: var(--cream-deep); text-align: center; }
.cart-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: 4px; }
.cart-row strong { font-size: 1.3rem; }
.cart-note { text-align: left; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.cart-empty { text-align: center; padding: 40px 8px; }
.cart-empty img { margin: 0 auto 16px; width: 96px; }
.cart-empty p { color: var(--muted); }

.line-list, .co-items { list-style: none; margin: 0; padding: 0; }
.line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.line:last-child { border-bottom: 0; }
.line-img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--r-sm); border: var(--line); flex: none; background: var(--cream-deep); }
.line-info { flex: 1; min-width: 0; }
.line-name { font-weight: 700; margin: 0; line-height: 1.3; }
.line-var { font-size: .88rem; color: var(--muted); margin: 2px 0 0; }
.line-price { font-weight: 700; margin: 4px 0 8px; }
.line-actions { display: flex; align-items: center; justify-content: space-between; }
.line-remove { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; color: var(--muted); }
.line-remove:hover { background: var(--cream-deep); color: var(--ink); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.co-block { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.co-block legend { font-family: var(--f-title); font-weight: 800; font-size: 1.6rem; line-height: 1.1; padding: 0; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.opt-label { font-weight: 500; color: var(--muted); }
.field input, .field select {
  height: 52px; padding: 0 16px; width: 100%; min-width: 0;
  border: var(--line); border-radius: var(--r-sm); background: var(--paper); font-weight: 600;
  transition: box-shadow .15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23050608' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder { color: color-mix(in srgb, var(--ink) 40%, var(--cream)); font-weight: 500; }
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 3px var(--purple); }
.field [aria-invalid="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 35%, transparent); background: color-mix(in srgb, var(--orange) 8%, var(--paper)); }
.field-err { margin: 6px 0 0; font-size: .88rem; font-weight: 700; min-height: 0; }
.field-err:empty { display: none; }
.field-err::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }
.pay-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pay { position: relative; }
.pay input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay span { display: inline-flex; align-items: center; min-height: 48px; padding: .4em 1.2em; border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; transition: background-color .15s ease; }
.pay input:checked + span { background: var(--yellow); box-shadow: var(--shadow-s); }
.pay input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.co-note { margin-top: 12px; font-size: .95rem; color: var(--muted); max-width: 56ch; }
.remember { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.remember input { width: 20px; height: 20px; accent-color: var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; margin-bottom: 24px; border: var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--orange) 18%, var(--cream)); font-weight: 600; }

.co-summary {
  position: sticky; top: calc(var(--top-h) + 20px);
  padding: 22px; border: var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-s);
}
.co-summary-title { font-size: 1.7rem; margin-bottom: 4px; }
.co-items .line { padding: 12px 0; }
.co-items .line-img { width: 60px; height: 75px; }
.co-totals { margin: 12px 0 16px; padding-top: 12px; border-top: var(--line); }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.co-totals dt { color: var(--muted); font-weight: 600; }
.co-totals dd { margin: 0; font-weight: 700; text-align: right; }
.co-total { font-size: 1.25rem; padding-top: 8px !important; }
.co-total dt { color: var(--ink) !important; font-weight: 700 !important; }
.co-free { font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.co-fine { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 12px; }

.done { text-align: center; max-width: 520px; margin: 0 auto; padding: 24px 0 48px; }
.done:focus { outline: none; }
.done-badge { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); border: var(--line); box-shadow: var(--press); }
.done h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.done-hint { color: var(--muted); font-size: .95rem; }
.done .btn { margin-top: 8px; }
.done .btn-link { display: block; margin: 16px auto 0; }

@media (max-width: 899px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .co-summary { position: static; }
}
@media (max-width: 519px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQs ---------- */
.faq-wrap { max-width: 820px; }
.faq-group { margin-bottom: 36px; }
.faq-title { font-size: 1.7rem; margin-bottom: 8px; }
.faq { border-bottom: var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: var(--line); background: var(--paper); transition: transform .2s ease, background-color .15s ease; }

.faq p { padding: 0 48px 20px 0; margin: 0; max-width: 65ch; }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s ease, transform .25s ease;
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 600; font-size: .95rem; text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Menos movimiento para quien lo pide ---------- */
/* Si el equipo pide "menos movimiento", se acortan las transiciones, pero las
   animaciones decorativas de la marca (collage flotando, franja, avisos) siguen activas. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .cart-count.bump { animation: none; }
}

/* ---------- Páginas de texto (política de privacidad) ---------- */
.legal { max-width: 760px; }
.legal-intro { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.6em; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.6em 0 .45em; }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .35em; }
.legal li::marker { color: var(--orange); }
.co-link { font-weight: 700; text-underline-offset: 3px; }


/* ---------- Productos destacados: carrusel que se arrastra ----------
   PC: 4 a la vista · Tablet: 2 · Celular: 1 y se asoma el siguiente */
.carousel {
  --gap: clamp(12px, 2vw, 24px);
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px 2px 14px; scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > .card { scroll-snap-align: start; }
.carousel.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-grabbing .card { pointer-events: none; }
.carousel .card-media img { -webkit-user-drag: none; }
@media (max-width: 1023px) { .carousel { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 679px) { .carousel { grid-auto-columns: 74%; } }
.center-cta { display: flex; justify-content: center; margin-top: clamp(20px, 3vw, 32px); }

.featured-head { flex-wrap: nowrap; align-items: center; position: relative; }
.swipe-hint {
  flex: none; width: clamp(120px, 17vw, 200px); height: auto; margin-left: auto; z-index: 2;
  --rot: -6deg; --fl-d: 3.2s; --fl-y: -4px; --fl-x: 6px;
}

/* ---------- ¿Por qué comprar en Bacanito? (fondo tinta) ---------- */
.why { background: var(--ink); color: var(--cream); }
.why h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.why-list li { padding: 4px 0; }
.why-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }   /* ícono | título en la misma fila */
.why-head h3 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.why-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: #fff; }
.why-list p { color: color-mix(in srgb, var(--cream) 80%, var(--ink)); margin: 0; }
@media (max-width: 1023px) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .why-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQs del inicio: grupos que se despliegan ---------- */
.faq-narrow { max-width: 860px; }
.home-faqs h2 { margin-bottom: .2em; }
.home-faqs .section-sub { margin-bottom: 24px; }
.clusters { display: grid; gap: 14px; align-content: start; }
.cluster { border: var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-s); overflow: hidden; }
.cluster > summary {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--f-title); font-weight: 700; font-size: 1.45rem; line-height: 1.1;
}
.cluster > summary::-webkit-details-marker { display: none; }
.cluster[open] > summary { background: var(--yellow); border-bottom: var(--line); }
.muted-count { font-family: var(--f-text); font-size: .8rem; font-weight: 700; padding: .1em .6em; border-radius: 999px; background: var(--cream-deep); border: 2px solid var(--ink); }
.drop-ic { margin-left: auto; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: var(--line); background: var(--cream); transition: transform .2s ease; }

.cluster-body { padding: 0 20px 6px; }
.cluster-body .faq:last-child { border-bottom: 0; }

/* ---------- Tienda: buscador, categorías y filtro ---------- */
.shop-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.search .ic { position: absolute; left: 16px; pointer-events: none; }
.search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; }
.search input:focus { outline: none; box-shadow: 0 0 0 3px var(--purple); }
.shop-buttons { display: flex; gap: 10px; flex: none; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px;
  border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; box-shadow: var(--shadow-s); white-space: nowrap;
}
.tool-btn span { overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
.tool-btn .ic:last-child { transition: transform .2s ease; }
.tool-btn[aria-expanded="true"] { background: var(--yellow); }
.tool-btn[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
.tool-btn.is-set { background: var(--ink); color: var(--cream); }
.tool-panel { margin-bottom: 20px; padding: 14px; border: var(--line); border-radius: var(--r-md); background: var(--paper); }
/* Opciones de Categorías y Filtrar por: mismo ancho, 6 por fila en PC, 4 en tablet, 2 en celular */
.tool-panel .chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tool-panel .chip { width: 100%; padding-inline: .6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1023px) { .tool-panel .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 679px) { .tool-panel .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: .4em 1.05em; border: var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: .95rem; transition: background-color .15s ease;
}
.chip:hover { background: var(--yellow); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.chip.is-out { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .5; }
.chip.is-out[aria-pressed="true"] { opacity: 1; background: var(--cream-deep); color: var(--ink); border-style: dashed; }
@media (max-width: 679px) {
  .shop-tools { flex-direction: column; align-items: stretch; }
  .shop-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-btn { padding: 0 12px; }
}
/* Grilla de la tienda: PC 4 · Tablet 2 · Celular 1 */
.grid-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-shop > .card { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.load-more { height: 1px; }

/* ---------- FAQs: preguntas a la izquierda, ayuda fija a la derecha ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.faq-aside { align-self: start; }
.cta-box-side { flex-direction: column; align-items: stretch; gap: 14px; padding: 26px; }
.cta-box-side h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0; }
.cta-box-side p { margin: 0; font-size: 1rem; }
@media (min-width: 768px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(28px, 4vw, 56px); align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--top-h) + 24px); }
}

/* ---------- Pie de página ---------- */
.site-footer { background: var(--cream-deep); border-top: var(--line); padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; align-items: start; }
.footer-brand img { height: 80px; width: auto; max-width: 260px; object-fit: contain; margin-bottom: 14px; }
.footer-brand p { max-width: 40ch; }
.footer-drop > summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none;
  font-family: var(--f-title); font-weight: 700; font-size: 1.35rem;
}
/* PC y tablet: Explora y ¿Dudas? siempre desplegados, sin botón ni líneas */
@media (min-width: 768px) {
  .footer-drop > summary { pointer-events: none; cursor: default; padding-top: 0; }
  .footer-drop .drop-ic { display: none; }
  .footer-nav, .footer-help { padding-top: 6px; }
}
.footer-drop > summary::-webkit-details-marker { display: none; }
.footer-drop .drop-ic { width: 34px; height: 34px; }
.footer-nav { display: grid; gap: 8px; padding-top: 14px; }
.footer-nav a { font-weight: 700; text-decoration: none; width: fit-content; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-help { padding-top: 14px; }
.footer-help p { color: var(--muted); }
.footer-legal { padding-block: 18px; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: center; padding-bottom: 20px; }
  .footer-brand { margin-bottom: 16px; }
  .footer-drop { border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
  .footer-legal { border-top: 0; padding-top: 4px; }
  .footer-brand img { margin-inline: auto; }
  .footer-brand p { margin-inline: auto; }
  .footer-drop > summary { justify-content: center; }
  .footer-drop .drop-ic { margin-left: 0; }
  .footer-nav { justify-items: center; }
  .footer-legal { text-align: center; }
}


@keyframes band { to { transform: translateX(-50%); } }

/* ---------- FAQs (inicio y página): grupos a la izquierda, ayuda fija a la derecha ---------- */
.home-faqs .faq-layout { margin-top: 8px; }
.section-shop { padding-top: clamp(20px, 3vw, 36px); }
.home-faqs h2 { margin-bottom: 18px; }


/* ---------- Producto: galería deslizable ---------- */
.section-product { padding-top: clamp(20px, 3vw, 36px); }
.pd-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slides.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.pd-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.pd-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* ---------- Producto: información ---------- */
.pd-title { margin-bottom: .2em; }
.pd-price { flex-wrap: wrap; row-gap: 6px; }

/* Entre más llevas, más ahorras */

/* Cantidad: título a la izquierda, botones a la derecha */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; margin-bottom: 6px; border: var(--line); border-radius: 999px; background: var(--paper); }
.qty-label { font-weight: 700; }
.qty-row .qty { height: 48px; background: var(--cream); }
.qty-row .qty-btn { width: 46px; }
.pd-add { margin-bottom: 10px; }
.pd-buynow { margin-bottom: 4px; }
.pd-facts { margin-top: 18px; }

/* Descripción desplegable */
.pd-more { margin-top: 18px; border: var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.pd-more > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; }
.pd-more > summary::-webkit-details-marker { display: none; }
.pd-more[open] > summary { border-bottom: var(--line); background: var(--yellow); }
.pd-more .pd-desc { padding: 14px 18px; margin: 0; }

/* Carrito y tarjetas: ahorro por cantidad */
.line-save { display: inline-block; margin-left: 6px; padding: 0 .5em; border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; }
.card-deal { margin: 0 0 8px; font-size: .78rem; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--green) 25%, var(--cream)); border-radius: 8px; padding: 3px 8px; width: fit-content; }
/* Tienda en celular (2 por fila): precios compactos */
@media (max-width: 679px) {
  .grid-shop .price-now { white-space: nowrap; font-size: .95rem; }
  .grid-shop .price-now .from { display: block; }
  .grid-shop .card-deal { font-size: .72rem; }
  .grid-shop .card-title { font-size: 1rem; }
}

/* ---------- Estrellas ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.pd-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; text-decoration: none; font-size: .95rem; }
.pd-rating span:last-child { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reseñas en la página de producto ---------- */
.section-reviews { padding-top: 0; }
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .reviews { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; } .reviews-side { position: sticky; top: calc(var(--top-h) + 20px); } }
.reviews-avg { display: flex; align-items: center; gap: 12px; margin: 0 0 2px; }
.reviews-avg strong { font-family: var(--f-title); font-size: 3rem; line-height: 1; }
.muted-text { color: var(--muted); }
.review-write { margin-top: 16px; }
.review-write > summary { list-style: none; cursor: pointer; }
.review-write > summary::-webkit-details-marker { display: none; }
.review-write[open] > summary { display: none; }
.review-form { padding: 18px; border: var(--line); border-radius: var(--r-lg); background: var(--paper); }
.review-form .field { margin-bottom: 12px; }
.review-form .field label { font-weight: 700; font-size: .95rem; margin-bottom: 6px; display: block; }
.review-form input:not([type=radio]):not([type=file]), .review-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: var(--line); border-radius: var(--r-sm); background: var(--cream); font-weight: 600;
}
.review-form textarea { resize: vertical; }
.review-form input:focus, .review-form textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--purple); }
.review-form [aria-invalid="true"] { border-color: var(--orange) !important; }
.file-input { font-size: .9rem; }
.review-privacy { font-size: .88rem; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--green) 18%, var(--cream)); margin-bottom: 14px; }
.review-thanks { padding: 22px; border: var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--green) 22%, var(--cream)); text-align: center; }

/* Selector de estrellas (de derecha a izquierda para pintar las anteriores) */
.star-pick { border: 0; margin: 0 0 12px; padding: 0; }
.star-pick legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.star-inputs { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-inputs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-inputs label { width: 40px; height: 40px; cursor: pointer; background: no-repeat center / 36px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.6l-5.8 3.1 1.1-6.5-4.7-4.6 6.5-.9Z' fill='none' stroke='%23050608' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .12s ease; }
.star-inputs label:hover, .star-inputs label:hover ~ label, .star-inputs input:checked ~ label {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.6l-5.8 3.1 1.1-6.5-4.7-4.6 6.5-.9Z' fill='%23fdc316' stroke='%23050608' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.star-inputs label:hover { transform: scale(1.12); }
.star-inputs input:focus-visible + label { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 8px; }

.reviews-list { display: grid; gap: 14px; }
.review { padding: 18px; border: var(--line); border-radius: var(--r-lg); background: var(--paper); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--yellow); font-family: var(--f-title); font-weight: 800; font-size: 1.2rem; }
.review-name { font-weight: 700; margin: 0; line-height: 1.2; }
.review-date { margin-left: auto; font-size: .85rem; color: var(--muted); }
.review-text { margin: 0; }
.review-photo img { width: 140px; height: 140px; object-fit: cover; margin-top: 12px; border: var(--line); border-radius: var(--r-md); }

/* ---------- Rastrear pedido ---------- */
.section-track { padding-top: clamp(28px, 4vw, 56px); }
.track { max-width: 720px; }
.track-form { display: flex; gap: 10px; margin: 20px 0; }
.track-form input { flex: 1; min-width: 0; height: 58px; padding: 0 20px; border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.track-form input:focus { outline: none; box-shadow: 0 0 0 3px var(--purple); }
@media (max-width: 519px) { .track-form { flex-direction: column; } .track-form input { flex: none; } }
.track-card { padding: clamp(18px, 3vw, 28px); border: var(--line); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-s); }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.track-code { font-family: var(--f-title); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; line-height: 1.1; }
.track-head p { margin: 0; }
.track-pill { flex: none; padding: .25em .9em; border: var(--line); border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--cream); }
.track-pill.st-nuevo { background: var(--orange); color: #fff; }
.track-pill.st-esperando_pago { background: var(--yellow); }
.track-pill.st-pagado { background: var(--green); color: #fff; }
.track-pill.st-enviado { background: var(--purple); color: #fff; }
.track-pill.st-entregado { background: var(--ink); color: var(--cream); }
.track-msg { font-size: 1.1rem; font-weight: 600; margin: 16px 0; }
.track-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.track-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 3px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.track-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.track-steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: var(--line); background: var(--cream); }
.track-steps .is-done .dot { background: var(--green); color: #fff; }
.track-steps .is-now .dot { background: var(--orange); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 30%, transparent); }
.track-steps .is-done, .track-steps .is-now { color: var(--ink); }
.track-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.track-info div { padding: 12px 14px; border-radius: var(--r-md); background: var(--cream-deep); }
.track-info dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.track-info dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.track-guia { font-size: 1.05rem; }
.track-info .btn-link { margin: 0 0 0 8px; padding: 0; font-size: .85rem; }
@media (max-width: 519px) { .track-info { grid-template-columns: minmax(0, 1fr); } }
.track-items { margin-bottom: 16px; }
.track-items summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-weight: 700; }
.track-items summary::-webkit-details-marker { display: none; }
.track-items .drop-ic { width: 30px; height: 30px; margin-left: 0; }
.track-items ul { margin: 10px 0 0; padding-left: 20px; }

/* ---------- Entre más llevas, más ahorras: una opción por fila ---------- */

/* ---------- Reseñas: mejor uso del ancho en PC ---------- */
/* Sin reseñas: bloque a todo el ancho (texto a la izquierda, botón a la derecha) */
.reviews-empty { grid-template-columns: minmax(0, 1fr) !important; }
.reviews-empty .reviews-side { position: static !important; padding: clamp(20px, 3vw, 32px); border: var(--line); border-radius: var(--r-xl); background: var(--paper); }
.reviews-empty .reviews-list { display: none; }
@media (min-width: 768px) {
  .reviews-empty .reviews-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px 32px; align-items: center; }
  .reviews-empty .reviews-intro h2 { margin-bottom: .2em; }
  .reviews-empty .reviews-intro p { margin: 0; }
  .reviews-empty .review-write { margin-top: 0; }
  .reviews-empty .review-write[open] { grid-column: 1 / -1; }   /* al abrir, el formulario ocupa todo el ancho */
}
/* Formulario: campos en dos columnas cuando hay espacio */
@media (min-width: 768px) {
  .reviews-empty .review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .reviews-empty .review-fields .field:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }   /* opinión a lo ancho */
}


/* =============================================================
   JERARQUÍA VISUAL (menos "plantilla", más marca)
   - Borde negro grueso + sombra dura: solo en lo que se toca
     (botones, carrito, menú) y en el collage del inicio.
   - Tarjetas, campos y bloques de lectura: borde suave, sin sombra.
   - Un color dueño por zona en vez de rotar los 4 en todo.
   ============================================================= */
:root { --soft-line: 2px solid color-mix(in srgb, var(--ink) 16%, transparent); }

/* Tarjetas de producto: fondo neutro (la foto pone el color), borde suave */
.card { border: var(--soft-line); transition: border-color .2s ease, transform .2s ease; }
@media (hover: hover) { .card:hover { border-color: var(--ink); transform: translateY(-3px); } }
.card-media { background: var(--cream-deep); border-bottom: var(--soft-line); }
.pd-main { border: var(--soft-line); background: var(--cream-deep); }
.pd-thumb { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }

/* Bloques de lectura sin sombra */
.cluster { border: var(--soft-line); box-shadow: none; }
.cluster[open] { border-color: var(--ink); }
.cluster[open] > summary { border-bottom: var(--soft-line); }
.co-summary, .track-card, .cta-box { box-shadow: none; }
.pd-facts, .pd-more, .review, .review-form, .tool-panel, .qty-row { border: var(--soft-line); }
.pd-more[open] > summary { border-bottom: var(--soft-line); }

/* Campos de formulario: borde suave, se marca al enfocar */
.field input, .field select, .review-form input:not([type=radio]):not([type=file]), .review-form textarea {
  border-color: color-mix(in srgb, var(--ink) 30%, transparent) !important;
}
.field input:focus, .field select:focus, .review-form input:focus, .review-form textarea:focus { border-color: var(--ink) !important; }

/* Opciones de cantidad: suaves; la elegida sí lleva el tratamiento fuerte */

/* Botones secundarios: borde negro (se mantiene) pero sin sombra */
.btn-ghost, .tool-btn { box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--cream-deep); }


/* ¿Por qué comprar?: en fila, separadas por líneas, sin cajas */
@media (min-width: 1024px) {
  .why-list { gap: 0; }
  .why-list li { padding: 4px 28px; border-left: 2px dashed color-mix(in srgb, var(--cream) 22%, transparent); }
  .why-list li:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 680px) and (max-width: 1023px) { .why-list { gap: 28px 36px; } }
@media (max-width: 679px) { .why-list { gap: 22px; } .why-list li + li { padding-top: 22px; border-top: 2px dashed color-mix(in srgb, var(--cream) 22%, transparent); } }

/* ---------- Detrás de Bacanito (aparece cuando subes tu foto en Textos) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 768px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); } }
.about-photo { position: relative; margin: 0 auto; max-width: 420px; width: 100%; padding: 10px 10px 44px; background: #fff; border: var(--line); border-radius: 6px; transform: rotate(-2.5deg); box-shadow: var(--shadow-s); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-weight: 700; font-size: .95rem; }
.about-photo::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(3deg); background: color-mix(in srgb, var(--yellow) 75%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.about-text p { font-size: 1.1rem; max-width: 52ch; }
.about-sign { font-family: var(--f-title); font-weight: 700; font-size: 1.4rem; color: var(--orange); margin-top: 8px; }

/* ---------- Pie de página: medios de pago y sello SSL ---------- */
.footer-pay { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-block: 22px; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.footer-pay .footer-h { margin-bottom: 10px; }
.ssl-badge { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 2px solid var(--green); border-radius: var(--r-md); background: color-mix(in srgb, var(--green) 12%, var(--cream)); }
.ssl-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; }
.ssl-badge p { margin: 0; line-height: 1.3; }
.ssl-badge strong { display: block; font-size: .95rem; }
.ssl-badge span:not(.ssl-ic) { display: block; font-size: .82rem; color: var(--muted); }
@media (max-width: 767px) {
  .footer-pay { flex-direction: column; align-items: center; text-align: center; }
  .ssl-badge { text-align: left; }
}

/* Enlaces dentro de las razones (fondo oscuro) */
.why-list p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; transition: color .15s ease; }
.why-list p a:hover, .why-list p a:focus-visible, .why-list p a:active { color: var(--yellow); }

/* ---------- Checkout: etiquetas de descuento / cargo ---------- */
.pay-tag { display: inline-block; margin-left: 8px; padding: 0 .55em; border-radius: 999px; font-style: normal; font-size: .75rem; font-weight: 700; line-height: 1.5; }
.pay-tag-save { background: var(--green); color: #fff; }
.pay-tag-extra { background: var(--yellow); color: var(--ink); }
.co-discount dt, .co-discount dd { color: #04865a !important; font-weight: 700; }
.co-paynote { font-weight: 700; padding: 8px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--green) 14%, var(--cream)); }
.cart-pay-note { font-weight: 700; color: #04865a; }
.footer-pay .footer-h { font-family: var(--f-title); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }


/* ---------- Checkout: tres formas de pago desplegables ---------- */
.pay-acc { display: grid; gap: 10px; }
.pay-card { border: var(--soft-line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; transition: border-color .2s ease; }
.pay-card:focus-within { box-shadow: 0 0 0 3px var(--purple); }
.pay-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.pay-head input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay-title { flex: 1; }
.pay-head .drop-ic { margin-left: 0; }
.pay-card.is-selected { border: var(--line); }
.pay-card.is-selected .pay-head { background: var(--yellow); }

.pay-body { display: none; padding: 14px 16px; border-top: var(--line); }
.pay-card.is-open .pay-body { display: block; }
.pay-body p { margin: 0; }
.pay-body p + .pay-account { margin-top: 10px; }
.pay-account { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--cream); border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); font: 700 .95rem/1.7 var(--f-text); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Pie de página: medios de pago en 3 grupos ---------- */
.footer-paydrop { flex: 1 1 560px; min-width: 0; }
.pay-clusters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; padding-top: 10px; }
.pay-cluster > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; font-weight: 700; padding: 6px 0; }
.pay-cluster > summary::-webkit-details-marker { display: none; }
.pay-cluster-note { margin: 4px 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
@media (min-width: 768px) {
  .pay-cluster > summary { pointer-events: none; cursor: default; padding-top: 0; font-family: var(--f-title); font-size: 1.1rem; }
}
@media (max-width: 767px) {
  .footer-grid { padding-bottom: 0; }
  .footer-pay { padding-top: 0; border-top: 0; gap: 0; }
  .footer-paydrop { flex: none; width: 100%; }
  .pay-clusters { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 0 14px; text-align: left; }
  .pay-cluster { border: var(--soft-line); border-radius: var(--r-md); background: transparent; padding: 0 14px; }
  .pay-cluster[open] { padding-bottom: 12px; border-color: var(--ink); }
  .pay-cluster > summary { padding: 12px 0; }
  .pay-cluster .drop-ic { width: 30px; height: 30px; margin-left: auto; }
  .footer-pay .ssl-badge { margin: 8px 0 18px; }
}

/* ---------- Producto: línea de tiempo de entrega (estimado) ---------- */
.pd-timeline { margin-top: 22px; padding: 16px 14px 14px; border: var(--soft-line); border-radius: var(--r-md); background: var(--paper); }
.tl-title { font-size: 1.15rem; margin: 0 0 16px; text-align: center; }
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.tl-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 19px; border-top: 3px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.tl-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.tl-steps strong { font-size: .85rem; line-height: 1.2; }
.tl-date { font-size: .82rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.tl-steps li:last-child .tl-date { color: var(--ink); }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border: var(--line); border-radius: 50%; background: var(--paper); }
.tl-dot-on { background: var(--orange); color: #fff; }
.tl-steps li:last-child .tl-dot { background: var(--yellow); }
.tl-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 479px) { .tl-steps strong { font-size: .76rem; } .tl-date { font-size: .76rem; } .pd-timeline { padding-inline: 8px; } }
.co-totals dd { white-space: nowrap; }


/* ---------- Producto: precio, ahorro y caja de compra ---------- */
.pd-pricebox { margin-bottom: 14px; }
.pd-price { margin-bottom: 4px; align-items: center; }
.pd-off { display: inline-block; padding: .1em .7em; border: var(--line); border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.5; }
.pd-unit { margin: 0 0 4px; font-weight: 700; color: var(--muted); }
.pd-deal { margin: 6px 0 0; font-weight: 700; color: #04865a; }
.pd-buybox { padding: 18px; border: var(--soft-line); border-radius: var(--r-lg); background: var(--paper); }
.pd-buybox .opt { margin-bottom: 16px; }
.pd-buybox .qty-row { padding: 0; border: 0; border-radius: 0; background: none; margin-bottom: 6px; }
.qty-label { font-size: 1.05rem; }
.pd-buybox .pd-stock { margin-bottom: 0; }
.pd-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pd-actions.is-single { grid-template-columns: minmax(0, 1fr); }
.pd-addbtn { background: var(--yellow); color: var(--ink); }
.pd-addbtn:hover { background: color-mix(in srgb, var(--yellow) 85%, var(--orange)); }
@media (max-width: 379px) { .pd-actions { gap: 8px; } .pd-actions .btn { padding-inline: .7em; } .pd-buybox { padding: 14px; } }


/* ---------- Pie de página: redes sociales + sello SSL (columna derecha) ---------- */
.footer-side { flex: 0 0 auto; display: grid; gap: 18px; justify-items: start; }
.footer-social .footer-h { margin: 0 0 10px; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: grid; place-items: center; width: 46px; height: 46px; border: var(--line); border-radius: 50%;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s); text-decoration: none;
  transition: background-color .15s ease, transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent;
}
.social-link:hover { background: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.social-link:active { transform: translateY(2px); box-shadow: var(--shadow-s); }
.footer-side .ssl-badge { margin: 0; }

/* Tablet: medios de pago arriba a todo el ancho; abajo, redes a la izquierda y SSL a la derecha */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-paydrop { flex: 1 1 100%; }
  .footer-side { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
}
/* PC: medios de pago a la izquierda, redes y SSL a la derecha */
@media (min-width: 1024px) { .footer-paydrop { flex: 1 1 0; } }
/* Celular: todo centrado y en una sola columna */
@media (max-width: 767px) {
  .footer-side { width: 100%; justify-items: center; gap: 16px; padding-top: 6px; }
  .footer-social { text-align: center; }
  .social-list { justify-content: center; }
  .footer-pay .footer-side .ssl-badge { margin: 0 0 18px; }
}
.social-link:focus-visible { border-radius: 50%; }
@media (min-width: 768px) { .footer-paydrop > summary { line-height: 1.2; } }


/* =============================================================
   ENCABEZADO FLOTANTE
   PC: dos píldoras de vidrio (logo + menú · buscador + carrito).
   Celular: una sola barra (logo · lupa · carrito · menú).
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 50; padding-block: 14px 8px; pointer-events: none; }
.header-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-bar > * { pointer-events: auto; }
.hpill {
  display: flex; align-items: center; min-width: 0; height: 64px; border-radius: 999px;
  background: rgba(255, 255, 255, .76); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 0 0 1px rgba(5, 6, 8, .06), 0 2px 6px rgba(5, 6, 8, .04), 0 14px 32px -12px rgba(5, 6, 8, .24);
}
.hpill-main { padding: 0 10px 0 22px; gap: 22px; }
.hpill-tools { padding: 0 9px 0 8px; gap: 6px; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }

.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: .5em; height: 46px; padding: 0 1.15em; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nav a:hover { background: rgba(5, 6, 8, .06); }
.nav a:active { transform: scale(.96); }
.nav a[aria-current="page"] { color: #fff; background: var(--orange); box-shadow: 0 1px 2px rgba(5, 6, 8, .12); }

.hsearch { position: relative; display: flex; align-items: center; width: clamp(210px, 21vw, 300px); height: 46px; border-radius: 999px; background: rgba(5, 6, 8, .05); transition: background-color .2s ease, box-shadow .2s ease; }
.hsearch .ic { position: absolute; left: 15px; pointer-events: none; }
.hsearch input { width: 100%; height: 100%; padding: 0 16px 0 44px; border: 0; background: none; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.hsearch input::placeholder { color: color-mix(in srgb, var(--ink) 55%, transparent); font-weight: 500; }
.hsearch input:focus { outline: none; }
.hsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch:focus-within { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 35%, transparent), var(--shadow-s); }
.hpill .search-btn, .hpill .menu-btn { display: none; }   /* solo tablet/celular */

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: var(--shadow-s); color: var(--ink);
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.icon-btn:hover { background: var(--cream-deep); }
.icon-btn:active { transform: scale(.93); }
.hpill .icon-btn { background: transparent; box-shadow: none; }
.hpill .icon-btn:hover { background: rgba(5, 6, 8, .06); }
.hpill .cart-btn, .cart-btn { color: #fff; background: var(--orange); box-shadow: 0 1px 2px rgba(5, 6, 8, .14); }
.hpill .cart-btn:hover, .cart-btn:hover { background: color-mix(in srgb, var(--orange) 90%, var(--ink)); }
.cart-btn .ic { stroke-width: 1.8; }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; background: #ff3b30; color: #fff;
  box-shadow: 0 0 0 2.5px #fff, 0 4px 8px -2px rgba(255, 59, 48, .6); font-size: .72rem; font-weight: 700; line-height: 1;
}
.cart-count.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.country-pick { position: relative; }
.country-pick summary { list-style: none; cursor: pointer; font-size: 1.35rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(5, 6, 8, .05); }
.country-pick summary::-webkit-details-marker { display: none; }
.country-pick ul { position: absolute; right: 0; top: 56px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: var(--r-md); min-width: 190px; box-shadow: var(--shadow-l); }
.country-pick a { display: block; padding: .55em .8em; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.country-pick a:hover { background: var(--cream-deep); }

/* Tablet y celular: el buscador se abre con la lupa */
@media (max-width: 1179px) {
  .hpill-tools { position: relative; }
  .hpill .search-btn { display: inline-grid; }
  .hsearch {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; width: min(440px, calc(100vw - 2 * var(--gutter))); height: 54px;
    background: #fff; box-shadow: var(--shadow-l);
  }
  .site-header.is-search .hsearch { display: flex; animation: pop .18s ease; }
  .hsearch input { font-size: 1rem; }
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Celular: una sola barra */
@media (max-width: 899px) {
  :root { --header-h: 80px; }
  .site-header { padding-block: 10px 6px; }
  .header-bar {
    width: auto; max-width: none; margin-inline: var(--gutter); padding: 0 12px 0 16px; height: 64px; gap: 8px;
    border-radius: 26px; background: rgba(255, 255, 255, .76); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
    box-shadow: 0 0 0 1px rgba(5, 6, 8, .06), 0 2px 6px rgba(5, 6, 8, .04), 0 14px 32px -12px rgba(5, 6, 8, .24);
  }
  .hpill { height: auto; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .hpill-main { flex: 1; }
  .hpill-tools { position: static; gap: 4px; }
  .nav { display: none; }
  .hpill .menu-btn { display: inline-grid; }
  /* Celular: carrito sin fondo, ícono más grueso y oscuro; la bolita roja se queda */
  .hpill .cart-btn { background: none; box-shadow: none; color: var(--ink); }
  .hpill .cart-btn:hover { background: rgba(5, 6, 8, .06); }
  .logo img { height: 42px; }
  .hsearch { left: 0; right: 0; width: auto; }
}
@media (max-width: 379px) { .logo img { height: 38px; } .icon-btn { width: 42px; height: 42px; } }

/* =============================================================
   INICIO: banner en dos columnas (texto · producto)
   ============================================================= */
.hero { padding-block: clamp(20px, 3.5vw, 48px) clamp(40px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 4.55vw, 3.85rem); line-height: 1; letter-spacing: -.025em; margin-bottom: .38em; color: var(--ink); text-wrap: wrap; }   /* «Cosas bacanas para» en una línea y «gente bacana» en la siguiente */
/* «gente bacana» en naranja con un trazo a mano debajo (en home.json se marca con *asteriscos*) */
.hl {
  color: var(--orange); padding-bottom: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 45 4, 95 17, 150 9 S 240 4 297 11' fill='none' stroke='%23fc5d0c' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .3em;
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; max-width: 46ch; margin-bottom: 1.7em; color: color-mix(in srgb, var(--ink) 80%, #fff); }
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 56px; padding-inline: 1.5em; gap: .6em; }
.btn-soft { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px rgba(5, 6, 8, .1), var(--shadow-s); }
.btn-soft .ic { color: var(--green); }
.btn-soft:hover { background: #fff; box-shadow: 0 0 0 1px rgba(5, 6, 8, .14), var(--shadow-m); }

.hero-media-empty { display: grid; place-items: center; }
.hero-media-empty img { width: 42%; height: auto; }

@media (max-width: 767px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-media { order: -1; max-width: 560px; }   /* celular: primero las imágenes, luego el texto */
}
@media (max-width: 519px) { .hero-actions .btn { flex: 1 1 auto; padding-inline: 1.1em; } }

/* =============================================================
   ESTILO MODERNO (capa final): limpio, tipo iPhone.
   Sin bordes negros gruesos ni sombras duras; superficies claras con
   sombras suaves, esquinas amplias y los colores de marca de acento.
   ============================================================= */
:root { --soft-line: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; }

/* Botones */
.btn {
  border: 0; background: #fff; box-shadow: var(--shadow-s); letter-spacing: .005em;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); box-shadow: var(--shadow-s); }
.btn:disabled { opacity: .5; transform: none; box-shadow: var(--shadow-s); }
.btn-primary { color: #fff; background: var(--orange); box-shadow: 0 1px 2px rgba(5, 6, 8, .14), 0 6px 14px -8px rgba(252, 93, 12, .5); }
.btn-primary:hover { background: color-mix(in srgb, var(--orange) 92%, var(--ink)); box-shadow: 0 1px 2px rgba(5, 6, 8, .14), 0 10px 18px -10px rgba(252, 93, 12, .55); }
.btn-wa { color: #fff; background: var(--green); box-shadow: 0 1px 2px rgba(5, 6, 8, .14), 0 6px 14px -8px rgba(5, 192, 124, .5); }
.btn-wa:hover { background: color-mix(in srgb, var(--green) 92%, var(--ink)); }
.btn-ghost { background: #fff; box-shadow: inset 0 0 0 1px rgba(5, 6, 8, .12), var(--shadow-s); }
.btn-ghost:hover { background: var(--cream-deep); box-shadow: inset 0 0 0 1px rgba(5, 6, 8, .12), var(--shadow-s); }
.pd-addbtn { color: var(--ink); background: var(--yellow); box-shadow: 0 1px 2px rgba(5, 6, 8, .14); }
.pd-addbtn:hover { background: color-mix(in srgb, var(--yellow) 90%, var(--orange)); }
.link-arrow { border-bottom-width: 2px; }


/* Tarjetas de producto */
.card { border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-s); }  /* el aro fino viene en --shadow-s */
@media (hover: hover) { .card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-m); } }
.card-media { background: var(--cream-deep); border-bottom: 0; }
.card-action { border: 0; background: var(--yellow); box-shadow: 0 1px 2px rgba(5, 6, 8, .14); }
.card-action:hover { background: var(--orange); color: #fff; }
.card-action:active { transform: scale(.92); box-shadow: none; }
.card-action.is-off { background: var(--cream-deep); box-shadow: none; opacity: .6; }
.card-swatches li { border: 1px solid rgba(5, 6, 8, .22); }
.tag { border: 0; box-shadow: 0 6px 12px -6px rgba(5, 6, 8, .45); }
.card-deal { border-radius: 10px; }

/* Producto */
.pd-main { border: 0; background: var(--cream-deep); box-shadow: var(--shadow-m); }
.pd-thumb { border: 1px solid rgba(5, 6, 8, .14); }
.pd-thumb[aria-pressed="true"] { outline-color: var(--orange); }
.pd-off { border: 0; }
.swatch { border: 1px solid rgba(5, 6, 8, .22); box-shadow: inset 0 0 0 3px #fff; }
.swatch[aria-pressed="true"] { outline-color: var(--orange); }
.pd-buybox, .pd-timeline { background: #fff; border: 0; box-shadow: var(--shadow-s); }
.pd-more { background: #fff; border: 0; box-shadow: var(--shadow-s); }
.pd-more[open] > summary { background: color-mix(in srgb, var(--yellow) 28%, #fff); border-bottom: var(--line); }
.pd-facts { border: 0; }
.pd-highlights .ic { border: 0; color: #fff; }
.pd-stock.is-low::before { border: 0; }
.qty, .qty-row { border: 1px solid rgba(5, 6, 8, .14); }
.pd-buybox .qty-row { border: 0; }
.tl-dot { border: 0; box-shadow: var(--shadow-s); }
.tl-steps::before { border-top-width: 2px; }

/* Formularios */
.field input, .field select, .review-form input:not([type=radio]):not([type=file]), .review-form textarea, .track-form input, .search input {
  border: 1px solid rgba(5, 6, 8, .16) !important; border-radius: var(--r-sm); background: #fff;
}
.search input, .track-form input { border-radius: 999px; box-shadow: var(--shadow-s); }
.field input:focus, .field select:focus, .review-form input:focus, .review-form textarea:focus, .search input:focus, .track-form input:focus {
  border-color: var(--purple) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 20%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--orange) !important; }
.tool-btn { border: 0; background: #fff; box-shadow: var(--shadow-s); }
.tool-btn[aria-expanded="true"] { background: var(--yellow); }
.tool-btn.is-set { background: var(--ink); }
.tool-panel { border: 0; background: #fff; box-shadow: var(--shadow-s); }
.chip { border: 1px solid rgba(5, 6, 8, .14); background: #fff; }
.chip:hover { background: color-mix(in srgb, var(--yellow) 35%, #fff); }
.chip[aria-pressed="true"] { border-color: var(--ink); }

/* Pago */
.pay-card { border: 1px solid rgba(5, 6, 8, .12); border-radius: var(--r-md); background: #fff; }
.pay-card.is-selected { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.pay-card.is-selected .pay-head { background: color-mix(in srgb, var(--yellow) 28%, #fff); }
.pay-body { border-top: 1px solid rgba(5, 6, 8, .08); }
.pay-account { border: 1px dashed rgba(5, 6, 8, .25); background: var(--cream); }
.pay-card:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 30%, transparent); }
.pay-card.is-selected:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 30%, transparent); }

/* Bloques de lectura */
.co-summary, .track-card, .review, .review-form { background: #fff; border: 0; box-shadow: var(--shadow-s); }
.co-summary { box-shadow: var(--shadow-m); }
.cta-box { border: 0; color: var(--ink); background: #fff; box-shadow: var(--shadow-s); }
.cta-box p { color: color-mix(in srgb, var(--ink) 78%, #fff); }
.cluster { background: #fff; border: 0; box-shadow: var(--shadow-s); }
.cluster[open] { box-shadow: var(--shadow-m); }
.cluster[open] > summary { background: color-mix(in srgb, var(--yellow) 28%, #fff); border-bottom: var(--line); }
.muted-count { border: 0; }
.faq { border-bottom: 1px solid rgba(5, 6, 8, .1); }
.faq-icon, .drop-ic { border: 0; background: #fff; box-shadow: var(--shadow-s); }
.track-pill { border: 0; }
.track-steps .dot { border: 0; box-shadow: var(--shadow-s); }
.review-avatar { border: 0; }
.review-photo img, .line-img { border: 0; }
.done-badge { border: 0; box-shadow: var(--shadow-m); }
.alert { border: 0; box-shadow: var(--shadow-s); }
.about-photo { border: 0; box-shadow: var(--shadow-m); }

/* Carrito y menú lateral */
.overlay { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sheet { background: #fff; box-shadow: var(--shadow-l); }
.sheet-right { border-left: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); }
.sheet-head { border-bottom: 1px solid rgba(5, 6, 8, .08); }
.cart-foot { border-top: 1px solid rgba(5, 6, 8, .08); background: var(--cream); }
.line { border-bottom: 1px solid rgba(5, 6, 8, .08); }
.sheet-menu { padding-bottom: 24px; }
.sheet-menu .btn { width: auto; margin: auto 20px 0; }
.sheet-nav a { display: flex; align-items: center; gap: 14px; padding: .7em .9em; border-radius: var(--r-md); font-size: 1.2rem; }
.sheet-nav a:hover { background: rgba(5, 6, 8, .05); }
.sheet-nav a[aria-current="page"] { color: #fff; background: var(--orange); }

/* Pie de página */
.site-footer { border-top: 0; background: var(--cream-deep); }
.footer-legal, .footer-pay { border-top: 1px solid rgba(5, 6, 8, .1); }
@media (max-width: 767px) { .footer-drop { border-top: 1px solid rgba(5, 6, 8, .1); } .footer-legal, .footer-pay { border-top: 0; } }
.social-link { border: 0; background: #fff; box-shadow: var(--shadow-s); }
.social-link:hover { background: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.social-link:active { transform: scale(.94); box-shadow: var(--shadow-s); }
.ssl-badge { border-width: 1px; }
/* ¿Por qué comprar?: separadores finos y sólidos (no punteados) */
@media (min-width: 1024px) { .why-list li { border-left: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); } .why-list li:first-child { border-left: 0; } }
@media (max-width: 679px) { .why-list li + li { border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); } }


/* =============================================================
   v4 · franja en movimiento, flechas finas, puntos, buscador en vivo,
   reseñas y desplegables con flecha
   ============================================================= */

/* ---------- Franja superior: naranja, el texto se desplaza ---------- */
.announce { background: var(--orange); color: #fff; font-size: .875rem; overflow: hidden; }
.announce-track { display: flex; width: max-content; height: 36px; align-items: center; animation: band 46s linear infinite; }
.announce-set { display: flex; flex: none; align-items: center; }
.announce-item { display: flex; align-items: center; gap: 1.6em; margin: 0; padding-left: 1.6em; white-space: nowrap; font-weight: 700; }
.announce-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .75); }

/* ---------- Flechas finas (sin círculo ni fondo) ---------- */
.chev {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3; display: grid; place-items: center;
  width: 52px; height: 72px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
  filter: drop-shadow(0 1px 5px rgba(5, 6, 8, .55)); -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, opacity .2s ease;
}
.chev .ic { stroke-width: 1.6; }
.chev:hover { transform: scale(1.12); }
.chev:active { transform: scale(.92); }
.chev-prev { left: 4px; }
.chev-next { right: 4px; }
.chev:focus-visible { outline-offset: -6px; border-radius: 14px; }
.chev-dark { color: var(--ink); filter: drop-shadow(0 0 7px rgba(255, 255, 255, .95)) drop-shadow(0 0 2px rgba(255, 255, 255, .9)); }
@media (max-width: 899px) { .chev { width: 42px; height: 60px; } .chev .ic { width: 26px; height: 26px; } }

/* ---------- Puntos (debajo de la imagen) ---------- */
.hs-dots, .pd-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(5, 6, 8, .2); cursor: pointer; transition: width .25s ease, background-color .25s ease; -webkit-tap-highlight-color: transparent; }
.dot::before { content: ""; position: absolute; inset: -9px -5px; }   /* zona de toque más grande */
.dot:hover { background: rgba(5, 6, 8, .35); }
.dot.is-on { width: 24px; background: var(--orange); }

/* ---------- Banner del inicio ---------- */
.hero-media { position: relative; width: 100%; }
.hs-frame { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow-l); isolation: isolate; }
.hs-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; transition: opacity .26s ease; }
.hs-track.is-fading { opacity: 0; }   /* al dar la vuelta (último → primero) se desvanece en vez de rebobinar */
.hs-track::-webkit-scrollbar { display: none; }
.hs-track:focus-visible { outline-offset: -5px; border-radius: var(--r-xl); }
.hs-slide { flex: 0 0 100%; display: block; scroll-snap-align: start; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
@media (max-width: 767px) { .hero-media { max-width: 560px; } }

/* ---------- Galería del producto: flechas finas y puntos abajo ---------- */
.pd-main .chev-prev { left: 2px; }
.pd-main .chev-next { right: 2px; }

/* ---------- Carruseles (destacados y reseñas): flechas solo con mouse ---------- */
.car-wrap { position: relative; }
.car-wrap .chev { display: none; top: 36%; }
@media (hover: hover) and (min-width: 900px) { .car-wrap .chev { display: grid; } .car-wrap .chev[hidden] { display: none; } }
.rv-track + .chev, .rv-track ~ .chev { top: 50%; }

/* ---------- Reseñas de la portada ---------- */
.section-rv { padding-top: clamp(8px, 2vw, 24px); }
.rv-track { --rv-cols: 3; grid-auto-columns: calc((100% - (var(--rv-cols) - 1) * var(--gap)) / var(--rv-cols)); }
@media (max-width: 1023px) { .rv-track { --rv-cols: 2; } }
@media (max-width: 679px) { .rv-track { grid-auto-columns: 82%; } }
.rv { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-s); scroll-snap-align: start; }
.rv-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cream-deep); -webkit-user-drag: none; }
.rv-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 20px 20px; }
.rv-stars { display: inline-flex; gap: 2px; }
.rv-star { fill: var(--yellow); }
.rv-star.is-off { fill: rgba(5, 6, 8, .14); }
.rv-text { margin: 0; flex: 1; font-weight: 600; line-height: 1.5; }
.rv-who { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rv-who p { display: grid; margin: 0; line-height: 1.25; }
.rv-who strong { font-weight: 700; }
.rv-who span { font-size: .88rem; color: var(--muted); }
.rv-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 14%, #fff); color: var(--orange); font-family: var(--f-title); font-weight: 700; font-size: 1.15rem; }
.carousel .rv { pointer-events: auto; }
.carousel.is-grabbing .rv { pointer-events: none; }

/* ---------- Buscador del encabezado: resultados en vivo ---------- */
.hsuggest {
  position: absolute; top: calc(100% + 18px); right: -9px; z-index: 60; width: 420px; max-width: calc(100vw - 2 * var(--gutter));
  max-height: min(72vh, 480px); overflow-y: auto; padding: 8px; border-radius: 24px;
  background: rgba(255, 255, 255, .975); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: 0 0 0 1px rgba(5, 6, 8, .06), var(--shadow-l); animation: pop .16s ease; overscroll-behavior: contain;
}
.hsuggest[hidden] { display: none; }
.hs-opt { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hs-opt img { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--cream-deep); }
.hs-opt-main { display: grid; min-width: 0; line-height: 1.3; }
.hs-opt-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-opt-name mark { background: color-mix(in srgb, var(--yellow) 55%, transparent); color: inherit; border-radius: 4px; padding: 0 1px; }
.hs-opt-meta { font-size: .86rem; font-weight: 600; color: var(--muted); }
.hs-opt:hover, .hs-opt.is-active { background: rgba(5, 6, 8, .06); }
.hs-all { justify-content: center; gap: 8px; margin-top: 4px; padding: 12px; color: var(--orange); font-weight: 700; }
.hs-all .ic, .hs-all svg { flex: none; }
.hs-empty { margin: 0; padding: 14px 12px 6px; font-weight: 600; color: var(--muted); text-align: center; }
@media (max-width: 1179px) { .hsuggest { left: 0; right: 0; width: auto; top: calc(100% + 8px); } }

/* ---------- Desplegables: flecha abajo; abierto, flecha arriba con fondo de color ---------- */
.drop-ic .ic, .faq-icon .ic { transition: transform .25s ease; }
.drop-ic, .faq-icon { transition: background-color .2s ease, color .2s ease; }
details[open] > summary .drop-ic, .faq[open] .faq-icon, .pay-card.is-open .drop-ic { background: var(--orange); color: #fff; box-shadow: none; }
details[open] > summary .drop-ic .ic, .faq[open] .faq-icon .ic, .pay-card.is-open .drop-ic .ic { transform: rotate(180deg); }
.drop-ic .ic, .faq-icon .ic { stroke-width: 2.4; }

/* ---------- Vidrio esmerilado, con medida ---------- */
.sheet { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); }
.cart-foot { background: rgba(252, 239, 221, .55); }
.toast { background: rgba(5, 6, 8, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }


/* =============================================================
   v5 · reseñas enlazadas, apilado de «¿Por qué comprar?» en celular
   ============================================================= */
@media (max-width: 679px) {
  .why-list { display: block; }
  .why-list li {
    position: sticky; top: calc(var(--header-h) + 6px + var(--i, 0) * 14px); margin-bottom: 14px; padding: 18px 18px 20px;
    border-radius: 22px; background: color-mix(in srgb, var(--ink) 84%, #fff);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 -8px 20px -10px rgba(0, 0, 0, .7);
  }
  .why-list li + li { padding-top: 18px; border-top: 0; }
  .why-list li:last-child { margin-bottom: 0; }
}
a.rv { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { a.rv:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); } }
.rv-prod { margin: 0; font-size: .82rem; font-weight: 700; color: var(--orange); }
.review { scroll-margin-top: calc(var(--top-h) + 20px); }
.review:target { box-shadow: 0 0 0 2px var(--orange), var(--shadow-m); animation: rvflash 2.4s ease; }
@keyframes rvflash { 0%, 55% { background: color-mix(in srgb, var(--yellow) 22%, #fff); } 100% { background: #fff; } }


/* =============================================================
   v6 · pie de página en celular (PC y tablet no cambian)
   ============================================================= */
@media (max-width: 767px) {
  .site-footer .drop-ic, .site-footer details[open] > summary .drop-ic { background: none; box-shadow: none; color: var(--ink); }
  .site-footer details[open] > summary .drop-ic { color: var(--orange); }
  .footer-paydrop { border-bottom: 1px solid rgba(5, 6, 8, .1); }
  .footer-side .ssl-badge { order: -1; }
}


/* =============================================================
   v7 · datos sobre las imágenes del banner (solo en el inicio)
   ============================================================= */
.hs-slide { position: relative; }
.hs-chip { position: absolute; top: 14px; z-index: 1; padding: .3em .85em; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.hs-chip small { font-size: .75em; font-weight: 600; opacity: .75; }
.hs-off { left: 14px; color: #fff; background: var(--orange); box-shadow: 0 1px 2px rgba(5, 6, 8, .2); }
.hs-price { right: 14px; color: var(--ink); background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(14px) saturate(1.7); backdrop-filter: blur(14px) saturate(1.7); box-shadow: 0 0 0 1px rgba(5, 6, 8, .06), 0 1px 3px rgba(5, 6, 8, .12); }
.hs-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 72px 24px 22px; color: #fff;
  font-family: var(--f-title); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.15; letter-spacing: -.01em;
  background: linear-gradient(to top, rgba(5, 6, 8, .78) 0%, rgba(5, 6, 8, .5) 50%, rgba(5, 6, 8, 0) 100%);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  text-shadow: 0 1px 8px rgba(5, 6, 8, .45);
}
@media (max-width: 767px) { .hs-chip { top: 12px; font-size: .88rem; } .hs-off { left: 12px; } .hs-price { right: 12px; } .hs-cap { padding: 64px 18px 18px; } }

@media (max-width: 767px) { .hs-frame { aspect-ratio: 4 / 5; } }   /* celular: imagen alta (4:5); PC y tablet: cuadrada */
