/* ═══════════════════════════════════════════════════════════
   BROWORKSHOP · Estilos base (colores, tipografía, botones, tarjetas)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Texto */
  --navy: #0f1e45;
  --ink: #26355f;
  --muted: #5d6a8a;
  --faint: #95a0bb;

  /* Superficies */
  --bg: #f5f8ff;
  --surface: #ffffff;
  --line: #e2e8f6;
  --line-strong: #cdd6ec;

  /* Azul de marca */
  --blue: #2f5bea;
  --blue-600: #2449cf;
  --blue-400: #5c82ff;
  --blue-100: #e3ebff;

  /* Pasteles */
  --sky: #ddebff;
  --lav: #eae5ff;
  --mint: #d9f4ea;
  --peach: #ffe6d9;
  --butter: #fff1c7;
  --rose: #ffe1ea;
  --sky-ink: #2449cf;
  --lav-ink: #5b3fd0;
  --mint-ink: #127a58;
  --peach-ink: #a8410f;
  --butter-ink: #7a5a00;
  --rose-ink: #b8284f;

  /* Colombia */
  --col-yellow: #fcd116;
  --col-blue: #003893;
  --col-red: #ce1126;

  /* Estados */
  --sale: #d12f55;
  --ok: #127a58;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 69, .05), 0 2px 8px rgba(15, 30, 69, .04);
  --shadow: 0 2px 4px rgba(15, 30, 69, .04), 0 14px 32px -12px rgba(36, 73, 207, .24);
  --shadow-lg: 0 4px 10px rgba(15, 30, 69, .05), 0 32px 60px -22px rgba(36, 73, 207, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

.tone-sky { --tone: var(--sky); --tone-ink: var(--sky-ink); }
.tone-lav { --tone: var(--lav); --tone-ink: var(--lav-ink); }
.tone-mint { --tone: var(--mint); --tone-ink: var(--mint-ink); }
.tone-peach { --tone: var(--peach); --tone-ink: var(--peach-ink); }
.tone-butter { --tone: var(--butter); --tone-ink: var(--butter-ink); }
.tone-rose { --tone: var(--rose); --tone-ink: var(--rose-ink); }

/* ───────────── Reset ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--butter); color: var(--navy); }
:focus-visible { outline: 3px solid rgba(47, 91, 234, .5); outline-offset: 2px; border-radius: 8px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.only-sm { display: none !important; }
@media (max-width: 860px) {
  .only-sm { display: inline-grid !important; }
  .hide-sm { display: none !important; }
}

/* ───────────── Tipografía de secciones ───────────── */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head > div { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .45em .9em; border-radius: 999px;
  background: var(--blue-100); color: var(--blue-600);
  font: 800 .74rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--col-yellow); box-shadow: 0 0 0 0 rgba(252, 209, 22, .6); animation: pulse 2.2s infinite; }
.eyebrow-sm { margin: 18px 0 10px; color: var(--muted); font: 800 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; margin-top: .45em; }
.h1 em, .h2 em {
  position: relative; isolation: isolate; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.015em;
  color: var(--blue);
}
.h1 em::after, .h2 em::after {
  content: ''; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .02em; height: .34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c32-7 64-7 100-2.5S168 12 197 5' fill='none' stroke='%23FCD116' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 0 0 0);
}
.is-in em::after, .is-active em::after { animation: draw 1s .35s var(--ease) both; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.65; max-width: 58ch; margin-top: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow .i { transition: transform .35s var(--spring); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ───────────── Pestañas (con indicador deslizante) ───────────── */
.tabs { position: relative; display: inline-flex; gap: 2px; max-width: 100%; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; flex: none; padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .3s; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs__ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); border-radius: 999px; background: var(--navy); box-shadow: 0 8px 16px -8px rgba(15, 30, 69, .6); transform: translateX(var(--x, 5px)); transition: transform .55s var(--spring), width .55s var(--spring); }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* ───────────── Migas de pan ───────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--blue); }
.crumbs .i { width: 14px; height: 14px; }
.crumbs [data-crumb-extra] { display: inline-flex; align-items: center; gap: 6px; }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* ───────────── Botones ───────────── */
.btn {
  --fg: var(--navy);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.45em; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg);
  font: 700 .95rem/1.1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .4s var(--spring), box-shadow .3s var(--ease), background-color .25s, background-position .6s var(--ease), color .25s, border-color .25s;
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform .35s var(--spring); }
.btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 3px)); box-shadow: var(--shadow); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(4px); }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.96); transition-duration: .1s; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn:hover::before { transform: translateX(130%); transition: transform .85s var(--ease); }

