/* ─────────────────────────────────────────────
   Páginas de colección (Winter, y futuras líneas)
   Reusa .bestseller-card, tokens y .feature-split de hero.css.
   Solo agrega: hero de 1 imagen + grilla fija de productos.
   ───────────────────────────────────────────── */

/* Mini-hero: una sola imagen full-bleed en vez del par split */
.feature-split--single .feature-split__images {
  grid-template-columns: 1fr;
}

/* Grilla de productos: fija y multi-fila (NO el carrusel de bestsellers).
   La tarjeta .bestseller-card se reusa tal cual; su `flex` es inerte como
   hijo de grid, así que cada celda 1fr manda. */
.collection {
  background: var(--elor-paper);
  padding: 64px 40px 72px;
}

.collection__container {
  max-width: 1520px;
  margin: 0 auto;
}

.collection__header {
  margin-bottom: 44px;
  max-width: 64ch;
}

.collection__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--elor-ink);
  letter-spacing: 0.005em;
  margin: 0;
}

.collection__intro {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: var(--elor-warm-gray);
  margin: 14px 0 0;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1023px) {
  .collection { padding: 56px 24px 64px; }
  .collection__header { margin-bottom: 28px; }
  .collection__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
  .collection__grid { gap: 14px; }
}

/* ─────────────────────────────────────────────
   Aviso drop Signature (signature.html#drop):
   banda editorial oscura + form nombre/WhatsApp.
   ───────────────────────────────────────────── */

.drop-aviso {
  background: var(--elor-atelier);
  color: var(--elor-bone);
  padding: 72px 40px 80px;
}

.drop-aviso__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.drop-aviso__kicker {
  display: block;
  font-family: var(--font-label);
  font-size: var(--fs-body-s);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--elor-tan);
  margin-bottom: 14px;
}

.drop-aviso__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
}

.drop-aviso__title em {
  font-style: italic;
}

.drop-aviso__copy {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: var(--elor-tan);
  margin: 16px 0 0;
}

.drop-aviso__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.drop-aviso__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  color: var(--elor-bone);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  outline: none;
}

.drop-aviso__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.drop-aviso__input:focus {
  border-color: var(--elor-bone);
}

.drop-aviso__submit {
  flex: 1 1 100%;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--elor-atelier);
  background: var(--elor-bone);
  border: 1px solid var(--elor-bone);
  cursor: pointer;
  transition: opacity 200ms var(--easing-editorial);
}

.drop-aviso__submit:hover { opacity: 0.85; }
.drop-aviso__submit:disabled { opacity: 0.5; cursor: default; }

.drop-aviso__state {
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  line-height: 1.5;
  color: var(--elor-bone);
  margin: 22px 0 0;
}

.drop-aviso__state--err {
  color: #E8B4A0;
}

@media (max-width: 640px) {
  .drop-aviso { padding: 56px 24px 64px; }
  .drop-aviso__input { flex-basis: 100%; }
}

/* ---- Modal FOMO Signature — "Carta de invitación" (rediseño deseo 2026-07-12) ----
   Sin imagen: tarjeta tipográfica centrada con marco grabado en camel, sobre un
   velo con blur que deja entrever la colección. El form reusa .drop-aviso__*
   (mismo circuito drop-form.js); la cara es propia del modal (.drop-fomo__*). */

.drop-fomo {
  position: fixed;
  inset: 0;
  z-index: 900; /* sobre header y brand-switcher; el cart drawer (1000) está oculto en signature */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Los display de autor le ganan al [hidden] de la UA (gotcha del cita-fork):
   sin estas reglas los bloques quedan montados, invisibles y bloqueando clicks. */
.drop-fomo[hidden],
.drop-fomo__actions[hidden],
.drop-fomo__reveal[hidden],
.drop-aviso__form[hidden],
.drop-fomo .drop-aviso__form[hidden] {
  display: none;
}

.drop-fomo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 5, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: drop-fomo-fade 480ms var(--easing-editorial) both;
}

.drop-fomo__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background:
    radial-gradient(130% 80% at 50% -6%, rgba(174, 132, 96, 0.14), transparent 62%),
    #F3ECE0;
  color: var(--elor-ink);
  text-align: center;
  box-shadow: 0 32px 90px rgba(13, 8, 5, 0.45);
  outline: none;
  animation: drop-fomo-rise 620ms var(--easing-editorial) both;
}

