/* ============================================================
   JeuDerm Shop — Redesign
   Dirección de arte: editorial oscuro (ref. Floria) + marca JeuDerm
   Sans: Geist · Acento: Cormorant Garamond italic · Mono: Geist Mono
   ============================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* superficies */
  --black:      #000000;
  --stone-950:  #0c0a09;
  --stone-900:  #1c1917;
  --stone-800:  #292524;
  --stone-600:  #57534e;
  --stone-500:  #78716c;
  --stone-400:  #a8a29e;
  --stone-300:  #d6d3d1;
  --stone-200:  #e7e5e4;
  --stone-100:  #f5f5f4;
  --stone-50:   #fafaf9;

  --bg:         var(--stone-50);
  --fg:         var(--stone-900);
  --muted:      var(--stone-500);

  /* marca */
  --accent:     #2A9D8F;
  --accent-600: #248C80;
  --accent-300: #7FC9BF;
  --accent-tint:rgba(42,157,143,.08);

  /* tipografía */
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* forma */
  --r-xl:  2rem;
  --r-lg:  1.25rem;
  --r-md:  .75rem;
  --r-pill:999px;

  /* ritmo */
  --shell: 1280px;
  --pad:   1rem;

  /* movimiento */
  --ease:  cubic-bezier(.22,1,.36,1);
  --dur:   .7s;
}

@media (min-width: 768px) { :root { --pad: 2rem; } }

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── TIPOGRAFÍA ────────────────────────────────────────────── */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pill--light {
  border-color: rgba(28,25,23,.14);
  background: rgba(28,25,23,.04);
  color: var(--stone-600);
  backdrop-filter: none;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }

