/* =========================================================
   CINA — "El joyero abierto"
   ========================================================= */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta */
  --rosa: #DF4C79;          /* rosa del logo: bloques de marca */
  --rosa-hondo: #B8325C;    /* botones y links */
  --rosa-noche: #962649;    /* hover */
  --pano: #F7F1EC;          /* fondo principal */
  --rose: #F1DCD8;          /* fondo secundario */
  --tinta: #2B1B22;         /* texto */
  --tinta-2: #6E5A62;       /* texto secundario */
  --oro: #B89A6A;           /* hilos y divisores (nunca texto) */
  --linea: rgba(43, 27, 34, .14);
  --blanco: #FFFFFF;

  /* Tipografía */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

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

  --radius: 2px;
  --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: 5rem;
}

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

img { display: block; max-width: 100%; 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(--rosa-hondo); }

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

em { font-style: italic; }

.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(--tinta);
  color: var(--pano);
}
.skip:focus { transform: translateY(var(--s2)); color: var(--pano); }

.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.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.display em { color: var(--rosa-hondo); }
.display--sm { font-size: clamp(2rem, 4vw, 3.25rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
/* sobre el rosa del logo el texto chico va en etiqueta clara (contraste AA) */
.eyebrow--light { align-self: flex-start; padding: .4rem .65rem; background: var(--pano); color: var(--tinta); }

.link {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--rosa-hondo);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .15em;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 35% 1px; color: var(--rosa-noche); }
.link--light { color: var(--blanco); font-size: 1.1875rem; font-weight: 700; }
.link--light:hover { color: var(--blanco); }

/* ---------- 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: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  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), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--rosa-hondo); color: var(--blanco); }
.btn--primary:hover { background: var(--rosa-noche); color: var(--blanco); }
.btn--light { background: var(--pano); color: var(--tinta); }
.btn--light:hover { background: var(--tinta); color: var(--pano); }
.btn--ghost { border-color: var(--tinta); background: transparent; color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--pano); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--tinta); border-color: var(--tinta); color: var(--pano); }

/* ---------- Tira + navegación ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 236, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--linea); }

.nav__in {
  display: flex;
  align-items: center;
  gap: var(--s4);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: .9rem var(--gutter);
}
.nav__logo { flex: none; }
.nav__logo img { width: clamp(104px, 11vw, 140px); height: auto; }

.nav__links {
  display: none;
  gap: var(--s4);
  margin-left: auto;
  font-size: .9375rem;
  font-weight: 500;
}
.nav__links a { text-decoration: none; padding-block: .5rem; position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current]::after { transform: scaleX(1); }

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

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .35rem .4rem .35rem 1rem;
  border: 1px solid var(--tinta);
  border-radius: 999px;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.bag-btn:hover { background: var(--tinta); color: var(--pano); }
.bag-btn__count {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--rosa);
  color: var(--blanco);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.bag-btn__count.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  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: 1px;
  background: var(--tinta);
  position: relative;
}
.menu-btn__bars::before { content: ""; position: absolute; top: 7px; width: 14px; }
.menu-btn__bars { transform: translateY(-3px); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: var(--s2); }
  .menu-btn { display: none; }
}
@media (max-width: 359px) {
  .bag-btn__label { display: none; }
  .bag-btn { padding-left: .4rem; }
}

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

dialog {
  padding: 0;
  border: 0;
  color: var(--tinta);
  background: var(--pano);
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(43, 27, 34, .45); }
dialog[open] { animation: none; }

.sheet {
  width: 100%;
  margin: auto 0 0;
  border-radius: 14px 14px 0 0;
  max-height: 88dvh;
  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(--s2); }
.sheet__nav { display: grid; }
.sheet__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px solid var(--linea);
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1.15;
  text-decoration: none;
}
.sheet__nav small { font-family: var(--sans); font-size: .8125rem; color: var(--tinta-2); }
.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: var(--s3);
  font-size: .9375rem;
  font-weight: 600;
}
.sheet__foot a { color: var(--rosa-hondo); }

.bag {
  width: min(440px, 100%);
  height: 100%;
  height: 100dvh;
  margin: 0 0 0 auto;
  display: none;
  flex-direction: column;
  border-left: 1px solid var(--linea);
}
.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(--linea);
}
.bag__head h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.bag__body { flex: 1; overflow-y: auto; padding: 0 var(--s3); overscroll-behavior: contain; }
.bag__empty { padding: var(--s4) 0; color: var(--tinta-2); }
.bag__empty a { color: var(--rosa-hondo); font-weight: 600; }

.bag__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .25rem 1rem;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--linea);
}
.bag__thumb { grid-row: span 2; width: 72px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--rose); }
.bag__name { font-family: var(--serif); font-size: 1.125rem; line-height: 1.2; }
.bag__name a { text-decoration: none; }
.bag__opt { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--tinta-2); margin-top: .15rem; }
.bag__warn { display: block; font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--rosa-hondo); }
.bag__line { font-family: var(--serif); font-size: 1.0625rem; 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(--tinta-2);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.bag__remove:hover { color: var(--rosa-hondo); }

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

.field { display: grid; gap: .3rem; font-size: .875rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--tinta-2); }
.field input {
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(43, 27, 34, .3);
  border-radius: var(--radius);
  background: var(--pano);
  font-weight: 400;
  font-size: 1rem;
}
.field input:focus { outline: 2px solid var(--rosa-hondo); outline-offset: 0; border-color: transparent; }

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(43, 27, 34, .3);
  border-radius: var(--radius);
  background: var(--pano);
}
.qty button {
  width: 2.75rem;
  border: 0;
  background: none;
  font-size: 1.125rem;
}
.qty button:hover { background: var(--rose); }
.qty input {
  width: 2.75rem;
  border: 0;
  background: none;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.125rem;
  -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.5rem; min-height: 2.5rem; font-size: 1rem; }

/* Hero con video */
.hero__piece--video { background: var(--tinta); }
.hero__piece--video video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--tinta);
}
.hero__sound {
  position: absolute;
  top: var(--s2);
  left: var(--gutter);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .45rem .95rem .45rem .8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 241, 236, .94);
  color: var(--tinta);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(43, 27, 34, .18);
  transition: background-color .2s, color .2s;
}
.hero__sound:hover { background: var(--tinta); color: var(--pano); }
.hero__sound-on { display: none; }
.hero__sound[aria-pressed="true"] .hero__sound-on { display: block; }
.hero__sound[aria-pressed="true"] .hero__sound-off { display: none; }
@media (min-width: 900px) {
  .hero__piece--video video { aspect-ratio: 4 / 5; }
  .hero__sound { top: auto; bottom: 1.25rem; left: 1.25rem; }
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 3.5rem;
  height: 3.5rem;
  padding: 0 .8rem;
  border-radius: 999px;
  background: #25D366;
  color: #0B2E17;
  box-shadow: 0 6px 18px rgba(43, 27, 34, .22);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { color: #0B2E17; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 27, 34, .28); }
.wa-float:focus-visible { outline-color: var(--tinta); }
.wa-float svg { flex: none; }
.wa-float__label { display: none; padding-right: .35rem; }
@media (min-width: 768px) {
  .wa-float { right: 1.5rem; bottom: 1.5rem; }
  .wa-float__label { display: inline; }
}
/* que el botón no tape el pie de página */
.foot { padding-bottom: 4.5rem; }
@media (min-width: 768px) { .foot { padding-bottom: 5rem; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom)); /* arriba del botón de WhatsApp */
  z-index: 60;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  background: var(--tinta);
  color: var(--pano);
  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(--blanco);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ---------- Hero "joyero" ---------- */

.hero {
  position: relative;
  display: grid;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}

.hero__lining {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s3);
  padding: var(--s5) var(--gutter) var(--s5);
  background: var(--rosa);
  color: var(--blanco);
}
/* costura del estuche */
.hero__lining::before {
  content: "";
  position: absolute;
  inset: .75rem;
  border: 1px solid rgba(255, 255, 255, .38);
  pointer-events: none;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 7.25rem);
  line-height: .95;
  letter-spacing: -.025em;
  max-width: 11ch;
  text-wrap: balance;
}
.hero__title em { font-weight: 400; }
.hero__text { max-width: 34ch; font-size: 1.1875rem; font-weight: 700; line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s1); }

