/* =========================================================
   Tentaciones — "La vidriera de San Martín 1231"
   El logo manda: letras finas grafito, tres formas lima
   (● ■ ▲) y formas grises gigantes recortadas en los bordes.
   ========================================================= */

:root {
  /* Paleta (del logo) */
  --paper: #F4F4F2;         /* fondo principal */
  --paper-2: #EAEAE7;       /* fondo de fotos */
  --fog: #E1E1E5;           /* formas grises del logo (nunca texto) */
  --ink: #2B2B2B;           /* grafito del logotipo: texto, botones */
  --ink-soft: #5E5E5E;      /* texto secundario (6,1:1 sobre papel) */
  --lime: #A9C43F;          /* lima del logo: formas, acentos sobre grafito (nunca texto sobre claro) */
  --lime-soft: #EEF3DA;
  --lime-deep: #4A5A12;     /* lima oscuro para texto sobre claro (7:1) */
  --line: rgba(43, 43, 43, .14);
  --line-strong: rgba(43, 43, 43, .32);
  --white: #FFFFFF;

  /* Nombres heredados de la base (producto, bolsa, checkout) */
  --mint: var(--lime);
  --mint-soft: var(--lime-soft);
  --mint-deep: var(--lime-deep);
  --pink: var(--fog);
  --pink-soft: var(--lime-soft);
  --berry: var(--ink);
  --berry-dark: #000000;
  --rope: #B8B8B4;
  --alert: #A3223F;

  /* Tipografía */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Jost", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: var(--sans);

  /* Espaciado (base 8) */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1320px;
  --nav-h: 4.25rem;

  --radius: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-synthesis-weight: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--lime-deep); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s2);
  top: 0;
  transform: translateY(-120%);
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { transform: translateY(var(--s2)); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipos ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.015em;
}
.display em { font-style: italic; }
.display--sm { font-size: clamp(2.1rem, 5vw, 3.25rem); }

/* rótulos: versalitas espaciadas, como la bajada del logo */
.label, .hand, .eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lime);
  text-underline-offset: .4em;
  transition: text-decoration-color .25s, color .25s;
}
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.link--light { color: var(--paper); }
.link--light:hover { color: var(--lime); text-decoration-color: var(--lime); }

/* Las tres formas del logo */
.shape {
  display: inline-block;
  flex: none;
  width: .62em;
  height: .62em;
  margin-right: .55em;
  background: var(--lime);
  vertical-align: .02em;
}
.shape--circle { border-radius: 50%; }
.shape--square { transform: rotate(-12deg) scale(.9); }
.shape--triangle { clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary, .btn--ink { background: var(--ink); color: var(--paper); }
.btn--primary:hover, .btn--ink:hover { background: var(--lime); color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Logo ---------- */

.logo { width: auto; height: 100%; overflow: visible; }
.logo__shapes { fill: var(--lime); }

/* ---------- Navegación ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 244, 242, .92);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__in {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: var(--nav-h);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: .6rem var(--gutter);
}
.nav__logo { flex: none; display: flex; align-items: center; height: 2.75rem; padding-block: .55rem; color: var(--ink); }
.nav__logo:hover { color: var(--ink); }
.nav__logo .logo { height: clamp(1.25rem, 3.4vw, 1.6rem); }

.nav__links { display: none; flex: 1; }
.nav__links ul { display: flex; justify-content: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) 0 calc(100% - .55rem) / 0 2px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); background-size: 100% 2px; }
.nav__links .shape { width: .6rem; height: .6rem; margin-right: .5rem; }

.nav__actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.75rem;
  padding: .3rem .3rem .3rem .95rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.bag-btn:hover { background: var(--ink); color: var(--paper); }
.bag-btn__count {
  display: grid;
  place-items: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 .4rem;
  background: var(--ink);
  color: var(--paper);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: background-color .2s, color .2s;
}
.bag-btn:hover .bag-btn__count { background: var(--lime); color: var(--ink); }
.bag-btn__count.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.3) rotate(-12deg); background: var(--lime); color: var(--ink); }
  100% { transform: scale(1); }
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
}
.menu-btn__bars,
.menu-btn__bars::before {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-btn__bars::before { content: ""; position: absolute; top: 7px; width: 14px; }
.menu-btn__bars { transform: translateY(-3px); }

@media (min-width: 1000px) {
  .nav__links { display: block; }
  .nav__actions { margin-left: 0; }
  .menu-btn { display: none; }
}
@media (max-width: 359px) {
  .bag-btn__label { display: none; }
  .bag-btn { padding-left: .3rem; }
}

/* ---------- Diálogos: menú (hoja) y bolsa ---------- */

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(43, 43, 43, .5); }

.sheet {
  width: 100%;
  margin: auto 0 0;
  max-height: 90dvh;
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
}
.sheet[open] { animation: sheet-in .45s var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(100%); } }

