/* Campañas y catálogo de compras */
[data-theme] {
  --campaign-start: #132b57;
  --campaign-end: #134a64;
  --campaign-accent: #a3edf3;
  --campaign-ring: #b4f5ff42;
}

[data-theme="black-friday"] {
  --campaign-start: #161629;
  --campaign-end: #422671;
  --campaign-accent: #e8d7ff;
  --campaign-ring: #e0bcff59;
}

[data-theme="regalos-navidad"] {
  --campaign-start: #13362e;
  --campaign-end: #18584a;
  --campaign-accent: #ffe0a1;
  --campaign-ring: #ffe0a14d;
}

[data-theme="rebajas"] {
  --campaign-start: #1c255c;
  --campaign-end: #314b9f;
  --campaign-accent: #c9dcff;
  --campaign-ring: #c9dcff50;
}

[data-theme="semana-santa"] {
  --campaign-start: #3c1c44;
  --campaign-end: #713963;
  --campaign-accent: #ffdbec;
  --campaign-ring: #ffdbec50;
}

#season-banner, .shop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: linear-gradient(115deg, var(--campaign-start) 12%, var(--campaign-end));
  color: white;
}

#season-banner::after, .shop-hero::after {
  position: absolute;
  z-index: -1;
  inset: -60% -8% auto auto;
  width: clamp(245px, 45vw, 620px);
  aspect-ratio: 1;
  border: 1px solid var(--campaign-ring);
  border-radius: 50%;
  box-shadow: 0 0 0 24px #ffffff08, 0 0 0 56px #ffffff06, 0 0 0 95px #ffffff04;
  content: "";
  pointer-events: none;
}

#season-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2.5vw, 28px);
  padding: clamp(16px, 3vw, 34px);
  border-radius: 20px;
}
#season-banner .eyebrow, .shop-hero .eyebrow { color: var(--campaign-accent); }
#season-banner h2, #season-banner [data-season-description] { color: white; }
#season-banner h2 {
  margin: 4px 0;
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  letter-spacing: -.055em;
  line-height: 1.08;
}

#season-banner [data-season-description] { max-width: 61ch; font-size: .9rem; }
#season-banner .button { flex: 0 0 auto; }

.shop-hero-button {
  width: fit-content;
  border: 1px solid #ffffffb8;
  background: #fff;
  color: #161f3d;
}

.shop-hero-button:hover { background: var(--campaign-accent); color: #121c36; }
.shop-hero-button:focus-visible { outline: 3px solid var(--campaign-accent); outline-offset: 4px; }

.shop-hero {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 300px;
  gap: 16px;
  padding: clamp(27px, 6vw, 80px);
  border-radius: clamp(20px, 3vw, 35px);
}

.shop-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 7vw, 5.75rem);
  font-weight: 810;
  letter-spacing: -.07em;
  line-height: 1;
  text-wrap: balance;
}

.shop-hero-lead {
  max-width: 54ch;
  color: #f1f4ff;
  font-size: clamp(.98rem, 1.65vw, 1.15rem);
  text-wrap: pretty;
}

.shop-hero-catalogue { min-height: 230px; padding-block: clamp(27px, 5vw, 55px); }

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.shop-links .filter-chip { display: inline-flex; align-items: center; text-align: center; }
.shop-links [aria-current="page"] { border-color: var(--blue-dark); background: var(--blue-soft); color: var(--blue-dark); }

.shop-categories, .shop-tier, .shop-picks { scroll-margin-top: 125px; }
.shop-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.shop-category {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 12px;
  min-height: 176px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.shop-category:hover { border-color: #a2b7e9; box-shadow: 0 8px 22px #20356e13; }
.shop-category-image { display: grid; min-height: 140px; place-items: center; border-radius: 11px; background: #f1f5fb; }
.shop-category-image img { width: 100%; height: 128px; padding: 8px; object-fit: contain; }
.shop-category-copy { display: grid; gap: 6px; }
.shop-category-copy h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.16; }
.shop-category-copy p:not(.eyebrow) { color: var(--secondary); font-size: .86rem; }
.shop-category-action { display: flex; align-items: center; gap: 6px; color: var(--blue-dark); font-size: .82rem; font-weight: 730; }
.shop-category-action .icon { width: 16px; height: 16px; }

.shop-tip {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 17px;
  border: 1px solid #d6e1f4;
  border-radius: 13px;
  background: #eef3fd;
  color: #233a67;
  font-size: .91rem;
}

.shop-tip .icon { flex: 0 0 auto; width: 18px; height: 18px; }
.shop-method { margin-top: 10px; max-width: 72ch; color: var(--secondary); font-size: .91rem; }

.shop-picks {
  margin-top: 24px;
  padding: clamp(16px, 2.8vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.shop-picks .section-heading { margin-bottom: 5px; }
.shop-picks > p { color: var(--secondary); font-size: .9rem; }

.shop-picks ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 166px), 1fr));
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.shop-picks a {
  display: grid;
  height: 100%;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 10px;
  background: #f2f5fb;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
}

.shop-picks a:hover { background: var(--blue-soft); }
.shop-picks img { width: 44px; height: 46px; object-fit: contain; }
.shop-picks small { display: block; margin-top: 4px; color: var(--secondary); font-size: .73rem; font-weight: 500; }
.shop-picks .icon { width: 14px; height: 14px; color: var(--blue-dark); }

.shop-tier {
  margin-top: clamp(26px, 5vw, 50px);
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.shop-product-image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 2.7;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  place-items: center;
  padding: clamp(12px, 2vw, 22px);
  background: #f4f7fc;
}

.shop-product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.shop-product:target { border-color: var(--blue-dark); box-shadow: 0 0 0 3px var(--blue-soft); }
.shop-product .card-body { gap: 7px; }
.shop-product .card-body h3 { margin: 0; }
.shop-product .card-body .shop-rating { display: flex; align-items: center; gap: 8px; margin: 2px 0 3px; color: #6f4211; font-size: .77rem; }
.shop-rating svg { width: 86px; height: 17px; fill: #a45d0d; }
.shop-stars-track { fill: #d4dce8; }
.shop-product-links { width: 100%; margin-top: auto; padding-top: 9px; }
.shop-product-links .card-action { margin-top: 0; }
.shop-product-links .shop-sources { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: .75rem; }
.shop-sources a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.shop-archive { margin-top: 35px; }
.shop-archive > h2 { margin-bottom: 8px; }
.shop-archive .bf-category { margin-top: 30px; }

@media (max-width: 760px) {
  .shop-category-grid { grid-template-columns: 1fr; }
  .shop-category { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
  .shop-hero { min-height: 250px; }
  .shop-hero-catalogue { min-height: 185px; }
}

@media (max-width: 510px) {
  #season-banner { align-items: flex-start; flex-direction: column; gap: 12px; }
  #season-banner .button { min-height: 38px; }
}