.hero__piece { position: relative; order: -1; margin: 0; }
.hero__piece a { display: block; }
.hero__piece img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--rose);
}
.hero__label {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s2);
  z-index: 2;
  display: grid;
  gap: .1rem;
  max-width: 70%;
  padding: .7rem 1rem .75rem;
  background: var(--pano);
  font-size: .8125rem;
  line-height: 1.3;
}
.hero__label::before {
  /* agujero de etiqueta */
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pano);
  box-shadow: inset 0 0 0 1px var(--oro);
  transform: translateY(-50%);
}
.hero__label span:first-child { font-size: .6875rem; letter-spacing: .14em; color: var(--tinta-2); }
.hero__label a { font-family: var(--serif); font-size: 1.125rem; text-decoration: none; }
.hero__price { font-family: var(--serif); font-size: 1rem; }

.hero__mark { display: none; }

@media (max-width: 899px) {
  .hero__piece + .hero__lining,
  .hero__lining { margin: -3rem var(--gutter) 0; }
  .hero--mark .hero__lining { margin-top: var(--s3); }
  .hero__label { top: var(--s2); bottom: auto; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero__piece img { aspect-ratio: 16 / 10; }
  .hero__title { font-size: clamp(3.5rem, 9vw, 5.5rem); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    padding: var(--s4) var(--gutter) 0;
    min-height: min(82vh, 820px);
  }
  .hero__lining {
    grid-column: 1 / 9;
    grid-row: 1;
    padding: clamp(3rem, 5vw, 4.5rem) 30% clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
    min-height: min(76vh, 720px);
  }
  .hero__lining::before { inset: 1rem; }
  .hero__title { font-size: clamp(3.5rem, 6.2vw, 6rem); }
  .hero__piece {
    grid-column: 8 / 13;
    grid-row: 1;
    order: 0;
    z-index: 2;
    align-self: start;
    margin-top: clamp(3rem, 7vw, 6rem);
  }
  .hero__piece::before {
    /* hilo dorado desplazado, como un marco de vitrina */
    content: "";
    position: absolute;
    inset: -1rem 1rem 1rem -1rem;
    border: 1px solid var(--oro);
    z-index: -1;
  }
  .hero__piece img { aspect-ratio: 4 / 5; }
  .hero__label { left: auto; right: -0.01rem; bottom: -1.5rem; transform: translateX(0); }

  .hero--mark .hero__lining { grid-column: 1 / 10; padding-right: 30%; }
  .hero__mark {
    display: block;
    grid-column: 8 / 13;
    grid-row: 1;
    z-index: 2;
    align-self: center;
    color: var(--rosa-hondo);
    pointer-events: none;
  }
  .hero__mark img { width: 100%; filter: drop-shadow(0 0 0 transparent); }
}


.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)); gap: var(--s5) var(--s3); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
}