.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s1); }
.sheet__nav { display: grid; }
.sheet__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  text-decoration: none;
}
.sheet__nav a > span { display: inline-flex; align-items: center; }
.sheet__nav .shape { width: .9rem; height: .9rem; margin-right: .8rem; }
.sheet__nav small { font-family: var(--sans); font-size: .8125rem; color: var(--ink-soft); }
.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin-top: var(--s3);
  font-size: .9375rem;
  font-weight: 500;
}
.sheet__foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.bag {
  width: min(440px, 100%);
  height: 100%;
  height: 100dvh;
  margin: 0 0 0 auto;
  display: none;
  flex-direction: column;
}
.bag[open] { display: flex; animation: bag-in .5s var(--ease-out); }
@keyframes bag-in { from { transform: translateX(100%); } }

.bag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
}
.bag__head h2 { font-family: var(--serif); font-weight: 400; font-size: 2.25rem; line-height: 1; }
.bag__body { flex: 1; overflow-y: auto; padding: 0 var(--s3); overscroll-behavior: contain; }
.bag__empty { display: grid; gap: .4rem; padding: var(--s4) 0; color: var(--ink-soft); }
.bag__empty-title { font-family: var(--serif); font-size: 1.625rem; line-height: 1.15; color: var(--ink); }
.bag__empty a { color: var(--ink); font-weight: 500; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

.bag__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .25rem 1rem;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}
.bag__thumb { grid-row: span 2; width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.bag__name { font-weight: 500; line-height: 1.3; }
.bag__name a { text-decoration: none; }
.bag__opt { display: block; margin-top: .15rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.bag__warn { display: block; font-size: .8125rem; font-weight: 600; color: var(--alert); }
.bag__line { font-weight: 500; white-space: nowrap; }
.bag__controls { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; }
.bag__remove {
  border: 0;
  background: none;
  padding: .5rem 0;
  font-size: .8125rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.bag__remove:hover { color: var(--ink); }

.bag__foot {
  display: grid;
  gap: var(--s2);
  padding: var(--s3);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}
.bag__foot[hidden] { display: none; }
.bag__total { display: flex; align-items: baseline; justify-content: space-between; }
.bag__total span { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.bag__total strong { font-weight: 500; font-size: 1.875rem; line-height: 1; }
.bag__note { font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; }

.field { display: grid; gap: .3rem; font-size: .875rem; font-weight: 500; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input {
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  font-weight: 400;
  font-size: 1rem;
}
.field input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: var(--white);
  overflow: hidden;
}
.qty button { width: 2.75rem; border: 0; background: none; font-size: 1.125rem; }
.qty button:hover { background: var(--lime-soft); }
.qty input {
  width: 2.5rem;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button, .qty--sm input { width: 2.4rem; min-height: 2.4rem; font-size: 1rem; }

/* ---------- Hero: la vidriera ---------- */

.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

/* las formas grises del logo, gigantes y recortadas por los bordes */
.hero__ghost { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__ghost i { position: absolute; display: block; background: var(--fog); transform: translateY(calc(var(--sy, 0) * var(--k, .1) * 1px)); }
.hero__ghost i:nth-child(1) {   /* círculo: entra por la derecha */
  --k: -.08;
  width: clamp(22rem, 62vw, 56rem);
  aspect-ratio: 1;
  right: clamp(-28rem, -24vw, -9rem);
  top: 8%;
  border-radius: 50%;
}
.hero__ghost i:nth-child(2) {   /* triángulo: abajo a la izquierda */
  --k: .12;
  width: clamp(16rem, 34vw, 30rem);
  aspect-ratio: 1;
  left: -6%;
  bottom: -14%;
  clip-path: polygon(0 0, 100% 62%, 12% 100%);
}
.hero__ghost i:nth-child(3) {   /* cuadrado: arriba a la izquierda */
  --k: .05;
  width: clamp(7rem, 14vw, 13rem);
  aspect-ratio: 1;
  left: 34%;
  top: -5rem;
  rotate: 18deg;
}

.hero__in { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.hero__copy { display: grid; gap: var(--s2); align-content: center; }
.hero__where { color: var(--ink); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 13.5vw, 7.25rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__title em { display: block; font-style: italic; }

.hero__today { display: grid; gap: .3rem; margin-top: var(--s1); }
.hero__clue {
  justify-self: start;
  min-height: 2.75rem;
  font-size: clamp(1.125rem, 3.6vw, 1.375rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 3px no-repeat;
  padding-bottom: .35rem;
}
.hero__clue:hover { color: var(--ink); background-size: 100% 100%; }
.hero__clue [data-answer]::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: .12em;
  vertical-align: -.12em;
  background: currentColor;
  opacity: 0;
}
.hero__clue.is-typing [data-answer]::after { opacity: 1; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hero__text { max-width: 38ch; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s1); }

/* La vidriera: tres prendas con las formas del logo */
.window {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  aspect-ratio: 1 / 1.08;
  width: 100%;
}
.window__item {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--paper-2);
}
.window__item img { width: 100%; height: 100%; object-fit: cover; }
.window__item--main { grid-column: 1 / 8; grid-row: 1 / 13; z-index: 1; }
.window__item--main::before {    /* marco de vidriera */
  content: "";
  position: absolute;
  inset: -.7rem;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.window__item--round {
  grid-column: 7 / 13;
  grid-row: 1 / 7;
  z-index: 2;
  align-self: start;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  outline: .6rem solid var(--paper);
}
.window__item--side { grid-column: 8 / 12; grid-row: 7 / 12; margin-top: 1.5rem; }
.window__item--side img { aspect-ratio: 1; }

.window__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  max-width: 85%;
  padding: .55rem .8rem .6rem;
  background: var(--paper);
  font-size: .8125rem;
  line-height: 1.3;
}
.window__name { font-weight: 500; }
.window__price { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.window__item:hover .window__name { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.window__item--round .window__tag { left: 50%; bottom: 10%; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.window__item--side .window__tag { left: auto; right: -.5rem; bottom: -1rem; }
@media (max-width: 599px) {
  .window__item--round .window__tag, .window__item--side .window__tag { display: none; }
}

.window__tri, .window__sq { position: absolute; z-index: 3; background: var(--lime); pointer-events: none; }
.window__tri { width: clamp(2.5rem, 7vw, 4.5rem); aspect-ratio: 1; left: 50%; top: -1.4rem; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.window__sq { width: clamp(1.4rem, 3.6vw, 2.4rem); aspect-ratio: 1; right: 3%; bottom: 2%; rotate: -12deg; }
.window__empty { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 4rem; }
.window--few .window__item--main { grid-column: 1 / 10; }

@media (min-width: 960px) {
  .hero { padding-top: clamp(2rem, 4vw, 3rem); }
  .hero__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: clamp(3rem, 6vw, 6rem);
    min-height: calc(100svh - var(--nav-h) - 6rem);
  }
  .hero__title { font-size: clamp(4.25rem, 7.4vw, 7.5rem); }
  .window { max-height: calc(100svh - var(--nav-h) - 5rem); aspect-ratio: auto; height: min(46rem, calc(100svh - var(--nav-h) - 5rem)); }
}

/* Entrada: la persiana de la vidriera sube y las formas caen */
.js .window__item { clip-path: inset(100% 0 0 0); animation: blind 1.1s var(--ease-out) forwards; }
.js .window__item--main { animation-delay: .1s; }
.js .window__item--round { animation-delay: .35s; }
.js .window__item--side { animation-delay: .55s; }
.js .window__tri { animation: drop-tri .9s .9s var(--ease-out) backwards; }
.js .window__sq { animation: drop-sq .9s 1.05s var(--ease-out) backwards; }
@keyframes blind { to { clip-path: inset(-2rem -2rem -2rem -2rem); } }
@keyframes drop-tri { from { opacity: 0; transform: translate(-2rem, -3rem) rotate(-40deg); } }
@keyframes drop-sq { from { opacity: 0; transform: translate(1.5rem, -4rem) rotate(50deg); } }
.js .hero__copy > * { animation: rise .9s var(--ease-out) backwards; }
.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .22s; }
.js .hero__copy > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }

/* ---------- Promo ---------- */

.promo { background: var(--ink); color: var(--paper); }
.promo p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1.25rem;
  padding-block: 1.1rem;
}
.promo__label { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.promo__text { font-family: var(--serif); font-size: clamp(1.375rem, 3.4vw, 1.875rem); line-height: 1.15; }

/* ---------- Entradas por categoría ---------- */

.doors {
  display: grid;
  gap: 0;
  padding-top: var(--section);
}
.door {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  grid-template-areas: "img label" "img count";
  align-items: center;
  column-gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
  text-decoration: none;
}
.door:last-child { border-bottom: 1px solid var(--line-strong); }
.door img { grid-area: img; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); transition: transform .6s var(--ease-out); }
.door__label { grid-area: label; display: flex; align-items: center; align-self: end; }
.door__name { font-family: var(--serif); font-size: clamp(2.5rem, 9vw, 3.5rem); line-height: 1; }
.door .shape { width: .9rem; height: .9rem; margin-right: .9rem; }
.door__count { grid-area: count; align-self: start; padding-top: .35rem; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.door:hover { color: var(--ink); }
.door:hover .door__name { font-style: italic; }
.door:hover .door__count { color: var(--ink); }

@media (min-width: 760px) {
  .doors { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
  .door {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "label" "count";
    padding: 0;
    border: 0;
  }
  .door:last-child { border: 0; }
  .door img { aspect-ratio: 3 / 4; margin-bottom: 1.1rem; }
  .door:nth-child(3n + 2) { margin-top: clamp(2rem, 6vw, 5rem); }
  .door__label { padding-top: .9rem; border-top: 1px solid var(--ink); }
  .door__name { font-size: clamp(2.5rem, 4.4vw, 4rem); }
  .door:hover img { transform: scale(1.025); }
  .door { overflow: hidden; }
}

/* ---------- Catálogo ---------- */

.catalog { padding: var(--section) 0 calc(var(--section) * .8); }
.catalog.is-loading .catalog__body { opacity: .45; transition: opacity .2s; }

.catalog__head {
  display: grid;
  gap: .6rem;
  margin-bottom: var(--s4);
}
.catalog__kicker { display: flex; align-items: center; }
.catalog__kicker .shape { width: .6rem; height: .6rem; margin-right: .35rem; }
.catalog__kicker .shape:last-of-type { margin-right: .8rem; }
.catalog__size { font-family: var(--sans); font-size: .28em; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; vertical-align: .5em; color: var(--ink-soft); }
.catalog__count { color: var(--ink-soft); font-size: .9375rem; }
@media (min-width: 700px) {
  .catalog__head { grid-template-columns: 1fr auto; align-items: end; column-gap: var(--s4); }
  .catalog__kicker { grid-column: 1 / -1; }
  .catalog__count { padding-bottom: .5rem; }
}

.filters { display: grid; gap: var(--s2); margin-bottom: var(--s5); padding-top: var(--s2); border-top: 1px solid var(--ink); }

.chips {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  background: linear-gradient(var(--ink), var(--ink)) 0 calc(100% - .35rem) / 0 1.5px no-repeat;
  transition: color .2s, background-size .3s var(--ease-out);
}
.chip .shape { width: .55rem; height: .55rem; margin-right: .5rem; }
.chip:hover { color: var(--ink); }
.chip[aria-current] { color: var(--ink); background-size: 100% 1.5px; }

.sizes { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.sizes__label { flex: none; }
.sizes__list {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  margin-right: calc(var(--gutter) * -1);
  padding: .25rem var(--gutter) .25rem .1rem;
  scrollbar-width: none;
}
.sizes__list::-webkit-scrollbar { display: none; }
.size {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 .65rem;
  border: 1px solid var(--line-strong);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.size:hover { border-color: var(--ink); color: var(--ink); }
.size[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.filters__form { display: flex; flex-wrap: wrap; gap: .6rem; }
.search {
  flex: 1 1 14rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  padding: 0 .1rem;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-soft);
}
.search:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1rem; color: var(--ink); outline: none; }
.select select {
  min-height: 3rem;
  padding: 0 2.4rem 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232B2B2B' stroke-width='1.4'/%3E%3C/svg%3E") right 1rem center / .7rem no-repeat;
  -webkit-appearance: none;
  appearance: none;
  font-size: .9375rem;
}
.filters__form .btn { min-height: 3rem; padding-block: .5rem; }
@media (min-width: 900px) {
  .filters { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s4); }
  .chips { margin: 0; padding-inline: 0; }
  .sizes { grid-column: 1 / -1; }
  .sizes__list { margin-right: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .filters__form { grid-row: 1; grid-column: 2; justify-content: flex-end; }
  .search { flex: 0 1 20rem; }
}

/* grilla: sin cajas; la foto manda */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s2);
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s4); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s var(--ease), transform .8s var(--ease-out);
}
.card__alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.035); }
  .card:hover .card__alt { opacity: 1; }
}
.noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: clamp(3rem, 10vw, 5rem); }
.noimg .shape { margin: 0; background: var(--fog); }
.card__badge {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  background: var(--paper);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card__badge .shape { width: .5rem; height: .5rem; margin-right: .45rem; }
.card__badge--sale { background: var(--lime); }
.card__video {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .15rem .55rem;
  background: rgba(43, 43, 43, .8);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.is-out .card__media img { filter: grayscale(1); opacity: .6; }

.card__info { display: flex; flex-direction: column; gap: .25rem; flex: 1; padding-top: .9rem; }
.card__cat { font-size: .6875rem; }
.card__name { font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.3; }
.card__name a { text-decoration: none; }
.card__name a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.card__price { font-weight: 400; font-size: 1.0625rem; line-height: 1.3; }
.card__price del { font-size: .85em; color: var(--ink-soft); margin-right: .2rem; }
.card__ask { font-size: .9375rem; color: var(--ink-soft); }
.card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .7rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.card__sizes del { color: var(--rope); text-decoration-thickness: 1px; }
.card__action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.card__action::after { content: "→"; margin-left: .5rem; letter-spacing: 0; transition: transform .3s var(--ease-out); }
.card__action:hover { color: var(--ink); border-bottom-color: var(--lime); }
.card__action:hover::after { transform: translateX(4px); }
.card__info > :nth-last-child(2) { margin-bottom: .4rem; }
.is-out .card__action { color: var(--ink-soft); border-bottom-color: var(--rope); }

.empty {
  display: grid;
  gap: .5rem;
  padding: var(--s5) 0;
  max-width: 40rem;
}
.empty__title { font-family: var(--serif); font-size: 1.875rem; line-height: 1.15; }
.empty a { font-weight: 500; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

/* ---------- El local ---------- */

.local {
  position: relative;
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.local__in { display: grid; gap: var(--s5); }
.local__copy { display: grid; gap: var(--s3); align-content: start; }
.local__kicker { display: flex; align-items: center; color: rgba(244, 244, 242, .7); }
.local__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.local__title em { color: var(--lime); }
.local__text { max-width: 40ch; color: rgba(244, 244, 242, .78); font-size: 1.125rem; }
.local__data { display: grid; }
.local__data div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(244, 244, 242, .18); }
.local__data div:last-child { border-bottom: 1px solid rgba(244, 244, 242, .18); }
.local__data dt { color: rgba(244, 244, 242, .6); padding-top: .2rem; }
.local__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }

.local__photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 3.2rem));
}
.local__ph { position: relative; overflow: hidden; background: #3A3A3A; }
.local__ph img { width: 100%; height: 100%; object-fit: cover; }
.local__ph--a { grid-column: 1 / 4; grid-row: 1 / 8; }
.local__ph--b { grid-column: 3 / 7; grid-row: 2 / 5; z-index: 1; outline: .5rem solid var(--ink); }
.local__ph--c { grid-column: 4 / 7; grid-row: 5 / 9; outline: .5rem solid var(--ink); }
.local__dot {
  position: absolute;
  z-index: 2;
  left: 44%;
  top: 72%;
  width: clamp(3.5rem, 9vw, 6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
}
@media (min-width: 960px) {
  .local__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: var(--s6); align-items: center; }
  .local__photos { grid-template-rows: repeat(8, minmax(0, 4.6rem)); }
}

/* ---------- Cómo comprar ---------- */

.how { padding: var(--section) 0; }
.how__head { display: grid; gap: .8rem; margin-bottom: var(--s5); }
.how__lead { max-width: 34ch; font-size: 1.125rem; color: var(--ink-soft); }
.how__steps { display: grid; counter-reset: paso; }
.how__steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink);
}
.how__steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.how__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 2.5rem; line-height: .9; color: var(--ink-soft); }
.how__steps h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.how__steps p { font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }
.how__steps li:hover .how__num { color: var(--ink); }

