/* ─────────────────────────────────────────────────────────────
   MERCH EN PREVENTA: tarjetas de papel, el sello "Me interesa" y el formulario de la lista de mails.
   Lo usan la sección de la página y la tienda (merch.html, que suma css/tienda.css).
   ───────────────────────────────────────────────────────────── */
.merch { position: relative; padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(90px, 11vw, 160px); }
.merch__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.merch__head .label { grid-column: 1 / -1; }
.merch__title { font-size: clamp(48px, 6.4vw, 112px); line-height: 0.92; }
.merch__title .mask { padding: 0.36em 0.14em 0.44em; margin: -0.36em -0.14em -0.44em; }
.merch__title .melt { display: block; white-space: nowrap; }
.merch__bajada { max-width: 34ch; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; font-style: italic; text-shadow: var(--legible); }
.merch__bajada em { color: var(--accent); font-style: normal; font-weight: 600; }

/* las tarjetas */
.merch__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(22px, 3vw, 40px); }
/* cada tarjeta en su capa: torcida, con sombra y foto, se dibuja una vez y al scrollear solo se mueve */
.merch__item { position: relative; transform: rotate(var(--rot, 0deg)); will-change: transform; }
.merch__item::before { content: ''; position: absolute; z-index: -1; inset: 6px; box-shadow: 0 18px 24px rgba(0, 0, 0, 0.55); pointer-events: none; }
.merch__paper { padding: 10px 10px 16px; }
.merch__ver { display: block; color: var(--ink); }
.merch__foto { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #d7d7d5; }
.merch__foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.merch__ver:hover .merch__foto img { transform: scale(1.05); }
.merch__sello {
  position: absolute;
  top: 10px;
  right: -4px;
  padding: 5px 9px 4px;
  font-size: 10px;
  color: var(--cream);
  background: var(--accent);
  transform: rotate(6deg);
  transition: background-color 0.3s;
}
.merch__item.is-especial .merch__sello { color: var(--ink); background: var(--cream); box-shadow: 0 0 0 1.5px var(--ink); }
.merch__item.is-on .merch__sello { color: var(--cream); background: var(--ink); box-shadow: none; }
.merch__nombre { display: block; margin-top: 14px; font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.merch__detalle { display: block; margin-top: 6px; color: var(--ink-dim); }
.merch__tienda { margin-top: clamp(40px, 5vw, 64px); text-align: center; }

/* el sello "Me interesa" */
.merch__quiero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 9px 12px 8px;
  border: 1.5px dashed var(--ink);
  color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s;
}
.merch__check { display: grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid currentColor; }
.merch__quiero:hover { background: rgba(23, 19, 15, 0.08); }
.merch__quiero[aria-pressed='true'] { border-style: solid; border-color: var(--accent); background: var(--accent); }
.merch__quiero[aria-pressed='true'] .merch__check::after { content: '✓'; font-size: 12px; line-height: 1; }

/* precio */
.precio__valor { display: block; font-family: var(--display); font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.precio__valor s { opacity: 0.45; }
.precio__off { display: inline-block; margin-top: 6px; padding: 3px 7px 2px; color: var(--cream); background: var(--ink); }

/* el formulario */
.merch__form { position: relative; max-width: 880px; margin: clamp(56px, 8vw, 110px) auto 0; padding: clamp(28px, 4.5vw, 56px); --rot: -0.8deg; }
.merch__campos { display: grid; gap: 18px; }
.merch__resumen { font-size: clamp(19px, 1.7vw, 24px); font-style: italic; }
.merch__campo { display: grid; gap: 6px; }
.merch__campo .mono { color: var(--ink-dim); }
.merch__campo input {
  width: 100%;
  padding: 10px 2px 8px;
  font: inherit;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: none;
}
.merch__campo input:focus { border-bottom-color: var(--accent); }
.merch__campo input::placeholder { color: rgba(23, 19, 15, 0.35); }
.merch__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.merch__acepto { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; }
.merch__acepto input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.merch__enviar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.btn--ink { color: var(--paper); background: var(--ink); }
.btn--ink:hover { color: var(--ink); background: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.merch__estado { color: var(--ink-dim); }
.merch__estado[data-tipo='error'] { color: #b8301a; }
.merch__gracias { display: none; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.merch__gracias em { color: #b8301a; font-style: normal; font-weight: 700; }
.merch__gracias .mono { display: block; margin-top: 12px; font-size: 11px; color: var(--ink-dim); }
.merch__form.is-done .merch__campos { display: none; }
.merch__form.is-done .merch__gracias { display: block; }

@media (max-width: 800px) {
  .merch__head { grid-template-columns: 1fr; }
  .merch__title { font-size: clamp(40px, 12.5vw, 72px); }
  .merch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .merch__nombre { font-size: 21px; }
  .merch__detalle { font-size: 10px; }
  .merch__quiero { padding: 8px 9px 7px; font-size: 10px; gap: 7px; }
  .merch__acepto { font-size: 15px; }
}