.tag { display: flex; flex-direction: column; min-width: 0; }
.tag__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--rose);
  aspect-ratio: 4 / 5;
}
.tag__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity .5s var(--ease);
}
.tag__alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .tag:hover .tag__media img { transform: scale(1.04); }
  .tag:hover .tag__alt { opacity: 1; }
}
.tag__noimg { display: grid; place-items: center; width: 100%; height: 100%; }
.tag__noimg img { width: 22%; height: auto; opacity: .35; }

.tag__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .6rem;
  background: var(--tinta);
  color: var(--pano);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag__badge--sale { background: var(--rosa-hondo); color: var(--blanco); }
.is-soldout .tag__media img { filter: grayscale(.6); opacity: .7; }

.tag__info {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .15rem .75rem;
  padding-top: .9rem;
  margin-top: .9rem;
  border-top: 1px solid var(--oro);
}
.tag__num { font-size: .6875rem; letter-spacing: .14em; color: var(--tinta-2); grid-column: 1 / -1; }
.tag__name {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.tag__name a { text-decoration: none; }
.tag__name a::after { content: ""; }
.tag__price { font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; }
.tag__price del { color: var(--tinta-2); font-size: .85em; margin-right: .25rem; }
.tag__ask { font-family: var(--sans); font-size: .875rem; color: var(--tinta-2); }

.tag__action {
  justify-self: end;
  min-height: 2.75rem;
  padding: .4rem 0 .4rem .5rem;
  border: 0;
  background: none;
  color: var(--rosa-hondo);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.tag__action:hover { color: var(--rosa-noche); text-decoration-thickness: 2px; }

@media (max-width: 420px) {
  .tag__info { grid-template-columns: 1fr; }
  .tag__action { justify-self: start; padding-left: 0; min-height: 2.5rem; }
}

.empty {
  padding: var(--s6) 0;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  max-width: 44rem;
}
.empty__title { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; margin-bottom: var(--s2); }
.empty a { color: var(--rosa-hondo); font-weight: 600; }

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

.how {
  position: relative;
  padding-block: var(--section);
  background: var(--rosa);
  color: var(--blanco);
  overflow: hidden;
}
.how__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.025em;
  margin-bottom: var(--s6);
}

.how__cta { margin-top: var(--s6); }
.how__steps {
  display: grid;
  gap: var(--s5);
  position: relative;
}
.how__steps li { position: relative; display: grid; gap: .5rem; padding-left: 4.5rem; }
.how__num {
  position: absolute;
  left: 0;
  top: -.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
}
.how__steps h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.how__steps p { font-size: 1.1875rem; font-weight: 700; line-height: 1.45; max-width: 30ch; }

@media (min-width: 900px) {
  .how__steps { grid-template-columns: repeat(3, 1fr); gap: var(--s4); padding-top: var(--s5); }
  .how__steps::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, .6);
  }
  .how__steps li { padding-left: 0; padding-top: var(--s4); }
  .how__steps li::before {
    content: "";
    position: absolute;
    top: calc(var(--s5) * -1 - 6px);
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--rosa);
    box-shadow: inset 0 0 0 1px var(--blanco);
  }
  .how__num { position: static; font-size: 4.5rem; margin-bottom: .5rem; }
  .how__steps h3 { font-size: 2.25rem; }
}