@media (min-width: 900px) {
  .how__head { grid-template-columns: auto 1fr; align-items: end; column-gap: var(--s6); }
  .how__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s4); }
  .how__steps li { grid-template-columns: 1fr; row-gap: .5rem; padding: 1.25rem 0 0; }
  .how__steps li:last-child { border-bottom: 0; }
  .how__num { grid-row: auto; font-size: 4rem; margin-bottom: .75rem; }
}

/* ---------- Pie ---------- */

.foot {
  padding: var(--s6) 0 6rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(244, 244, 242, .12);
}
.home .foot { border-top-color: rgba(244, 244, 242, .12); }
.foot__in { display: grid; gap: var(--s4); }
.foot__brand { display: grid; gap: .9rem; }
.foot__logo { display: block; width: min(15rem, 70%); color: var(--paper); }
.foot__logo:hover { color: var(--paper); }
.foot__logo .logo { width: 100%; height: auto; }
.foot__tag { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 244, 242, .6); }
.foot .label { margin-bottom: .6rem; color: rgba(244, 244, 242, .6); }
.foot__col p + p { margin-top: .3rem; }
.foot__col a { text-decoration-color: var(--lime); }
.foot__col a:hover { color: var(--lime); }
.foot__muted { color: rgba(244, 244, 242, .6); font-size: .9375rem; }
.foot__links { display: grid; gap: .1rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 2.5rem; text-decoration: none; }
.foot__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin-top: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid rgba(244, 244, 242, .18);
  text-align: center;
  font-size: .75rem;
  color: rgba(244, 244, 242, .7);
}
.foot__legal a { color: var(--paper); font-weight: 500; text-decoration-color: var(--lime); }
.foot__legal a:hover { color: var(--lime); }
@media (min-width: 800px) {
  .foot { padding-bottom: 6.5rem; }
  .foot__in { grid-template-columns: 1.4fr 1fr 1fr 1fr; column-gap: var(--s5); align-items: start; }
  .foot__legal { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-width: 3.5rem;
  height: 3.5rem;
  padding: 0 .95rem;
  background: var(--ink);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(43, 43, 43, .5);
  transition: background-color .25s, color .25s;
}
.wa-float:hover { color: var(--ink); background: var(--lime); }
.wa-float svg { flex: none; color: var(--lime); transition: color .25s; }
.wa-float:hover svg { color: var(--ink); }
.wa-float__label { display: none; padding-right: .2rem; }
@media (min-width: 768px) { .wa-float__label { display: inline; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 2rem);
  padding: .85rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button {
  margin-left: .75rem;
  border: 0;
  background: none;
  color: var(--lime);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ---------- Producto ---------- */

.product { padding-bottom: var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: var(--s3); padding-bottom: var(--s3); }
.product__in { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .product__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .product__info { position: sticky; top: 6rem; }
}

.gallery { display: grid; gap: .75rem; }
.gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mint-soft);
}
.gallery__main img, .gallery__main video { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery__main .is-swapping { opacity: 0; }
.gallery__main img[data-gallery-main] { cursor: zoom-in; }
.gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button {
  position: relative;
  flex: none;
  width: 4.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper-2);
  overflow: hidden;
  opacity: .65;
  transition: opacity .2s;
}
.gallery__thumbs button[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--berry); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__vthumb { display: block; aspect-ratio: 4 / 5; background: var(--ink); }
.gallery__play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.gallery__zoom {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .4rem .9rem .4rem .75rem;
  border: 0;
  border-radius: 0;
  background: rgba(244, 244, 242, .94);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(43, 43, 43, .18);
}
.gallery__zoom:hover { background: var(--ink); color: var(--paper); }
.gallery__zoom[hidden] { display: none; }

.product__info { display: grid; gap: var(--s2); align-content: start; }
.product__cat { font-size: 1.125rem; }
.product__name {
  font-family: var(--serif);
  
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.product__price { font-weight: 400; font-size: 1.75rem; }
.product__price del { font-weight: 400; font-size: .7em; color: var(--ink-soft); margin-right: .3rem; }
.product__soldout { font-family: var(--hand); font-weight: 600; font-size: 1.25rem; color: var(--berry); }

.buy { display: grid; gap: var(--s3); padding: var(--s3) 0; border-block: 1px solid var(--line-strong); }
.buy fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.buy legend { padding: 0; margin-bottom: .6rem; font-family: var(--hand); font-weight: 600; font-size: 1.125rem; color: var(--mint-deep); }
.buy.is-invalid legend { color: var(--berry); }
.buy__sizes-list, .buy__opts-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.buy__hint { margin-top: .6rem; font-size: .875rem; color: var(--ink-soft); }
.buy__hint a { color: var(--berry); font-weight: 600; }

.label-size, .opt { position: relative; cursor: pointer; }
.label-size input, .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.label-size span:not(.sr) {
  display: grid;
  place-items: center;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0 .75rem;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  outline: 1px dashed transparent;
  outline-offset: -5px;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background-color .15s, color .15s, outline-color .15s;
}
.label-size:hover span:not(.sr) { outline-color: var(--rope); }
.label-size input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; outline-color: rgba(244, 244, 242, .6); }
.label-size input:focus-visible + span { box-shadow: 0 0 0 2px var(--berry); }
.label-size.is-out { cursor: not-allowed; }
.label-size.is-out span:not(.sr) {
  color: var(--rope);
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--berry) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--paper-2);
  box-shadow: none;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem 1.1rem;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: .9375rem;
}
.opt input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.opt input:focus-visible + span { box-shadow: 0 0 0 2px var(--berry); }

