/* Tema temporal independiente: quitar este enlace restaura la paleta rosa. */
:root {
  --paper: #fff1df;
  --paper-strong: #fffaf1;
  --ink: #302119;
  --soft-ink: #513b2e;
  --muted: #684d3c;
  --line: rgba(112, 65, 32, 0.16);
  --rose: #ab4b20;
  --rose-dark: #783418;
  --sage: #798061;
  --moss: #414d3d;
  --cream: #f6dec1;
  --blush: #efb582;
  --petal: #ffe5c4;
  --pearl: #fffdf7;
  --shadow: 0 34px 90px rgba(126, 70, 29, 0.14);
}

body {
  background:
    radial-gradient(circle at 9% 13%, rgba(239, 181, 130, 0.45), transparent 24rem),
    radial-gradient(circle at 86% 22%, rgba(231, 158, 67, 0.17), transparent 28rem),
    linear-gradient(135deg, #fffbf5 0%, var(--paper) 52%, #f5d1a7 100%);
  background-attachment: fixed;
}

/* No filtros globales: fotos, logotipo e iconos conservan su color real. */
.gift-drift-layer { display: none; }
.button--primary, .header-cta { box-shadow: 0 18px 42px rgba(124, 65, 27, 0.18); }
.hero-sparkle { text-shadow: 0 0 18px rgba(213, 127, 50, 0.5); }
.hero-gallery::before {
  background: rgba(226, 160, 91, 0.3);
  inset: 16% 4% 10% 18%;
  transform: rotate(-5deg);
}
.advisor-card:nth-child(n) {
  --advisor-bg-a: #fff8ec;
  --advisor-bg-b: #f7d8b7;
  --advisor-accent: rgba(179, 84, 33, 0.14);
  --advisor-line: rgba(179, 84, 33, 0.16);
  box-shadow: 0 24px 68px rgba(126, 70, 29, 0.1);
}
.advisor-card:nth-child(2n) { --advisor-bg-b: #efc695; }
.advisor-card span { color: var(--rose-dark); }
.calendar-card__date { background: linear-gradient(150deg, #f1bc82, #ffebca); }
.catalog-placeholder { background: linear-gradient(145deg, #ffebd3, #e8c3a0); }
.empty-catalog--compact {
  background: radial-gradient(circle at 88% 10%, #f7d8b7, transparent 18rem), #fffaf1;
}
.product-card__details summary::after { background-color: #fae4ce; }
.product-card__details[open] summary::after { background-color: #efd0af; }
.occasion-grid a.is-active { box-shadow: 0 0 0 4px rgba(171, 75, 32, 0.34), 0 30px 78px rgba(126, 70, 29, 0.2); }
.calendar-legend span:first-child i { box-shadow: 0 0 0 6px rgba(171, 75, 32, 0.1); }
.product-search:focus-within { box-shadow: 0 0 0 5px rgba(171, 75, 32, 0.1); }

.october-campaign {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
  position: relative;
  isolation: isolate;
  width: min(1240px, calc(100% - 36px));
  margin: 32px auto 0;
  padding: clamp(24px, 3.3vw, 48px);
  border: 1px solid rgba(161, 88, 36, 0.2);
  border-radius: 42px;
  background: radial-gradient(ellipse at 0% 0%, #fffaf2, transparent 75%),
    linear-gradient(140deg, #fff0d9, #f6c28d);
  box-shadow: var(--shadow);
  scroll-margin-top: 120px;
}
.october-campaign__copy, .october-campaign__gallery { min-width: 0; }
.october-campaign__season { display: flex; align-items: center; gap: 10px; }
.october-campaign .eyebrow {
  border-color: rgba(149, 79, 37, 0.2);
  background: rgba(255, 250, 241, 0.7);
  color: var(--rose-dark);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}
.october-campaign h2 {
  margin: 12px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.2rem, 5.2vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 750;
}
.october-campaign h2 em { color: var(--rose-dark); display: block; }
.october-campaign__invitation {
  margin: 26px 0 0;
  max-width: 38ch;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--soft-ink);
}
.october-campaign__note {
  margin: 15px 0 25px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.october-campaign__gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.october-campaign__photo {
  display: block;
  grid-column: span 2;
  aspect-ratio: 1;
  border: 4px solid #fff9ee;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(98, 48, 19, 0.12);
  cursor: zoom-in;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.october-campaign__photo:nth-child(-n+2) { grid-column: span 3; }
.october-campaign__photo:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(98, 48, 19, 0.22); }
.october-campaign__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.october-campaign__gallery-note { grid-column: 1 / -1; margin: 3px 0 0; color: var(--soft-ink); font-size: 0.72rem; line-height: 1.6; text-align: center; }
.october-campaign__controls { margin-top: 20px; }
.october-motion-toggle {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.6);
  color: var(--soft-ink);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.october-campaign a:focus-visible, .october-motion-toggle:focus-visible, .october-dialog button:focus-visible {
  outline: 3px solid var(--rose-dark);
  outline-offset: 5px;
}
.october-ghost-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.october-ghost { animation: octoberFloat 7s ease-in-out infinite; }
.october-ghost--hello { width: 68px; height: 80px; flex-shrink: 0; }
.october-ghost-layer .october-ghost {
  position: absolute;
  width: clamp(65px, 8vw, 120px);
  opacity: 0.55;
}
.october-ghost-layer .october-ghost:nth-child(1) { left: 1%; top: 19%; }
.october-ghost-layer .october-ghost:nth-child(2) { right: 1%; top: 58%; animation-delay: -3s; animation-duration: 9s; }
.october-ghost-layer .october-ghost:nth-child(3) { left: 8%; bottom: 5%; animation-delay: -5s; }
@keyframes octoberFloat {
  0%, 100% { transform: translateY(7px) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
html[data-october-motion="paused"] .october-ghost { animation-play-state: paused; }
.october-dialog {
  padding: 16px;
  width: min(800px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--pearl);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.october-dialog::backdrop { background: rgba(40, 26, 17, 0.8); }
.october-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.october-dialog h2 { margin: 0; font: 700 1rem "Plus Jakarta Sans", sans-serif; }
.october-dialog button { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 24px; background: var(--cream); color: var(--ink); font: inherit; cursor: pointer; }
.october-dialog img { display: block; width: 100%; max-height: calc(100dvh - 136px); object-fit: contain; border-radius: 12px; }
body:has(.october-dialog[open]) { overflow: hidden; }

@media (max-width: 980px) {
  .october-campaign { grid-template-columns: 1fr; gap: 30px; }
  .october-campaign__copy { max-width: 650px; }
  .october-campaign h2 em { display: inline; }
  .october-campaign__invitation { max-width: 50ch; }
}
@media (max-width: 620px) {
  .october-campaign { width: calc(100% - 24px); margin-top: 18px; padding: 24px 18px 18px; border-radius: 30px; }
  .october-campaign h2 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .october-campaign h2 em { display: block; }
  .october-campaign__season { justify-content: space-between; gap: 4px; }
  .october-campaign .eyebrow { font-size: 0.57rem; letter-spacing: 0.07em; padding-inline: 10px; }
  .october-ghost--hello { width: 54px; height: 64px; }
  .october-campaign__invitation { margin-top: 22px; }
  .october-campaign__cta { width: 100%; justify-content: space-between; padding-inline: 18px; }
  .october-campaign__gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .october-campaign__photo, .october-campaign__photo:nth-child(-n+2) { grid-column: span 2; border-width: 3px; border-radius: 16px; }
  .october-campaign__photo:nth-child(5) { grid-column: 2 / span 2; }
  .october-ghost-layer .october-ghost { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .october-ghost { animation: none !important; }
  .october-campaign__photo { transition: none; }
}