.h-display {
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: .9;
}
.h-section {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -.04em;
}
.it {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -.01em;
}
.lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ── BOTONES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 3.5rem;
  padding-inline: 2rem;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--light  { background: #fff; color: #000; }
.btn--light:hover { background: rgba(255,255,255,.88); }
.btn--ghost  { color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--dark   { background: var(--stone-900); color: #fff; }
.btn--dark:hover { background: var(--stone-800); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-600); }
.btn--sm { height: 2.75rem; padding-inline: 1.25rem; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.link-arrow i {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-pill);
  background: var(--stone-200);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.link-arrow:hover i { background: var(--accent); color: #fff; transform: translate(2px,-2px); }

/* ── REVEALS ───────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .09s; }
.rv[data-d="2"] { transition-delay: .18s; }
.rv[data-d="3"] { transition-delay: .27s; }
.rv[data-d="4"] { transition-delay: .36s; }

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

/* ── PROMO + TOPBAR ────────────────────────────────────────── */
.promo {
  position: relative;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: .8125rem;
  padding: .6rem 2.75rem;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  flex-wrap: wrap;
}
.promo b { font-weight: 700; letter-spacing: .02em; }
.promo__x {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border-radius: var(--r-pill);
  display: grid; place-items: center; opacity: .8;
}
.promo__x:hover { background: rgba(255,255,255,.16); opacity: 1; }

.topbar {
  background: var(--black);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .01em;
  text-align: center;
  padding: .55rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar b { color: #fff; font-weight: 600; }
.topbar a { color: var(--accent-300); }

/* en móvil las barras superiores se comprimen: el hero manda */
@media (max-width: 700px) {
  .promo { font-size: .75rem; padding: .5rem 2.25rem; gap: .5rem; }
  .promo .hide-sm { display: none; }
  .topbar { font-size: .6875rem; }
  .topbar .hide-sm { display: none; }
}

/* ── HEADER ────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  /* el menú móvil cuelga de aquí con position:absolute */
  background: rgba(12,10,9,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 34px; width: auto; }
.brand__txt { line-height: 1.15; }
.brand__n { font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; }
.brand__s { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap; }
@media (max-width: 560px) { .brand__s { display: none; } .brand img { height: 30px; } }

.nav { display: none; gap: 2rem; }
.nav a {
  font-size: .875rem; color: rgba(255,255,255,.72);
  transition: color .25s var(--ease); position: relative;
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
@media (min-width: 900px) { .nav { display: flex; } }

.hdr__act { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: rgba(255,255,255,.85);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.icon-btn__n {
  position: absolute; top: 2px; right: 2px;
  min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: .625rem; font-weight: 700; line-height: 1.05rem; text-align: center;
}
.icon-btn__n[hidden] { display: none; }
.bag-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 2.5rem; padding: 0 1rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: .8125rem; font-weight: 600; color: #fff;
  transition: background-color .25s var(--ease);
}
.bag-btn:hover { background: rgba(255,255,255,.18); }
.burger { display: grid; }
@media (min-width: 900px) { .burger { display: none; } }

/* Panel desplegable. Se anima con transform/opacity (no con display) y las
   áreas táctiles llegan a 48px, por encima del mínimo de 44 recomendado. */
/* Panel a pantalla completa. Arranca justo debajo de la cabecera —el JS le
   pasa el `top` exacto— para que el logo y el aspa sigan visibles y el cliente
   no pierda el sitio. Se anima con opacity/transform, nunca con display. */
.mnav {
  position: fixed; inset: 0;
  z-index: 70;                      /* por encima de la cabecera (60) */
  display: flex; flex-direction: column;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--pad) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0c0a09 0%, #12100f 55%, #0c0a09 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mnav.open { opacity: 1; visibility: visible; pointer-events: auto; }
/* halo de marca, el mismo recurso que usa el hero */
.mnav::before {
  content: ''; position: absolute; left: 50%; top: -12%;
  width: 26rem; height: 26rem; transform: translateX(-50%);
  background: var(--accent); opacity: .1; filter: blur(90px);
  border-radius: 50%; pointer-events: none;
}
/* la cabecera queda tapada, así que el panel lleva la suya: marca y cierre */
.mnav__bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.25rem;
  margin-bottom: 1.75rem;
}
.mnav__brand { display: flex; align-items: center; gap: .7rem; }
.mnav__brand img { height: 30px; width: auto; }
.mnav__brand span {
  font-size: .625rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--stone-500);
}
.mnav__close {
  width: 44px; height: 44px; margin-right: -.35rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mnav__close:active { background: rgba(255,255,255,.14); color: #fff; }
.mnav__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mnav__k {
  position: relative;
  font-size: .625rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-300);
  margin-bottom: 1.25rem;
}
.mnav__links { position: relative; display: flex; flex-direction: column; flex: 1; }
.mnav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
  padding: .5rem 0;
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  color: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s var(--ease), transform .3s var(--ease);
}
/* el número los ordena y da el aire editorial del resto de la web */
.mnav__links a::after {
  counter-increment: mnavi;
  content: '0' counter(mnavi);
  font-family: var(--mono); font-size: .6875rem; font-weight: 400;
  letter-spacing: .1em; color: var(--stone-600);
  transition: color .2s var(--ease);
}
.mnav__links { counter-reset: mnavi; }
.mnav a:active { color: #fff; transform: translateX(4px); }
.mnav__links a:active::after { color: var(--accent-300); }
.mnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* entrada escalonada: cada enlace entra un pelín después que el anterior */
.mnav.open .mnav__k,
.mnav.open .mnav__links a,
.mnav.open .mnav__foot { animation: mnavIn .45s var(--ease) both; }
.mnav.open .mnav__links a:nth-child(1) { animation-delay: .06s; }
.mnav.open .mnav__links a:nth-child(2) { animation-delay: .10s; }
.mnav.open .mnav__links a:nth-child(3) { animation-delay: .14s; }
.mnav.open .mnav__links a:nth-child(4) { animation-delay: .18s; }
.mnav.open .mnav__links a:nth-child(5) { animation-delay: .22s; }
.mnav.open .mnav__foot { animation-delay: .28s; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(14px); } }

.mnav__foot { position: relative; margin-top: 2rem; }
.mnav__cta {
  justify-content: center !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff !important;
  font-size: .9375rem !important; font-weight: 600 !important;
  letter-spacing: 0 !important;
  gap: .5rem;
}
.mnav__cta::after { content: none !important; }
.mnav__cta:active { background: var(--accent-600); transform: none; }
.mnav__note {
  display: block; margin-top: 1rem; text-align: center;
  font-size: .75rem; color: var(--stone-500);
}
@media (min-width: 900px) { .mnav, .mnav.open { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mnav { transition: opacity .01ms; }
  .mnav.open .mnav__k, .mnav.open .mnav__links a, .mnav.open .mnav__foot { animation: none; }
}

/* ── HERO ──────────────────────────────────────────────────── */
/* Hero de tienda: impacto en una pantalla corta, el producto entra enseguida */
.hero {
  position: relative;
  min-height: min(560px, 68vh);
  display: flex; align-items: center;
  background: var(--black);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
/* Las modelles van recortadas (hero-faces-cut.webp, fondo de estudio eliminado)
   flotando sobre el negro: sin caja, sin cantos. Flotación lenta para dar vida. */
.hero__cut {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: min(56%, 730px); height: 98%;
  pointer-events: none;
}
.hero__cut img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: right bottom;
  animation: heroFloat 15s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -14px, 0) scale(1.018); }
}
/* grano finísimo: quita el aspecto de foto de stock pegada */
.hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
@media (max-width: 899px) {
  /* en móvil pasa a fondo tenue detrás del texto, con velo para que se lea */
  .hero__cut { width: 100%; height: 68%; opacity: .32; }
  .hero__cut img { object-position: center bottom; }
  .hero__cut::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 40%, transparent 75%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero__cut img { animation: none; } }
/* debajo del hero viene la barra de datos, que es negra: el fade se funde
   contra negro, no contra el fondo claro */
.hero__fade {
  position: absolute; inset-inline: 0; bottom: 0; height: 6rem;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
}
.hero__glow {
  position: absolute; z-index: 0;
  right: 8%; top: 42%;
  width: 42vw; height: 42vw; max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .14;
  filter: blur(130px);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .hero__col  { grid-column: span 7; }
}
.hero h1 { color: #fff; margin: 1rem 0 1.1rem; }
.hero h1 .it { color: rgba(255,255,255,.72); display: block; }
.hero .lede { color: rgba(255,255,255,.78); margin-bottom: 1.6rem; font-size: 1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
/* al envolver en móvil, el CTA secundario se alinea con el texto */
@media (max-width: 560px) { .hero__cta .btn--ghost { padding-inline: .3rem; height: 3rem; } }

.trust {
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  margin-top: 1.75rem;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── STATS ─────────────────────────────────────────────────── */
.stats {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.stats__in { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats__in { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.15rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
@media (min-width: 768px) { .stat { border-bottom: 0; } .stat:last-child { border-right: 0; } }
.stat b { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -.04em; }
.stat span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ── SECCIONES ─────────────────────────────────────────────── */
.sec { padding: 3.5rem 0; }
@media (min-width: 768px) { .sec { padding: 4.5rem 0; } }
/* las secciones de argumentario, ya después del catálogo, sí respiran */
.sec--dark, .proof, .mani { padding: 5rem 0; }
@media (min-width: 768px) { .sec--dark, .proof, .mani { padding: 7rem 0; } }
.sec--dark { background: var(--stone-950); color: var(--stone-50); position: relative; overflow: hidden; }
.sec--dark .lede { color: var(--stone-400); }
.sec__head {
  display: flex; flex-direction: column; gap: 1.25rem;
  margin-bottom: 2.25rem;
}
@media (min-width: 768px) {
  .sec__head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 2.75rem; }
}
.sec--dark .sec__head, .proof .sec__head { margin-bottom: 3.5rem; }
.sec__head h2 { margin-bottom: .9rem; }

/* ── THE EDIT (bestsellers escalonados) ────────────────────── */
.edit { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .edit { grid-template-columns: repeat(12, 1fr); gap: 2rem; } .edit__it { grid-column: span 4; } .edit__it:nth-child(2) { margin-top: 2.5rem; } .edit__it:nth-child(3) { margin-top: 1rem; } }

.edit__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  margin-bottom: 1.25rem;
  background: var(--stone-100);
}
.edit__it:nth-child(1) .edit__media { aspect-ratio: 3/4; }
.edit__it:nth-child(2) .edit__media { aspect-ratio: 1/1; }
.edit__it:nth-child(3) .edit__media { aspect-ratio: 4/5; }
.edit__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 12%;
  transition: transform var(--dur) var(--ease);
}
.edit__it:hover .edit__media img { transform: scale(1.08); }
.edit__qa {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem;
  display: flex; justify-content: center;
  transform: translateY(120%);
  transition: transform .5s var(--ease);
}
.edit__it:hover .edit__qa { transform: none; }
.edit__qa span {
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  color: var(--stone-900);
  font-size: .875rem; font-weight: 600;
  padding: .8rem 1.6rem; border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
.edit__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.edit__row h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.edit__row p { font-size: .8125rem; color: var(--muted); margin-top: .3rem; }
.edit__price { font-size: 1.0625rem; color: var(--muted); white-space: nowrap; }

/* ── PROTOCOL (sticky + timeline) ──────────────────────────── */
.proto__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  border-radius: 50%; background: var(--accent); opacity: .05; filter: blur(120px);
  pointer-events: none;
}
.proto { display: grid; grid-template-columns: 1fr; gap: 3.5rem; position: relative; z-index: 1; }
@media (min-width: 1024px) { .proto { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.proto__aside { align-self: start; }
@media (min-width: 1024px) { .proto__aside { position: sticky; top: 8rem; } }
.proto__steps { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 768px) { .proto__steps { gap: 5rem; } }
.step { position: relative; padding-left: 2.25rem; border-left: 1px solid rgba(255,255,255,.12); }
@media (min-width: 768px) { .step { padding-left: 3.5rem; } }
.step__n {
  position: absolute; left: -1px; top: 0;
  transform: translateX(-50%);
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-pill);
  background: var(--stone-950); border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .6875rem; color: var(--accent-300);
}
.step h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: .75rem; letter-spacing: -.03em; }
.step p { color: var(--stone-400); line-height: 1.7; max-width: 44ch; }

/* ── BENTO COLECCIONES ─────────────────────────────────────── */
/* Filtros visuales compactos: una franja, no una portada.
   El objetivo es que el catálogo quede a un scroll corto. */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  min-height: 150px;
  display: flex; align-items: flex-end;
  color: #fff;
  text-align: left;
  isolation: isolate;
  background: var(--stone-800);
}
.tile--a { grid-column: span 2; }
@media (min-width: 768px) {
  .tile { min-height: 210px; border-radius: var(--r-xl); }
  .tile--a { grid-column: span 1; }
}
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
/* los packshots vienen sobre fondo claro: el scrim tiene que ser firme
   para que el texto blanco y el eyebrow teal se lean sin dudas */
.tile__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 26%, rgba(0,0,0,.22) 58%, rgba(0,0,0,.06) 100%);
  transition: opacity .5s var(--ease);
  opacity: 1;
}
.tile:hover .tile__scrim { opacity: .94; }
.tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  pointer-events: none;
}
.tile__body { padding: 1rem; width: 100%; }
@media (min-width: 768px) { .tile__body { padding: 1.35rem; } }
.tile__k {
  display: block;
  font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #A7E0D8; text-shadow: 0 1px 10px rgba(0,0,0,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin: .3rem 0 0; letter-spacing: -.03em;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
/* en franja compacta la descripción sobra: el título ya orienta */
.tile p { display: none; }
.tile__go {
  margin-top: .6rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: .8;
  transition: gap .3s var(--ease), opacity .3s var(--ease);
}
.tile:hover .tile__go { gap: .9rem; opacity: 1; }

/* ── CATÁLOGO ──────────────────────────────────────────────── */
.cat { background: var(--bg); padding-bottom: 4rem; }
@media (min-width: 768px) { .cat { padding-bottom: 6rem; } }
.toolbar {
  position: sticky; top: 4.5rem; z-index: 40;
  background: rgba(250,250,249,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone-200);
  margin-bottom: 3rem;
}
.toolbar__in { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; }
.toolbar__tools { flex: 0 0 auto; display: flex; align-items: center; gap: .75rem; }

/* Móvil: los 14 chips no caben en una fila, así que el carril se desplaza.
   Va a sangre hasta el borde de la pantalla y se desvanece por la derecha,
   para que se lea como "hay más" y no como un corte. */
.chips {
  display: flex; gap: .5rem; flex: 1 1 auto; min-width: 0;
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px;
  margin-inline-start: calc(var(--pad) * -1);
  padding-inline-start: var(--pad);
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--pad);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chip { scroll-snap-align: start; }

/* De tablet hacia arriba sí hay sitio: buscador y orden ocupan su propia
   fila y los chips se reparten debajo en varias líneas. Ninguno se corta. */
@media (min-width: 768px) {
  .toolbar__in { flex-wrap: wrap; gap: .85rem; padding: 1rem 0 1.15rem; }
  .toolbar__tools { order: 1; width: 100%; justify-content: flex-end; }
  .chips {
    order: 2; width: 100%; flex: 0 0 auto;
    flex-wrap: wrap; row-gap: .5rem;
    overflow: visible;
    margin-inline-start: 0; padding-inline-start: 0;
    -webkit-mask-image: none; mask-image: none;
  }
}

/* En pantalla ancha el buscador vuelve a la misma fila que los chips: la barra
   es pegajosa y cada fila de más se come pantalla mientras se navega el grid. */
@media (min-width: 1100px) {
  .toolbar__in { flex-wrap: nowrap; align-items: flex-start; padding: .9rem 0 1rem; }
  .toolbar__tools { order: 2; width: auto; }
  .chips { order: 1; width: auto; flex: 1 1 auto; min-width: 0; }
}
.chip {
  flex: 0 0 auto;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--stone-200);
  background: #fff;
  font-size: .8125rem; font-weight: 500; color: var(--stone-600);
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--stone-400); color: var(--fg); }
.chip.on { background: var(--stone-900); border-color: var(--stone-900); color: #fff; }
.chip small { opacity: .55; margin-left: .35rem; font-size: .75rem; }
.sortsel {
  flex: 0 0 auto;
  height: 2.4rem; padding: 0 2rem 0 .9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--stone-200); background: #fff;
  font-size: .8125rem; color: var(--stone-600);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 1rem;
  cursor: pointer;
}
.searchbox {
  flex: 0 0 auto; display: none; align-items: center; gap: .5rem;
  height: 2.4rem; padding: 0 .9rem;
  border-radius: var(--r-pill); border: 1px solid var(--stone-200); background: #fff;
}
@media (min-width: 768px) { .searchbox { display: flex; } }
.searchbox input { border: 0; outline: 0; width: 10rem; font-size: .8125rem; background: none; }

/* ── NOTA DE FAMILIA / LÍNEA ───────────────────────────────────
   Aparece al filtrar. El tinte lo pone el JS en --fam (color de la
   familia) y se desvanece hacia el fondo de la página, para que la
   rejilla de producto siga sobre el neutro de siempre. */
.famnote {
  position: relative;
  border-radius: var(--r-xl);
  padding: 1.5rem 1.25rem 1.6rem;
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--stone-200);
}
.famnote::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, var(--fam, transparent) 0%, transparent 78%);
  pointer-events: none;
}
.famnote > * { position: relative; z-index: 1; }
@media (min-width: 768px) {
  .famnote { padding: 2rem 2.25rem 2.1rem; margin-bottom: 2.5rem; }
}
.famnote__k {
  display: block;
  font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone-600);
}
.famnote__t {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.03em;
  margin: .5rem 0 .6rem; max-width: 26ch;
}
.famnote__p { color: var(--stone-600); line-height: 1.65; max-width: 62ch; font-size: .9375rem; }
.famnote__meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 1.1rem; }
.famnote__grp { min-width: 0; }
/* en móvil el panel no puede empujar los productos fuera de pantalla:
   se queda "Best for", que es lo accionable, y "What it targets" se
   omite porque el párrafo ya lo cuenta */