.buy__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.buy__row .btn { flex: 1 1 12rem; }

.product__desc { display: grid; gap: .8rem; max-width: 60ch; }
.product__meta { display: grid; gap: .5rem; font-size: .9375rem; }
.product__meta div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.product__meta dt { font-family: var(--hand); font-weight: 600; color: var(--mint-deep); }
.product__meta a { color: var(--berry); }
.product .card__sizes { font-size: 1rem; }

.related { padding-top: var(--section); }
.related h2 { margin-bottom: var(--s4); }
.related h2 em { font-style: italic; }

/* ---------- Zoom de fotos ---------- */

.lb {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: rgb(26 26 26 / var(--lb-fade, 1));
  color: var(--paper);
  overflow: hidden;
}
.lb[open] { animation: lb-in .25s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb::backdrop { background: transparent; }
.lb__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-out; outline: none; }
.lb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.lb.is-zoomed .lb__img { cursor: grab; }
.lb.is-zoomed .lb__img:active { cursor: grabbing; }
.lb.is-loading .lb__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5.5rem;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 2px solid rgba(244, 244, 242, .3);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: lb-spin .8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 244, 242, .14);
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
  transition: background-color .2s;
}
.lb__btn:hover { background: rgba(244, 244, 242, .28); }
.lb__close { top: calc(.75rem + env(safe-area-inset-top)); right: .75rem; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { left: .75rem; }
.lb__next { right: .75rem; }
.lb__count { position: absolute; z-index: 2; top: calc(1.5rem + env(safe-area-inset-top)); left: 1rem; font-size: .875rem; letter-spacing: .08em; }
.lb__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: .45rem .9rem;
  border-radius: 0;
  background: rgba(244, 244, 242, .14);
  font-size: .8125rem;
  white-space: nowrap;
  pointer-events: none;
}
.lb.is-zoomed .lb__hint { display: none; }
@media (hover: none) { .lb__prev, .lb__next { display: none; } }
@media (hover: hover) { .lb__hint::after { content: " · usá la rueda o las flechas"; } }