/* ---------- Footer ---------- */

.foot {
  background: var(--tinta);
  color: rgba(247, 241, 236, .78);
  border-top: 1px solid rgba(247, 241, 236, .14);
}
.foot__in {
  display: grid;
  gap: var(--s3);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: var(--s5) var(--gutter) var(--s3);
}
.foot__logo img { width: 128px; }
.foot__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9375rem; }
.foot__links a { display: inline-block; padding: .4rem 0; color: var(--pano); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-top: var(--s2);
  border-top: 1px solid rgba(247, 241, 236, .14);
  font-size: .75rem;
}
.foot__legal a { color: var(--pano); }
.foot__legal a:hover { color: #F4A9BF; }

@media (min-width: 768px) {
  .foot__in { grid-template-columns: auto 1fr; align-items: center; }
  .foot__links { justify-content: flex-end; }
  .foot__legal { grid-column: 1 / -1; }
}

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

/* al saltar a #catalogo, el título queda justo debajo de la barra (el html ya compensa la barra) */
.catalog { padding-block: var(--section); scroll-margin-top: calc(1.25rem - var(--section)); }
.catalog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); }
.catalog__head .display { font-size: clamp(3rem, 9vw, 7rem); }
.catalog__count { color: var(--tinta-2); }
.catalog__body { transition: opacity .25s var(--ease); }
.catalog.is-loading .catalog__body { opacity: .35; pointer-events: none; }

.filters {
  display: grid;
  gap: var(--s2);
  margin-block: var(--s4) var(--s5);
  padding-block: var(--s2);
  border-top: 1px solid var(--tinta);
  border-bottom: 1px solid var(--linea);
}
/* las líneas del filtro alineadas con el contenido, no con el borde de la pantalla */
.filters.wrap { width: calc(100% - var(--gutter) * 2); max-width: var(--max); padding-inline: 0; }
.chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: .25rem var(--gutter);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem 1.1rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--tinta); color: var(--tinta); }
.chip[aria-current] { background: var(--tinta); border-color: var(--tinta); color: var(--pano); }