.btn--primary {
  --fg: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #5c82ff 0%, #2f5bea 40%, #2346c8 70%, #4c75ff 100%) 0 0 / 220% 100%;
  box-shadow: 0 10px 22px -10px rgba(47, 91, 234, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(47, 91, 234, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--dark { --fg: #fff; background: var(--navy); border-color: var(--navy); }
.btn--dark:hover { background: #1b2d60; }
.btn--yellow { --fg: var(--navy); background: var(--col-yellow); border-color: var(--col-yellow); box-shadow: 0 10px 22px -12px rgba(180, 140, 0, .8); }
.btn--yellow:hover { background: #ffdc3d; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface); border-color: var(--blue-400); color: var(--blue); }
.btn--soft { --fg: var(--blue-600); background: var(--blue-100); border-color: transparent; }
.btn--soft:hover { background: var(--sky); }
.btn--white { background: #fff; border-color: #fff; }
.btn--sm { min-height: 38px; padding: .5em 1.05em; font-size: .86rem; }
.btn--lg { min-height: 56px; padding: .9em 1.8em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.ripple { position: absolute; z-index: 0; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: ripple .65s ease-out forwards; }
.btn--primary .ripple, .btn--dark .ripple, .card__add .ripple { background: #fff; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; color: var(--navy); cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, transform .4s var(--spring);
}
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--blue-100); color: var(--blue); transform: translateY(-2px); }
.icon-btn:active { transform: scale(.9); }
.icon-btn--soft { background: var(--blue-100); color: var(--blue-600); }
.icon-btn--soft:hover { background: var(--blue); color: #fff; }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--sm .i { width: 18px; height: 18px; }
.icon-btn.is-on { color: var(--sale); }
.icon-btn.is-on .i { fill: currentColor; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

.badge {
  position: absolute; top: 1px; right: -1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--sale); color: #fff; box-shadow: 0 0 0 2px #fff;
  font: 800 .68rem/19px var(--font); font-style: normal; text-align: center;
}
.is-bump { animation: bump .7s var(--spring); }
.is-bump .badge { animation: badge-pop .7s var(--spring); }
.count-pill { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: .8rem; vertical-align: middle; }

/* Estados de carga y confirmación */
.is-busy { pointer-events: none; }
.btn.is-busy, .card__add.is-busy, .icon-btn.is-busy { color: transparent !important; }
.btn.is-busy::after, .card__add.is-busy::after, .icon-btn.is-busy::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn--ghost.is-busy::after, .btn--soft.is-busy::after, .icon-btn.is-busy::after { border-color: var(--blue); border-right-color: transparent; }
.btn.is-done, .card__add.is-done { color: transparent !important; background: var(--ok) !important; border-color: var(--ok) !important; }
.btn.is-done::after, .card__add.is-done::after {
  content: '✓ ¡Agregado!'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 800; animation: pop .45s var(--spring);
}
.icon-btn.is-done { background: var(--ok) !important; color: #fff !important; }
.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--blue); border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: middle; }

/* ───────────── Formularios ───────────── */
.input, input[type="search"], input[type="email"], input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7em 1em;
  font: inherit; color: var(--navy); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: var(--faint); }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 234, .16); }
input[type="search"]::-webkit-search-cancel-button { display: none; }
select {
  appearance: none; padding-right: 2.6em; cursor: pointer; font-weight: 600;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1e45' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9em center / 16px;
}

.check { display: flex; align-items: flex-start; gap: .65em; cursor: pointer; font-size: .86rem; line-height: 1.45; color: var(--ink); }
.check input {
  appearance: none; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; margin: 0; border-radius: 6px;
  border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.check input::after { content: ''; width: 10px; height: 6px; margin-top: -3px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .3s var(--spring); }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check small { margin-left: auto; color: var(--muted); font-weight: 600; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy); }
.switch input { appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background-color .25s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15, 30, 69, .25); transition: transform .4s var(--spring); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(20px); }

.qty { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--spring); }
.qty button:hover { background: var(--blue-100); color: var(--blue); }
.qty button:active { transform: scale(.86); }
.qty .i { width: 16px; height: 16px; }
.qty output, .qty input { width: 44px; min-height: 0; padding: 0; border: 0; background: transparent; text-align: center; font-weight: 800; color: var(--navy); box-shadow: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 30px; height: 30px; }
.qty--sm output { width: 28px; font-size: .9rem; }

/* ───────────── Chips y etiquetas ───────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 38px; padding: .45em 1em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 .88rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--spring), border-color .2s, color .2s, background-color .2s, box-shadow .3s;
}
.chip .i { width: 16px; height: 16px; }
.chip small { font-weight: 700; opacity: .65; }
.chip:hover { transform: translateY(-2px); border-color: var(--blue-400); color: var(--blue); box-shadow: var(--shadow-sm); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--soft { background: var(--blue-100); border-color: transparent; color: var(--blue-600); }

.tag { display: inline-flex; align-items: center; gap: .3em; padding: .38em .65em; border-radius: 999px; font: 800 .72rem/1 var(--font); letter-spacing: .01em; white-space: nowrap; }
.tag .i { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.tag--sale { background: var(--sale); color: #fff; box-shadow: 0 6px 12px -6px rgba(209, 47, 85, .7); }
.tag--best { background: var(--butter); color: var(--butter-ink); }
.tag--out { background: var(--navy); color: #fff; }
.tag--ok { background: var(--mint); color: var(--mint-ink); }

/* ───────────── Precio ───────────── */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .55em; }
.price__now { color: var(--navy); font-weight: 800; font-size: 1.14rem; letter-spacing: -.015em; }
.price__was { color: var(--muted); font-size: .86rem; font-weight: 500; }
.price--sm .price__now { font-size: .96rem; }
.price--sm .price__was { font-size: .78rem; }
.price--lg .price__now { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.price--lg .price__was { font-size: 1.05rem; }

/* ───────────── Tarjeta de producto ───────────── */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: clamp(12px, 1.8vw, 22px); }
@media (max-width: 640px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .55s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { --lift: -6px; box-shadow: var(--shadow-lg); border-color: transparent; }
.card.is-tilting { transition: transform .15s linear, box-shadow .4s var(--ease), border-color .3s; }
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .5), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.card.is-tilting::after { opacity: 1; }
.card__top { position: relative; margin: 8px 8px 0; }
.card__media {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 1; border-radius: calc(var(--radius-lg) - 6px);
  background: var(--tone, var(--sky));
}
.card__media::before {
  content: ''; position: absolute; z-index: -1; left: 12%; top: 12%; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 68%);
  transition: transform .7s var(--ease);
}
.card:hover .card__media::before { transform: scale(1.3); }
.card__media img {
  position: absolute; inset: 9%; width: 82%; height: 82%;
  object-fit: contain; mix-blend-mode: multiply;
  transition: transform .8s var(--ease), opacity .5s;
}
.card:hover .card__media img { transform: scale(1.09) rotate(-2.5deg) translateY(-3%); }
.card__img2 { opacity: 0; }
.card:hover .has-alt img:first-child { opacity: 0; }
.card:hover .has-alt .card__img2 { opacity: 1; }
.card__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.card__wish {
  position: absolute; top: 8px; right: 8px; z-index: 6;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .88); color: var(--navy); cursor: pointer;
  box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .4s var(--spring), color .2s, background-color .2s;
}
.card__wish .i { width: 19px; height: 19px; }
.card__wish:hover { transform: scale(1.14); color: var(--sale); }
.card__wish.is-on { color: var(--sale); }
.card__wish.is-on .i { fill: currentColor; }
.is-pop { animation: pop .5s var(--spring); }
.card__add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px;
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none;
  font: 700 .88rem/1 var(--font);
  box-shadow: 0 10px 20px -10px rgba(15, 30, 69, .6);
  opacity: 0; translate: 0 calc(100% + 16px);
  transition: translate .5s var(--spring), opacity .3s, background-color .25s;
}
.card__add .i { width: 18px; height: 18px; }
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; translate: none; }
.card__add:hover { background: var(--blue); }
@media (hover: none), (max-width: 640px) {
  .card__add { opacity: 1; translate: none; left: auto; right: 8px; bottom: 8px; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; }
  .card__add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .card__add.is-done::after { content: '✓'; }
}
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card__meta { overflow: hidden; margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.card__meta a { position: relative; z-index: 6; color: var(--blue-600); text-decoration: none; }
.card__meta a:hover { text-decoration: underline; }
.card__title { display: -webkit-box; overflow: hidden; min-height: 2.7em; margin: 0; font-size: .97rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: var(--radius-lg); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 3px solid rgba(47, 91, 234, .5); outline-offset: 2px; }
.card__title mark, .sr-item mark { background: linear-gradient(transparent 55%, var(--butter) 55%); color: inherit; padding: 0 1px; }
.card__body .price { margin-top: auto; }
.card__save { display: inline-flex; align-items: center; gap: .35em; color: var(--ok); font-size: .78rem; font-weight: 700; }
.card__save .i { width: 13px; height: 13px; }
@media (max-width: 640px) {
  .card { border-radius: 18px; }
  .card__top { margin: 6px 6px 0; }
  .card__media { border-radius: 14px; }
  .card__body { padding: 10px 11px 14px; gap: 4px; }
  .card__title { font-size: .86rem; }
  .price__now { font-size: 1rem; }
  .card__badges { top: 7px; left: 7px; }
  .tag { font-size: .66rem; }
  .card__wish { width: 34px; height: 34px; top: 6px; right: 6px; }
}

.card--skeleton { pointer-events: none; }
.card--skeleton .card__media { margin: 8px 8px 0; }
.sk {
  display: block; border-radius: 10px;
  background: linear-gradient(90deg, #e9eefa 25%, #f6f8fe 37%, #e9eefa 63%) 0 0 / 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk--line { height: 12px; margin: 6px 0; }
.sk--short { width: 40%; }
.sk--mid { width: 62%; }
.sk--pill { height: 46px; border-radius: 14px; }

/* ───────────── Carrusel horizontal (arrastrable) ───────────── */
.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 262px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 8px 4px 26px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.hscroll > * { scroll-snap-align: start; }
.hscroll.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.hscroll.is-dragging * { pointer-events: none; }
.hscroll img { -webkit-user-drag: none; }
.hscroll-nav { display: flex; gap: 8px; }
@media (max-width: 640px) { .hscroll { grid-auto-columns: minmax(160px, 46%); gap: 10px; } }

/* ───────────── Cinta en movimiento (marquee) ───────────── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; }

.tricolor { display: flex; height: 4px; }
.tricolor i { display: block; }
.tricolor i:nth-child(1) { flex: 2; background: var(--col-yellow); }
.tricolor i:nth-child(2) { flex: 1; background: var(--col-blue); }
.tricolor i:nth-child(3) { flex: 1; background: var(--col-red); }
.tricolor--thick { height: 6px; }

/* Patrón inspirado en tejidos wayuu */
.wayuu {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke-width='3'%3E%3Cpath d='M0 14 14 2l14 12 14-12 14 12' stroke='%23FCD116'/%3E%3Cpath d='M0 26 14 14l14 12 14-12 14 12' stroke='%235C82FF'/%3E%3C/g%3E%3Cg fill='%23F0506E'%3E%3Cpath d='m14 20 3 3-3 3-3-3zM42 20l3 3-3 3-3-3z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 28px;
}

/* ───────────── Estado vacío ───────────── */
.empty { display: grid; justify-items: center; gap: 10px; padding: 36px 16px; text-align: center; }
.empty h3 { font-size: 1.25rem; }
.empty p { max-width: 36ch; color: var(--muted); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.empty__art { position: relative; width: 132px; height: 132px; margin-bottom: 8px; }
.empty__blob { position: absolute; inset: 0; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: linear-gradient(135deg, var(--sky), var(--lav)); animation: blob 9s ease-in-out infinite; }
.empty__icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); animation: float 4s ease-in-out infinite; }
.empty__icon .i { width: 56px; height: 56px; stroke-width: 1.5; }
.empty__spark { position: absolute; color: var(--col-yellow); animation: twinkle 2.4s ease-in-out infinite; }
.empty__spark .i { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.empty__spark.s1 { top: 4px; right: 2px; }
.empty__spark.s2 { bottom: 12px; left: -4px; animation-delay: 1.1s; color: var(--sale); }
.empty__spark.s2 .i { width: 14px; height: 14px; }

/* ───────────── Animaciones al hacer scroll ───────────── */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: rv-up .8s var(--ease) var(--d, 0ms) both; }
.js [data-reveal="zoom"].is-in { animation-name: rv-zoom; }
.js [data-reveal="left"].is-in { animation-name: rv-left; }
.js [data-reveal="right"].is-in { animation-name: rv-right; }
.js [data-reveal="fade"].is-in { animation-name: rv-fade; }

@keyframes rv-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-zoom { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes rv-left { from { opacity: 0; translate: -36px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-right { from { opacity: 0; translate: 36px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(5deg); } 100% { transform: scale(1); } }
@keyframes badge-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 209, 22, .7); } 70% { box-shadow: 0 0 0 9px rgba(252, 209, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blob { 0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; } 33% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; } 66% { border-radius: 48% 52% 62% 38% / 38% 50% 50% 62%; } }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0deg); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes burst { to { transform: rotate(var(--a)) translateY(-30px) scale(.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none !important; }
  .card { transform: none !important; }
}