/* marco grabado de tarjeta de invitación */
.drop-fomo__panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(106, 79, 31, 0.42);
  pointer-events: none;
  z-index: 2;
}

/* fade de salida al soltar el velo (drop-fomo.js agrega la clase y espera el timeout) */
.drop-fomo--closing .drop-fomo__backdrop,
.drop-fomo--closing .drop-fomo__panel {
  animation: drop-fomo-out 360ms var(--easing-editorial) both;
}

.drop-fomo__content {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 48px);
  padding: clamp(48px, 6vw, 72px) clamp(30px, 5vw, 58px);
  overflow-y: auto;
}

.drop-fomo__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: var(--fs-body-s);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--elor-cognac);
  margin-bottom: 24px;
}

/* hairlines a los lados del kicker (remate de tarjeta) */
.drop-fomo__kicker::before,
.drop-fomo__kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(106, 79, 31, 0.5);
}

.drop-fomo__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}

/* corta el titular por frases enteras (no deja palabras huérfanas) */
.drop-fomo__title span,
.drop-fomo__title em { display: inline-block; }
.drop-fomo__title em { font-style: italic; }

.drop-fomo__whisper {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-body-l);
  color: var(--elor-cognac);
  margin: 16px 0 0;
}

.drop-fomo__copy {
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  line-height: 1.7;
  color: #5A5048;
  max-width: 30rem;
  margin: 20px auto 0;
}

/* el form del modal hereda el circuito de la banda pero con cara editorial:
   inputs de subrayado centrados en vez de caja */
.drop-fomo .drop-aviso__form {
  display: block;
  margin-top: 34px;
}

.drop-fomo .drop-aviso__input {
  display: block;
  width: 100%;
  padding: 13px 2px;
  margin-top: 6px;
  text-align: center;
  color: var(--elor-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.drop-fomo .drop-aviso__input::placeholder { color: rgba(13, 8, 5, 0.45); }

.drop-fomo .drop-aviso__input:focus {
  border-bottom-color: var(--elor-cognac);
}

.drop-fomo .drop-aviso__submit {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 17px 24px;
  letter-spacing: 0.14em;
  color: #F3ECE0;
  background: var(--elor-ink);
  border-color: var(--elor-ink);
}

.drop-fomo__micro {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13, 8, 5, 0.5);
  margin: 16px 0 0;
}

/* el state del form hereda bone (blanco); sobre crema hay que oscurecerlo */
.drop-fomo .drop-aviso__state { color: var(--elor-ink); margin: 18px 0 0; }
.drop-fomo .drop-aviso__state--err { color: #9A3412; }

.drop-fomo__actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
}

.drop-fomo__link {
  padding: 0 0 3px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-label);
  font-size: var(--fs-body-s);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--elor-ink);
  transition: opacity 200ms var(--easing-editorial);
}

.drop-fomo__link:hover { opacity: 0.75; }

.drop-fomo__link--dim {
  color: rgba(13, 8, 5, 0.5);
  border-bottom-color: transparent;
}

.drop-fomo__reveal {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #F3ECE0;
  background: var(--elor-ink);
  border: 1px solid var(--elor-ink);
  cursor: pointer;
  transition: opacity 200ms var(--easing-editorial);
}

.drop-fomo__reveal:hover { opacity: 0.85; }

@keyframes drop-fomo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drop-fomo-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes drop-fomo-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .drop-fomo__backdrop,
  .drop-fomo__panel,
  .drop-fomo--closing .drop-fomo__backdrop,
  .drop-fomo--closing .drop-fomo__panel {
    animation-duration: 1ms;
  }
}

@media (max-width: 760px) {
  .drop-fomo { padding: 16px; }
  .drop-fomo__panel { width: 100%; max-height: calc(100vh - 32px); }
  .drop-fomo__panel::before { inset: 10px; }
  .drop-fomo__content { max-height: calc(100vh - 32px); padding: 46px 26px; }
  .drop-fomo__actions { gap: 22px; flex-wrap: wrap; }
}