@media (max-width: 767px) {
  .famnote__grp--targets { display: none; }
  .famnote { padding: 1.25rem 1.15rem 1.35rem; }
  .famnote__t { font-size: 1.15rem; margin: .4rem 0 .5rem; }
  .famnote__p { font-size: .875rem; line-height: 1.6; }
  .famnote__meta { margin-top: .95rem; }
  .famnote__see { margin-top: .95rem; }
}

.famnote__lbl {
  display: block; font-size: .625rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone-500); margin-bottom: .45rem;
}
.famnote__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.famnote__tag {
  font-size: .75rem; font-weight: 500; color: var(--stone-700);
  background: rgba(255,255,255,.72); border: 1px solid var(--stone-200);
  border-radius: var(--r-pill); padding: .28rem .65rem;
}
.famnote__see {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem; font-size: .8125rem; font-weight: 600; color: var(--fg);
  border-bottom: 1px solid var(--stone-300); padding-bottom: .15rem;
}
.famnote__see:hover { border-color: var(--fg); }

/* Packshot ausente: en vez del icono de imagen rota, un hueco neutro con
   aviso. Se ve que falta la foto (para que se note y se pida) pero no
   parece que la web esté rota. */
.card__media.is-noimg img,
.edit__media.is-noimg img { display: none; }
.card__media.is-noimg::after,
.edit__media.is-noimg::after {
  content: 'Photo coming soon';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .75rem; letter-spacing: .04em;
  color: var(--stone-400);
}