.chips__label { flex: none; align-self: center; margin-right: .25rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.chip--sm { min-height: 2.5rem; padding: .3rem .9rem; font-size: .875rem; }

.filters__form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.filters__form .btn { display: none; }
.search input,
.select select {
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(43, 27, 34, .3);
  border-radius: var(--radius);
  background: transparent;
  font-size: 1rem;
}
.search input:focus,
.select select:focus { outline: 2px solid var(--rosa-hondo); outline-offset: 0; }
.select select { padding-right: 2rem; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B1B22'/%3E%3C/svg%3E") right .8rem center no-repeat; }

@media (min-width: 900px) {
  .filters { grid-template-columns: 1fr auto; align-items: center; }
  .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .filters__form { grid-template-columns: 16rem auto auto; grid-column: 2; grid-row: 1 / span 2; }
  .chips--material { grid-column: 1; }
  .filters__form .btn { display: inline-flex; min-height: 2.75rem; padding-block: .5rem; }
}

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

.product { padding-bottom: var(--section); }
.crumbs { padding-top: var(--s3); display: flex; flex-wrap: wrap; gap: .5rem; }
.product__in {
  display: grid;
  gap: var(--s4);
  padding-top: var(--s3);
}
.gallery { display: grid; gap: .75rem; min-width: 0; }
.gallery__main {
  background: var(--rose);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery__main img.is-swapping { opacity: 0; }
.gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery__thumbs button {
  display: block;
  width: 4.5rem;
  padding: 0;
  border: 1px solid transparent;
  background: var(--rose);
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.gallery__thumbs button[aria-current],
.gallery__thumbs button:hover { opacity: 1; border-color: var(--tinta); }
.gallery__thumbs img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.product__info { display: grid; align-content: start; gap: var(--s2); }
.product__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.product__price { font-family: var(--serif); font-size: 2rem; line-height: 1.1; padding-bottom: var(--s2); border-bottom: 1px solid var(--oro); }
.product__price del { color: var(--tinta-2); font-size: .6em; margin-right: .35rem; }
.product__price span:not(.tag__ask) { color: var(--rosa-hondo); }
.product__soldout { font-weight: 600; }

.buy { display: grid; gap: var(--s3); margin-top: var(--s1); }
.buy__opts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.buy__opts legend { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: .6rem; padding: 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem 1.1rem;
  border: 1px solid rgba(43, 27, 34, .3);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.opt span:hover { border-color: var(--tinta); }
.opt input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--pano); }
.opt input:focus-visible + span { outline: 2px solid var(--rosa-hondo); outline-offset: 2px; }
.buy.is-invalid .opt span { border-color: var(--rosa-hondo); }
.buy__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.buy__row .qty { min-height: 3.25rem; }
.buy__row .btn { flex: 1 1 12rem; }

.product__desc { max-width: 38rem; color: var(--tinta); margin-top: var(--s2); }
.product__desc p + p { margin-top: 1em; }
.product__meta { margin-top: var(--s2); }
.product__meta > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s2);
  padding: .8rem 0;
  border-top: 1px solid var(--linea);
  font-size: .9375rem;
}
.product__meta dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); padding-top: .15rem; }

.related { padding-top: var(--section); }
.related .display { margin-bottom: var(--s5); }

@media (min-width: 900px) {
  .product__in { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); padding-top: var(--s4); }
  .gallery { grid-template-columns: 5rem 1fr; align-items: start; }
  .gallery__main { margin: 0; grid-column: 2; grid-row: 1; }
  .gallery__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; overflow: visible; }
  .gallery__thumbs button { width: 100%; }
  .product__info { position: sticky; top: 6rem; padding-top: var(--s4); }
}

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

.notfound {
  display: grid;
  gap: var(--s4);
  align-items: center;
  min-height: 60vh;
  padding-block: var(--section);
}
.notfound > div { display: grid; gap: var(--s2); justify-items: start; }
.notfound__mark { width: min(260px, 50%); opacity: .9; }
@media (min-width: 900px) {
  .notfound { grid-template-columns: 4fr 8fr; }
  .notfound__mark { width: 100%; }
}

/* ---------- Revelado ("se abre la tapa") ---------- */

.hero__piece { animation: lid 1.2s .15s var(--ease-out) both; }
.hero__label { animation: rise .6s .9s var(--ease-out) both; }
.hero__mark { animation: rise 1s .2s var(--ease-out) both; }
.hero__title { animation: rise .9s var(--ease-out) both; }
@keyframes lid {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  @keyframes lid {
    from { clip-path: inset(-2rem -2rem 100% -2rem); }
    to { clip-path: inset(-2rem -2rem -3rem -2rem); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- Videos y materiales ---------- */

.gallery__main video { width: 100%; height: 100%; object-fit: cover; background: var(--rose); transition: opacity .3s; }
.gallery__main .is-swapping { opacity: 0; }
.gallery__thumbs button { position: relative; }
.gallery__vthumb { display: block; aspect-ratio: 4 / 5; background: var(--tinta); }
.gallery__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blanco);
  font-size: .9rem;
  text-shadow: 0 1px 6px rgba(43, 27, 34, .6);
}

.tag__video {
  position: absolute;
  right: .75rem;
  top: .75rem;
  padding: .3rem .55rem;
  background: rgba(247, 241, 236, .92);
  color: var(--tinta);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag__video::before { content: "▶ "; font-size: .6rem; }

.chips--material { padding-top: 0; }
