/* Dit i Fet — hoja de estilos */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --tone: #e9e7e2;
  --ink: #1f2b4d;
  --muted: #5f667b;
  --accent: #f7941d;
  --accent-ink: #1f2b4d;
  --dark: #05070a;
  --error: #a3221a;
  --ok: #1f7a4d;

  --display: "Instrument Serif", "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  --m: clamp(16px, 3vw, 40px);
  --max: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { user-select: none; -webkit-user-select: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input, textarea { caret-color: var(--accent); accent-color: var(--ink); }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem); line-height: 0.95; letter-spacing: -0.02em;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.btn:hover { background: #ffa33a; }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2c3c68; }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 8px; }
.btn--ghost:hover { background: var(--surface); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #17924a; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Barra superior */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--m); background: rgba(255, 255, 255, 0.96);
}
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.bar__brand img { width: 44px; height: 44px; }
.bar__brand span { font-family: var(--display); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.bar__nav { display: flex; gap: 26px; font-size: 0.9375rem; }
.bar__nav a { text-decoration: none; padding: 6px 0; }
.bar__nav a:hover { text-decoration: underline; }

/* Portada */
.intro {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 7fr 4fr; gap: var(--m); align-items: center;
  padding: clamp(32px, 6vw, 88px) var(--m) clamp(40px, 6vw, 80px);
}
.intro h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.25rem, 1.8rem + 6vw, 7.5rem); line-height: 0.92; letter-spacing: -0.03em;
  text-wrap: balance;
}
.intro__lead { margin-top: 28px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; max-width: 36ch; }
.intro__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.intro__techs { color: var(--muted); font-size: 0.9375rem; }
.intro__logo img { width: 100%; max-width: 420px; margin-left: auto; animation: spin-in 900ms var(--ease-out) both; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-14deg) scale(0.92); } to { opacity: 1; transform: none; } }

/* Escaparate */
.shop { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--m) clamp(80px, 10vw, 140px); }
.shop__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.shop__hint { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 28px; }
.filters button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 0.9375rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.filters button:hover { background: var(--tone); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.shop__grid li[hidden] { display: none; }
.item {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.shop__grid li:nth-child(4n+2) .item, .shop__grid li:nth-child(4n+3) .item { background: var(--tone); }
.item__art { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.item__art.has-photo { display: block; }
.item__art .gallery__track { height: 100%; aspect-ratio: auto; border-radius: 0; background: transparent; }
.item__art .gallery__dots { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; }
.item__art .gallery__dots i { background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.item__art .gallery__dots i.on { background: var(--ink); }
.item__art .gallery__nav { width: 38px; height: 38px; font-size: 1.5rem; }
.item__art svg { width: 70%; transition: transform 320ms var(--ease-out); }
.item__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms var(--ease-out); }
.item__info { flex: 1; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 4px 20px 20px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; }
.item__name { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; }
.item__tech { grid-column: 1; font-size: 0.9375rem; color: var(--muted); }
.item__go {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 600;
  transition: background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .item:hover .item__art svg, .item:hover .item__art img { transform: scale(1.06); }
  .item:hover .item__go { background: var(--accent); color: var(--accent-ink); }
}
.item:has(.item__info:active) { transform: scale(0.99); }

/* Cómo funciona */
.how { background: var(--ink); color: #fff; padding: clamp(72px, 9vw, 128px) var(--m); }
.how .h2, .how__list { max-width: var(--max); margin-inline: auto; }
.how__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--m); margin-top: 48px; counter-reset: none; }
.how__list h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); line-height: 1; color: var(--accent); }
.how__list p { margin-top: 14px; color: #e3e5ec; max-width: 28ch; }

/* Preguntas */
.faq { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--m); display: grid; grid-template-columns: 4fr 8fr; gap: 32px var(--m); overflow-x: clip; }
.faq__list { display: grid; gap: 8px; }
.faq details { padding: 10px 20px; margin-inline: -20px; transition: background-color 200ms ease; }
.faq details[open] { background: var(--surface); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); padding: 8px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { max-width: 54ch; padding: 4px 0 12px; }