/* ---------- 404 ---------- */

.notfound { display: grid; gap: var(--s4); align-items: center; padding-block: var(--section); }
.notfound > div:last-child { display: grid; gap: var(--s2); justify-items: start; max-width: 34rem; }
.notfound__eyes { font-size: clamp(6rem, 22vw, 12rem); line-height: 1; }
@media (min-width: 800px) { .notfound { grid-template-columns: auto 1fr; gap: var(--s6); } }

/* ---------- Dos precios ---------- */

.card__card { font-size: .8125rem; color: var(--ink-soft); line-height: 1.3; }
.product__card { margin-top: -.6rem; font-size: .9375rem; color: var(--ink-soft); }
.product__card strong { font-weight: 500; font-size: 1.125rem; color: var(--ink); }
.prices__label { font-family: var(--hand); font-weight: 500; color: var(--mint-deep); }
.bag__total--card span { font-family: var(--sans); font-size: .875rem; color: var(--ink-soft); }
.bag__total--card strong { font-size: 1.375rem; color: var(--ink-soft); }
.bag__total[hidden] { display: none; }
.bag__wa {
  justify-self: center;
  min-height: 2.75rem;
  border: 0;
  background: none;
  color: var(--mint-deep);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.bag__wa:hover { color: var(--ink); }

/* ---------- Finalizar compra ---------- */

.checkout { padding-top: var(--s4); padding-bottom: var(--section); }
.checkout__head { display: grid; gap: .3rem; margin-bottom: var(--s4); }
.checkout__empty { display: grid; gap: .5rem; padding: var(--s4) 0; }
.checkout__empty a { color: var(--berry); font-weight: 700; }
.checkout__empty[hidden], .checkout__grid[hidden] { display: none; }
.checkout__grid { display: grid; gap: var(--s5); }
@media (min-width: 960px) {
  .checkout__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .co-summary { position: sticky; top: 6rem; }
}

.co-step { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
.co-step legend {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: var(--s2);
  padding: 0;
  font-family: var(--serif);
  
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
}
.co-step__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--mint);
  font-family: var(--hand);
  font-size: 1.0625rem;
  font-weight: 700;
}