/* ── INSIGNIAS DE STOCK (fuente: Zoho Inventory) ─────────────── */
.stock {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}
.stock::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.modal__price .stock { margin-left: .6rem; vertical-align: middle; }
.stock--in   { color: #3D9A70; }
.stock--low  { color: #B4762A; }
.stock--out  { color: var(--stone-500); }
.card__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.btn:disabled {
  background: var(--stone-100); color: var(--stone-500);
  border: 1px solid var(--stone-200);
  cursor: not-allowed; transform: none; box-shadow: none;
}
.btn:disabled:hover { background: var(--stone-100); }
.btn.is-out {
  background: var(--stone-100); color: var(--stone-500);
  border: 1px solid var(--stone-200);
  cursor: not-allowed; pointer-events: none;
}

.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.card { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.card__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4/5;
  margin-bottom: .9rem;
  background: var(--stone-100);
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 14%;
  transition: transform var(--dur) var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  padding: .28rem .6rem; border-radius: var(--r-pill);
  font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--stone-900); color: #fff;
}
.card__badge[data-t="new"]    { background: var(--accent); }
.card__badge[data-t="award"]  { background: #B08D57; }
.card__badge[data-t="limited"]{ background: #7C3AED; }
.card__heart {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  width: 2rem; height: 2rem; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  color: var(--stone-500);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.card__heart:hover { transform: scale(1.1); color: #e11d48; }
.card__heart.on { color: #e11d48; }
/* botón de compra siempre visible: es una tienda, no una galería */
.card__buy {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .5rem;
}
.card__add {
  flex: 0 0 auto;
  height: 2.25rem; padding: 0 1.05rem;
  border-radius: var(--r-pill);
  background: var(--stone-900); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s var(--ease), transform .2s var(--ease);
}
.card__add:hover { background: var(--accent); }
.card__add:active { transform: scale(.95); }
.card__add:disabled,
.card__add.is-out {
  background: var(--stone-200); color: var(--stone-500);
  cursor: not-allowed; transform: none;
}
.card__add:disabled:hover { background: var(--stone-200); }
.card__add:disabled:active { transform: none; }

.card__ref { font-family: var(--mono); font-size: .6875rem; color: var(--stone-400); letter-spacing: .02em; }
.card__name { font-size: .9375rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; margin: .3rem 0 .35rem; }
.card__meta { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); }
.card__stars { color: #E8B931; letter-spacing: -.05em; }
.card__price { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.card__price small { font-size: .75rem; font-weight: 400; color: var(--muted); }

.empty { text-align: center; padding: 5rem 1rem; color: var(--muted); }
.empty b { display: block; font-size: 1.125rem; color: var(--fg); margin-bottom: .4rem; }

/* ── MARQUEE PROOF ─────────────────────────────────────────── */
.proof { background: linear-gradient(to bottom, var(--stone-950), #0a0a0a); color: #fff; overflow: hidden; }
.marquee { position: relative; overflow: hidden; padding: 1rem 0; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--stone-950), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  #0a0a0a, transparent); }
.marquee__track { display: flex; gap: 1.5rem; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.quote {
  width: 21rem; flex: 0 0 auto;
  padding: 2rem;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.quote p { color: rgba(255,255,255,.82); line-height: 1.7; font-size: .9375rem; }
.quote__by { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.quote__av {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .875rem;
}
.quote__n { font-size: .875rem; font-weight: 600; }
.quote__r { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ── MANIFESTO + NEWSLETTER ────────────────────────────────── */
.mani { position: relative; background: linear-gradient(to bottom, #0a0a0a, var(--black)); color: #fff; overflow: hidden; }
.mani__ghost {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center right;
  opacity: .16;
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000 10%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 50%, #000 10%, transparent 72%);
}
.mani__in { position: relative; z-index: 1; max-width: 46rem; }
.mani h2 { font-size: clamp(2rem, 5.5vw, 3.5rem); margin-bottom: 1.5rem; }
.mani p { color: rgba(255,255,255,.7); line-height: 1.8; font-size: 1.0625rem; }
.news { margin-top: 3rem; max-width: 30rem; }
.news__f { display: flex; gap: .6rem; flex-wrap: wrap; }
.news input {
  flex: 1 1 14rem; height: 3.25rem; padding: 0 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: .9375rem;
}
.news input::placeholder { color: rgba(255,255,255,.4); }
.news input:focus { outline: 0; border-color: var(--accent); background: rgba(255,255,255,.1); }
.news__msg { font-size: .8125rem; margin-top: .85rem; min-height: 1.2rem; }
.news__msg.ok  { color: var(--accent-300); }
.news__msg.err { color: #fb7185; }

/* ── SPECIALIST ────────────────────────────────────────────── */
.spec {
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--stone-200);
  padding: 3rem 1.75rem;
  text-align: center;
}
@media (min-width: 768px) { .spec { padding: 4.5rem; } }
.spec h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.spec .lede { margin: 0 auto 2rem; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq__list { max-width: 46rem; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--stone-200); }
.qa__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.02em;
}
.qa__q i { flex: 0 0 auto; transition: transform .35s var(--ease); color: var(--muted); }
.qa.open .qa__q i { transform: rotate(45deg); color: var(--accent); }
.qa__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.qa__a p { padding-bottom: 1.5rem; color: var(--muted); line-height: 1.75; max-width: 60ch; }

/* ── FOOTER ────────────────────────────────────────────────── */
.ftr { background: var(--black); color: rgba(255,255,255,.6); padding: 5rem 0 2.5rem; }
.ftr__top { display: grid; gap: 3rem; grid-template-columns: 1fr; margin-bottom: 4rem; }
@media (min-width: 768px) { .ftr__top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }
.ftr h4 { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; font-weight: 600; }
.ftr li { margin-bottom: .7rem; font-size: .875rem; }
.ftr a:hover { color: #fff; }
.ftr__about p { font-size: .875rem; line-height: 1.7; max-width: 34ch; margin: 1.25rem 0; }
.ftr__soc { display: flex; gap: .6rem; }
.ftr__soc a {
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.ftr__soc a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.ftr__btm {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .75rem;
}
.pay { display: flex; gap: .4rem; align-items: center; }
.pay span {
  font-size: .5625rem; font-weight: 700; letter-spacing: .06em;
  padding: .3rem .5rem; border-radius: 5px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
}

/* ── DRAWERS (bag / wishlist) ──────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12,10,9,.55); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(27rem, 100vw);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.16);
}
.drawer.on { transform: none; }
.drawer__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--stone-200);
}
.drawer__hd h3 { font-size: 1.125rem; letter-spacing: -.02em; }
.drawer__hd span { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.drawer__ft { border-top: 1px solid var(--stone-200); padding: 1.25rem 1.5rem 1.5rem; background: var(--stone-50); }

.li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--stone-100); }
.li__img { width: 4.5rem; height: 4.5rem; flex: 0 0 auto; border-radius: var(--r-md); background: var(--stone-100); overflow: hidden; }
.li__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.li__b { flex: 1; min-width: 0; }
.li__n { font-size: .875rem; font-weight: 500; line-height: 1.35; }
.li__s { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.li__row { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--stone-200); border-radius: var(--r-pill); }
.qty button { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; color: var(--stone-500); }
.qty button:hover { color: var(--fg); }
.qty b { font-size: .8125rem; min-width: 1.5rem; text-align: center; }
.li__p { font-size: .875rem; font-weight: 600; }

.ship-bar { margin-bottom: 1rem; }
.ship-bar__t { font-size: .75rem; color: var(--muted); margin-bottom: .45rem; }
.ship-bar__t b { color: var(--accent); }
.ship-bar__track { height: 4px; border-radius: 2px; background: var(--stone-200); overflow: hidden; }
.ship-bar__fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .5s var(--ease); }

.gift {
  border: 1px dashed var(--accent);
  background: var(--accent-tint);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.gift b { font-size: .8125rem; color: var(--accent-600); display: block; margin-bottom: .5rem; }
.gift input {
  width: 100%; height: 2.5rem; padding: 0 .8rem;
  border: 1px solid var(--stone-200); border-radius: var(--r-md);
  font-size: .8125rem; background: #fff;
}

.tot { display: flex; align-items: center; justify-content: space-between; font-size: .875rem; padding: .35rem 0; color: var(--muted); }
.tot--big { font-size: 1.125rem; font-weight: 700; color: var(--fg); padding-top: .75rem; margin-top: .5rem; border-top: 1px solid var(--stone-200); letter-spacing: -.02em; }
.zip { display: flex; gap: .5rem; margin: .75rem 0; }
.zip input {
  flex: 1; height: 2.75rem; padding: 0 .9rem;
  border: 1px solid var(--stone-200); border-radius: var(--r-pill);
  font-size: .875rem;
}
.alt { display: flex; gap: .5rem; margin-top: .75rem; }
.alt a {
  flex: 1; height: 2.6rem; border-radius: var(--r-pill);
  border: 1px solid var(--stone-200); background: #fff;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .8125rem; font-weight: 500;
  transition: border-color .25s var(--ease);
}
.alt a:hover { border-color: var(--stone-400); }
.fine { font-size: .6875rem; color: var(--stone-400); text-align: center; margin-top: .75rem; line-height: 1.5; }

/* ── MODAL PRODUCTO ────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal.on { display: flex; }
.modal__card {
  position: relative;
  width: min(58rem, 100%);
  max-height: min(88vh, 52rem);
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  animation: pop .45s var(--ease);
}
/* las dos columnas se atan al alto de la ficha; el texto hace scroll dentro */
@media (min-width: 820px) {
  .modal__card { grid-template-columns: .9fr 1.1fr; grid-template-rows: minmax(0, 1fr); }
}
.modal__media, .modal__body { min-height: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__x {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--stone-600);
}
.modal__x:hover { background: #fff; color: var(--fg); }
.modal__media {
  background: var(--stone-100);
  display: grid; place-items: center;
  padding: 2rem; min-height: 16rem;
  overflow: hidden;
}
/* los packshots son muy verticales: que quepan siempre dentro del panel */
.modal__media img {
  max-height: min(22rem, 100%);
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.modal__body { padding: 2rem 1.75rem; overflow-y: auto; }
@media (min-width: 820px) { .modal__body { padding: 2.75rem 2.5rem; } }
.modal__cat { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.modal__body h3 { font-size: 1.625rem; margin: .5rem 0 .6rem; letter-spacing: -.03em; line-height: 1.2; }
.modal__price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; margin: 1rem 0; }
.modal__price small { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.modal__desc { font-size: .875rem; line-height: 1.75; color: var(--stone-600); margin-bottom: 1.5rem; }
.taglist { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.tag {
  font-size: .6875rem; padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--stone-100); color: var(--stone-600);
}
.block { margin-bottom: 1.5rem; }
.block h4 { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-400); margin-bottom: .7rem; font-weight: 600; }
.block ol { padding-left: 1.1rem; margin: 0; }
.block li { font-size: .8125rem; color: var(--stone-600); line-height: 1.7; margin-bottom: .3rem; }
.modal__cta { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.75rem; }


/* MÓVIL: la fila de la imagen era `auto` y el cuerpo `minmax(0,1fr)`, así que
   cuando el packshot no cabía el texto se encogía a 0 y, con overflow:hidden
   en la tarjeta, no quedaba nada que desplazar: solo se veía la foto.
   Aquí las dos filas van a contenido y scrollea la tarjeta completa. */
@media (max-width: 819px) {
  /* anclada arriba a una distancia conocida: asi el aspa puede ir fija
     sin flotar, que era lo que estrechaba la caja de la imagen 58px */
  .modal { padding: 4vh .75rem .75rem; align-items: flex-start; }
  .modal__card {
    /* en grid las filas `auto` se comprimen para caber en el max-height y el
       contenido queda cortado sin poder desplazarlo. En bloque cada hijo toma
       su alto natural y es la tarjeta la que scrollea. */
    display: block;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: sheet .35s var(--ease);
  }
  /* Los packshots son muy verticales (384x900). Con aspect-ratio en la caja el
     `max-height:100%` de la imagen no resuelve y se salia 321px por abajo, que
     overflow:hidden recortaba. Caja de alto fijo + object-fit:contain: el
     producto entra SIEMPRE entero, sea vertical o apaisado. */
  /* La caja es un grid con place-items:center. Ahi un height:100% en la imagen
     NO resuelve (la fila se dimensiona por contenido: dependencia circular) y
     caia a auto, asi que la imagen crecia hasta 729px de alto y overflow:hidden
     recortaba el producto en LOS 42. Con position:absolute e inset la caja de
     la imagen es exactamente el area de contenido, y object-fit:contain mete el
     producto entero dentro, sea vertical o apaisado. */
  .modal__media {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
    /* Los packshots son de 900px de alto: fijarla obligaba a dejarla baja para
       que cupiera el texto, y a esa altura el producto quedaba en 104px de
       ancho. Se desplaza con el contenido y a cambio se ve grande y entero;
       al bajar, la ficha se queda con la pantalla completa. */
    height: min(48vh, 24rem);
    max-height: none;
    padding: 1.1rem 1.25rem;
  }
  .modal__media img {
    position: static;
    display: block;
    width: 100%; height: 100%;
    max-width: none; max-height: none;
    object-fit: contain;
    object-position: center;
  }
  .modal__body { overflow: visible; padding: 1.5rem 1.25rem 2rem; }
  /* el aspa es el primer hijo de la tarjeta: en sticky se queda arriba
     mientras se desplaza, para poder cerrar en cualquier momento.
     El margen negativo le devuelve a la imagen el hueco que ocuparia. */
  .modal__x {
    position: fixed;
    top: calc(4vh + .7rem);
    right: 1.4rem;
    float: none;
    margin: 0;
    z-index: 4;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
  }
}
/* Solo opacidad: un transform en la tarjeta la convierte en bloque contenedor
   de sus hijos position:fixed y el aspa dejaria de quedarse quieta. */
@keyframes sheet { from { opacity: 0; } }

/* ── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
  transform: translate(-50%, 200%);
  background: var(--stone-900); color: #fff;
  border-radius: var(--r-pill);
  padding: .85rem 1.5rem;
  font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
  transition: transform .5s var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast.on { transform: translate(-50%, 0); }
.toast b { color: var(--accent-300); }

/* ── UTIL ──────────────────────────────────────────────────── */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