/* Contacto */
.contact { background: var(--surface); padding: clamp(72px, 9vw, 128px) var(--m); }
.contact > * { max-width: var(--max); margin-inline: auto; }
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 1.8rem + 6vw, 7.5rem); line-height: 0.92; letter-spacing: -0.03em; }
.contact__lead { margin-top: 16px; font-size: 1.25rem; }
.contact__list { margin-top: 40px; display: grid; gap: 10px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__big { font-family: var(--display); font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1; color: var(--ink); }
.contact__big span { color: #1fa855; }

/* Pie */
.footer { background: var(--dark); color: #d7d9e0; padding: 40px var(--m); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 0.9375rem; }
.footer__logo { width: 72px; height: 72px; }
.footer p { margin-right: auto; }

/* ---------- Personalizador ---------- */
.wizard {
  width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(760px, calc(100svh - 32px)); max-height: none;
  padding: 0; border: 0; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px rgba(5, 7, 10, 0.35);
}
.wizard[open] { animation: pop 260ms var(--ease-out); }
.wizard::backdrop { background: rgba(5, 7, 10, 0.55); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.wizard__inner { display: grid; grid-template-columns: 5fr 6fr; height: 100%; }
.wizard__preview { background: var(--surface); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; gap: 16px; }
.wizard__art { width: 100%; max-width: 420px; display: flex; gap: 12px; justify-content: center; }
.wizard__art > div { flex: 1; max-width: 420px; }
.wizard__art svg { width: 100%; height: auto; }
.wizard__art small { display: block; text-align: center; color: var(--muted); font-size: 0.875rem; }
.wizard__product { font-family: var(--display); font-size: 2.25rem; line-height: 1; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 18px; aspect-ratio: 1 / 1; background: var(--tone);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); transition: transform 160ms var(--ease-out);
}
.gallery__nav:active { transform: scale(0.94); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(31, 43, 77, 0.25); transition: background-color 160ms ease, width 160ms ease; }
.gallery__dots i.on { width: 20px; border-radius: 999px; background: var(--ink); }
.wizard__body { display: flex; flex-direction: column; padding: 24px 32px 24px; min-height: 0; }
.wizard__top { display: flex; align-items: center; gap: 16px; }
.wizard__progress { flex: 1; height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 320ms var(--ease-out); }
.wizard__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 1.1rem; }
.wizard__close:hover { background: var(--tone); }
.wizard__step { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 28px 2px 8px; }
.wizard__step.is-entering { animation: step-in 280ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wizard__step h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); line-height: 1; letter-spacing: -0.01em; }
.wizard__step .help { margin-top: 10px; color: var(--muted); }
.wizard__error { min-height: 1.5em; color: var(--error); font-weight: 600; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }

/* Opciones */
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.choice { position: relative; }
.choice { user-select: none; -webkit-user-select: none; cursor: pointer; }
.choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  border-radius: 14px; background: var(--surface); cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.choice:hover span { background: var(--tone); }
.choice input:checked + span, .choice.is-on span { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input:active + span { transform: scale(0.97); }
.choices--big { display: grid; grid-template-columns: 1fr 1fr; }
.choices--big .choice span { width: 100%; min-height: 64px; }
.choices--palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 12px; }
.choices--palette .choice span { padding: 0; width: 44px; height: 44px; min-height: 0; border-radius: 50%; justify-content: center; background: transparent; }
.choices--palette .dot { width: 32px; height: 32px; }
.choices--palette .choice input:checked + span, .choices--palette .choice.is-on span { background: #fff; box-shadow: 0 0 0 3px var(--ink); }
.palette-name { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); flex: 0 0 auto; }
.check { width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--muted); flex: 0 0 auto; display: grid; place-items: center; }
.choice input:checked + span .check, .choice.is-on .check { background: var(--ink); box-shadow: none; }
.choice input:checked + span .check::after, .choice.is-on .check::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }

/* Tallas */
.sizes { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sizes__group { grid-column: 1 / -1; margin-top: 8px; font-weight: 600; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; background: var(--surface); border-radius: 14px; }
.qty.has-value { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.qty label { font-weight: 600; }
.qty__ctrl { display: flex; align-items: center; gap: 4px; }
.qty__ctrl button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tone); cursor: pointer; font-size: 1.2rem; line-height: 1; transition: transform 140ms var(--ease-out); }
.qty__ctrl button:active { transform: scale(0.9); }
.qty__ctrl input { width: 44px; height: 36px; text-align: center; border: 0; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--single { max-width: 280px; margin-top: 24px; padding: 12px 12px 12px 20px; }
.total { margin-top: 18px; font-weight: 600; }

/* Campos */
.field { display: grid; gap: 8px; margin-top: 22px; }
.field > span { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="date"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 2px solid transparent; background: var(--surface); font-size: 1.0625rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field ::placeholder { color: #757b8c; }

.upload { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out); }
.upload__btn:active { transform: scale(0.97); }
.upload input:focus-visible + .upload__btn { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload__thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.upload__name { color: var(--muted); font-size: 0.9375rem; word-break: break-all; }
.upload__remove { border: 0; background: none; color: var(--error); font-weight: 600; cursor: pointer; padding: 6px 0; }

/* Resumen */
.summary { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; white-space: pre-line; }
.note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: #fff4e5; }
.done { text-align: left; }
.done p { margin-top: 14px; max-width: 44ch; }

/* Entradas */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 560ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tableta */
@media (max-width: 1024px) {
  .bar__nav { display: none; }
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
  .how__list { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
}

/* Móvil */
@media (max-width: 680px) {
  .bar { padding-block: 10px; }
  .bar__brand img { width: 38px; height: 38px; }
  .bar__brand span { font-size: 1.5rem; }
  .intro { grid-template-columns: 1fr; padding-top: 24px; }
  .intro__logo { order: -1; }
  .intro__logo img { max-width: 132px; margin: 0; }
  .intro__actions .btn { width: 100%; }
  .shop__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item__info { grid-template-columns: 1fr; padding: 0 12px 14px; }
  .item__name { font-size: 1.5rem; }
  .item__tech { font-size: 0.8125rem; }
  .item__art .gallery__nav { width: 30px; height: 30px; font-size: 1.25rem; }
  .item__art .gallery__nav--prev { left: 6px; }
  .item__art .gallery__nav--next { right: 6px; }
  .item__art .gallery__dots { bottom: 6px; }
  .item__go { grid-column: 1; grid-row: auto; margin-top: 10px; justify-content: center; min-height: 38px; }
  .how__list { grid-template-columns: 1fr; }

  .wizard { width: 100vw; height: 100svh; }
  .wizard__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wizard__preview { padding: 10px 16px 8px; gap: 4px; }
  .wizard__art { height: min(30svh, 250px); gap: 8px; }
  .wizard__art > div { flex: 0 1 auto; height: 100%; display: flex; flex-direction: column; align-items: center; min-width: 0; }
  .wizard__art svg { height: 100%; width: auto; max-width: 100%; min-height: 0; flex: 1; }
  .wizard__art small { font-size: 0.75rem; }
  .wizard__product { font-size: 1.25rem; }
  .wizard__body { padding: 12px 16px 16px; }
  .wizard__step { padding-top: 20px; }
  .choices--big { grid-template-columns: 1fr; }
  .sizes { grid-template-columns: 1fr; }
  .wizard__nav .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro__logo img, .wizard[open], .wizard__step.is-entering { animation: none; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .item__art svg, .item__art img { transition: none; }
}

/* Colecciones: tarjetas grandes con dibujo */
.collections { max-width: var(--max); margin: 0 auto; padding: 0 var(--m) clamp(24px, 4vw, 48px); }
.collections--more { padding-top: 0; padding-bottom: clamp(80px, 10vw, 140px); }
.collections__list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); margin-top: 24px; }
.collections--more .collections__list { margin-top: 24px; }
.collection {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 10px; align-content: end; min-height: 300px; padding: clamp(24px, 3vw, 40px);
  padding-right: 40%; border-radius: 24px; text-decoration: none; color: #fff;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}
.collection__art { position: absolute; z-index: -1; right: -4%; top: 50%; width: 46%; transform: translateY(-50%) rotate(-6deg); transition: transform 320ms var(--ease-out); }
.collection__art svg { width: 100%; height: auto; display: block; }
.collection--navidad { background: #8f1d1a; }
.collection--celebra { background: #f3e4dc; color: var(--ink); }
.collection--shop { background: var(--accent); color: var(--ink); }
.collection__name { font-family: var(--display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.collection__text { max-width: 34ch; opacity: 0.9; }
.collection__go {
  justify-self: start; margin-top: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  background: #fff; color: var(--ink);
}
.collection--celebra .collection__go, .collection--shop .collection__go { background: var(--ink); color: #fff; }
.collection:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .collection:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(31, 43, 77, 0.45); }
  .collection:hover .collection__art { transform: translateY(-50%) rotate(0deg) scale(1.04); }
}

/* Pestañas de páginas (debajo de la barra, en todas las páginas) */
.bar { flex-wrap: wrap; row-gap: 10px; }
.tabs { flex-basis: calc(100% + var(--m) * 2); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--m) * -1); padding: 2px var(--m) 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 8px;
  border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.tab__art { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; }
.tab__short { display: none; }
.tab:hover { background: var(--tone); }
.tab:active { transform: scale(0.97); }
.tab[aria-current="page"] { background: var(--ink); color: #fff; }
.tab--navidad[aria-current="page"] { background: #8f1d1a; }

/* Páginas de colección */
.col-intro { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--m) clamp(8px, 2vw, 16px); }
.col-intro__back { display: inline-block; margin-bottom: 20px; color: var(--muted); }
.col-intro h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 1.8rem + 5vw, 6.5rem); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance;
}
.col-intro .intro__lead { max-width: 52ch; }
.shop__grid--col { margin-top: 28px; }
.bar__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 680px) {
  .collections__list { grid-template-columns: 1fr; }
  .collection { min-height: 220px; padding-right: 34%; }
  .collection__art { width: 44%; right: -8%; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
  .tab { flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 4px; border-radius: 16px; font-size: 0.8125rem; white-space: normal; text-align: center; line-height: 1.15; }
  .tab__art { width: auto; height: auto; background: none; font-size: 1.25rem; }
  .tab__long { display: none; }
  .tab__short { display: inline; }
}

/* Colección sin productos todavía */
.soon { margin-top: 28px; padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: #f3e4dc; display: grid; gap: 16px; justify-items: start; }
.soon__title { font-family: var(--display); font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); line-height: 0.95; }
.soon p { max-width: 46ch; }

/* Buscador del escaparate */
.search { position: relative; margin-top: 24px; max-width: 560px; }
.search__icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 54px; padding: 0 52px 0 50px; border: 2px solid var(--tone); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.3); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: 0.875rem;
}
.search input:placeholder-shown ~ .search__clear { display: none; }
.filters { margin-top: 16px; }
.search-more { margin-top: 24px; padding: 20px 24px; border-radius: 18px; background: #fbeee6; }
.search-more ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-more a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.search-more a span { color: #8f1d1a; font-weight: 400; }
.search-empty { margin-top: 8px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--surface); display: grid; gap: 12px; justify-items: start; }
.search-empty__title { font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.05; }

/* Galería de ideas */
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.ideas .idea { aspect-ratio: 1 / 1; }
.ideas .idea img { height: 100%; object-fit: cover; }
.idea { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.idea img { display: block; width: 100%; height: auto; transition: transform 320ms var(--ease-out); }
.idea__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.9375rem; font-weight: 600;
}
@media (hover: hover) and (pointer: fine) { .idea:hover img { transform: scale(1.04); } }
.lightbox { width: min(92vw, 900px); max-height: 92svh; padding: 0; border: 0; border-radius: 22px; background: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 7, 10, 0.8); }
.lightbox__media { position: relative; background: var(--surface); }
.lightbox__media img { display: block; width: 100%; max-height: 74svh; object-fit: contain; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px 18px; }
.lightbox__bar p { font-weight: 600; }
.lightbox__count { color: var(--muted); font-weight: 400; margin-left: 6px; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); cursor: pointer; font-size: 1rem; }

/* Fotos del escaparate enteras, sin recortar (el hueco que sobra queda del color de la tarjeta) */
.item__art .gallery__slide img { object-fit: contain; }
.item:hover .item__art .gallery__slide img { transform: none; }

.sendimg { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 16px; border-radius: 18px; background: var(--surface); }
.sendimg img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.sendimg .btn { margin-top: 12px; }
.sendimg .help { margin-top: 8px; font-size: 0.9rem; }
.wizard__body, .sendimg > div { min-width: 0; }
.sendimg .btn { white-space: normal; text-align: center; }
.done__ref { margin: 8px 0 12px; font-size: 1.05rem; }
.sizes__pick { margin-top: 20px; }
.sizes__pick + .sizes { margin-top: 12px; }
.sizes[hidden] { display: none; }
.idea__name { margin-top: 8px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