.co-choices { display: grid; gap: .6rem; }
.co-choices--rates { margin-top: .6rem; }
.co-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow .2s, background-color .2s;
}
.co-choice:hover { box-shadow: 0 0 0 1px var(--rope); }
.co-choice:has(input:checked) { background: var(--mint-soft); box-shadow: 0 0 0 2px var(--mint-deep); }
.co-choice input, .co-paycard input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--mint-deep); }
.co-choice__body { display: grid; gap: .1rem; }
.co-choice__body strong { font-weight: 700; line-height: 1.3; }
.co-choice__meta { font-size: .875rem; color: var(--ink-soft); }
.co-choice__price { font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
.co-choice__price--soft { font-family: var(--hand); font-weight: 600; font-size: .9375rem; color: var(--mint-deep); }

.co-quote { margin-top: var(--s2); padding: var(--s2); border-radius: 0; background: var(--paper-2); }
.co-quote[hidden] { display: none; }
.co-quote__row { display: flex; gap: .5rem; }
.co-quote__row input { flex: 1; min-width: 0; }
.co-quote__row .btn { min-height: 2.75rem; padding-block: .4rem; }
.co-quote__msg { margin-top: .5rem; font-size: .875rem; color: var(--ink-soft); }
.co-quote__msg:empty { display: none; }

.co-pay { display: grid; gap: .75rem; }
@media (min-width: 560px) { .co-pay { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.co-paycard {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow .2s, background-color .2s;
}
.co-paycard input { margin-top: .25rem; }
.co-paycard:hover { box-shadow: 0 0 0 1px var(--rope); }
.co-paycard:has(input:checked) { background: var(--mint-soft); box-shadow: 0 0 0 2px var(--mint-deep); }
.co-paycard--mp:has(input:checked) { background: #EAF4FB; box-shadow: 0 0 0 2px #0A74B9; }
.co-paycard--mp input { accent-color: #0A74B9; }
.co-paycard__body { display: grid; gap: .15rem; }
.co-paycard__title { font-weight: 700; }
.co-paycard__total { font-weight: 500; font-size: 1.75rem; line-height: 1.1; }
.co-paycard__meta { font-size: .8125rem; color: var(--ink-soft); line-height: 1.4; }

.co-fields { display: grid; gap: .9rem; }
@media (min-width: 560px) { .co-fields { grid-template-columns: 1fr 1fr; } .co-fields__wide { grid-column: 1 / -1; } }
.field[hidden] { display: none; }
.co-fields .field input, .co-quote .field input { min-height: 3rem; }

.co-error { margin-bottom: var(--s2); padding: .8rem 1rem; border-radius: 0; background: var(--pink-soft); color: var(--berry-dark); font-weight: 600; }
.co-error[hidden] { display: none; }
.co-submit { min-height: 3.5rem; font-size: 1.0625rem; }
.co-submit:disabled { opacity: .7; cursor: progress; }
.co-note { margin-top: .6rem; font-size: .875rem; color: var(--ink-soft); text-align: center; }

.co-summary__in { display: grid; gap: var(--s2); padding: var(--s3); border-radius: 0; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.co-summary__title { font-family: var(--serif);  font-weight: 600; font-size: 1.5rem; }
.co-summary__list { display: grid; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.co-line--plain { grid-template-columns: 1fr auto; }
.co-line img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; background: var(--mint-soft); }
.co-line__name { font-weight: 600; line-height: 1.3; font-size: .9375rem; }
.co-line__det { font-family: var(--hand); font-size: .875rem; color: var(--mint-deep); }
.co-line__det:empty { display: none; }
.co-line__warn { font-size: .8125rem; font-weight: 700; color: var(--berry); }
.co-line__price { font-weight: 500; white-space: nowrap; }
.co-line.is-off { opacity: .55; }
.co-summary__totals { display: grid; gap: .4rem; }
.co-summary__totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.co-summary__totals dd { margin: 0; font-weight: 600; text-align: right; }
.co-summary__total { padding-top: .6rem; border-top: 1px solid var(--line); }
.co-summary__total dt { font-weight: 700; }
.co-summary__total dd { font-size: 1.5rem; font-weight: 500; }
.co-summary__hint { font-size: .8125rem; color: var(--berry); font-weight: 600; }
.co-summary__hint[hidden] { display: none; }

/* ---------- Gracias ---------- */

.thanks { display: grid; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--section); }
@media (min-width: 960px) { .thanks { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: var(--s6); } }
.thanks__card { display: grid; gap: var(--s2); justify-items: start; }
.thanks__eyes { font-size: clamp(4rem, 14vw, 6.5rem); }
.thanks__text { max-width: 44ch; color: var(--ink-soft); font-size: 1.0625rem; }
.thanks__ref { font-size: .9375rem; color: var(--ink-soft); }
.thanks__ref strong { color: var(--ink); letter-spacing: .02em; }
.thanks__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s1); }
.thanks__card--rechazado .display { color: var(--berry); }
.thanks__detail { padding: var(--s3); border-radius: 0; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.thanks__detail .co-summary__title { margin-bottom: .4rem; }

.transfer { width: 100%; max-width: 30rem; padding: var(--s3); border-radius: 0; background: var(--mint-soft); border-left: 4px solid var(--lime); }
.transfer__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: var(--s2); }
.transfer__total span { font-family: var(--hand); font-weight: 600; color: var(--mint-deep); }
.transfer__total strong { font-weight: 500; font-size: 2rem; }
.transfer__data { display: grid; gap: .6rem; }
.transfer__data div { display: grid; gap: .1rem; }
.transfer__data dt { font-size: .8125rem; color: var(--ink-soft); }
.transfer__data dd { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0; font-weight: 700; font-size: 1.0625rem; word-break: break-all; }
.transfer__copy {
  flex: none;
  min-height: 2.5rem;
  padding: .3rem .9rem;
  border: 1.5px solid var(--mint-deep);
  border-radius: 0;
  background: var(--white);
  color: var(--mint-deep);
  font-size: .8125rem;
  font-weight: 700;
}
.transfer__copy:hover { background: var(--mint-deep); color: var(--white); }
.transfer__soon { font-size: .9375rem; }

/* ---------- Ajustes Tentaciones sobre la base ---------- */

/* rótulos de formularios y fichas: versalitas, no letra grande */
.buy legend, .product__meta dt, .prices__label, .co-line__det, .co-choice__price--soft, .transfer__total span, .label-size span:not(.sr), .product__soldout {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.buy legend, .product__meta dt, .prices__label, .co-line__det, .transfer__total span { font-size: .75rem; color: var(--ink-soft); }
.label-size span:not(.sr) { font-size: .8125rem; letter-spacing: .06em; }
.product__soldout { font-size: .875rem; color: var(--alert); }
.product__cat { display: inline-flex; align-items: center; }
.product__name { font-weight: 400; line-height: .98; font-size: clamp(2.4rem, 5.4vw, 3.75rem); }
.product__price { font-weight: 400; }
.co-step legend, .co-summary__title, .checkout__head .display { font-weight: 400; }
.co-step legend { font-family: var(--serif); font-size: 1.75rem; }
.co-step__num { font-family: var(--sans); font-size: .875rem; font-weight: 500; background: var(--lime); }
.co-choice:has(input:checked), .co-paycard:has(input:checked) { background: var(--lime-soft); box-shadow: 0 0 0 2px var(--ink); }
.co-choice input, .co-paycard input { accent-color: var(--ink); }
.co-error { background: #F7E3E7; color: var(--alert); }
.gallery__main, .gallery__thumbs button, .card__media { border-radius: 0; }
.gallery__main { background: var(--paper-2); }
.gallery__thumbs button[aria-current] { box-shadow: 0 0 0 2px var(--ink); }
.label-size input:checked + span { outline-color: transparent; }
.label-size.is-out span:not(.sr) { background: linear-gradient(to top right, transparent calc(50% - .5px), var(--ink-soft) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)), var(--paper-2); }
.lb { background: rgb(26 26 26 / var(--lb-fade, 1)); }

/* 404 y gracias: las tres formas del logo */
.notfound__shapes { display: flex; align-items: center; gap: .3em; font-size: clamp(4rem, 14vw, 8rem); }
.notfound__shapes .shape { margin: 0; }
.thanks__card .notfound__shapes { font-size: clamp(3rem, 10vw, 4.5rem); }
.js .notfound__shapes .shape { animation: drop-sq .9s var(--ease-out) backwards; }
.js .notfound__shapes .shape:nth-child(2) { animation-delay: .12s; }
.js .notfound__shapes .shape:nth-child(3) { animation-delay: .24s; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .window__item { clip-path: none; animation: none; }
  .hero__ghost i { transform: none; }
  .card:hover .card__media img { transform: none; }
}

/* En el checkout y en gracias el WhatsApp ya está en la página */
.checkout-page .wa-float, .thanks-page .wa-float { display: none; }
