/* =====================================================================
   MJAF · CAMPAÑA DE PERFUMERÍA Y PRODUCTOS RECORTADOS (PNG/WebP)
   - Portada publicitaria de Jorge Di Profumo (sección #perfumes)
   - Frasco recortado en la portada navideña
   La campaña mantiene su fondo oscuro también en modo claro.
   ===================================================================== */

/* ------------------------------ Sección ------------------------------ */
.spotlight {
  background:
    radial-gradient(60% 70% at 78% 48%, #3d0b18 0%, rgba(61, 11, 24, 0) 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(74, 11, 24, 0.55) 0%, rgba(74, 11, 24, 0) 70%),
    linear-gradient(180deg, #070505 0%, #0d0507 55%, #070505 100%);
}
:root[data-theme="dark"] .spotlight { background:
    radial-gradient(60% 70% at 78% 48%, #3d0b18 0%, rgba(61, 11, 24, 0) 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(74, 11, 24, 0.5) 0%, rgba(74, 11, 24, 0) 70%),
    linear-gradient(180deg, #050404 0%, #0b0406 55%, #050404 100%); }
.spotlight::before {
  /* grano fino para un acabado fotográfico */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  pointer-events: none;
}

.campaign {
  display: grid;
  grid-template-areas: "head" "visual" "body";
  gap: 28px;
  color: #f4ead6;
}
.campaign__head { grid-area: head; display: grid; gap: 14px; }
.campaign__visual { grid-area: visual; }
.campaign__body { grid-area: body; display: grid; gap: 22px; align-content: start; }

.campaign__tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.campaign__tag::before,
.campaign__tag::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.campaign__tag::after { width: 0; }
.campaign__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #f3e3bf;
  background: linear-gradient(180deg, #fff7e6 0%, #efd9a6 48%, #b98b47 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  filter: drop-shadow(0 6px 24px rgba(201, 164, 92, 0.18));
}
.campaign__brand { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.46em; text-transform: uppercase; color: rgba(244, 234, 214, 0.78); }

.campaign__facts { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid rgba(216, 180, 106, 0.22); }
.campaign__facts div { padding: 16px 0; }
.campaign__facts div + div { padding-left: 20px; border-left: 1px solid rgba(216, 180, 106, 0.22); }
.campaign__facts dt { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(244, 234, 214, 0.55); }
.campaign__facts dd { margin-top: 4px; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f8efdc; }
.campaign__desc { max-width: 50ch; font-size: 1.02rem; line-height: 1.75; color: rgba(244, 234, 214, 0.78); }

.campaign__buy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.campaign__price { display: grid; gap: 2px; }
.campaign__price-label { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(244, 234, 214, 0.55); }
.campaign__price strong { font-size: clamp(2.3rem, 4.4vw, 3.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: #fff6e3; font-variant-numeric: tabular-nums; }
.campaign__price strong.is-ask { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2rem; }
.stock--light { color: rgba(244, 234, 214, 0.82); }
.campaign__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.campaign__cta { min-width: 220px; }
.campaign__note { font-size: 0.84rem; color: rgba(244, 234, 214, 0.6); }
.campaign__note a { color: #f4ead6; text-decoration: underline; text-underline-offset: 3px; }
.campaign__note a:hover { color: var(--gold); }

/* ------------------------------ Escenario ----------------------------- */
.campaign__stage {
  --mx: 50%;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  margin-inline: auto;
  overflow: hidden;
}
.campaign__stage > * { position: absolute; pointer-events: none; }

/* Palabra editorial de fondo */
.campaign__ghost {
  z-index: 0;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4.6rem, 19vw, 12rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 180, 106, 0.2);
  letter-spacing: -0.01em;
}
/* Luz ambiental detrás del frasco */
.campaign__halo {
  z-index: 1;
  left: var(--mx);
  top: 47%;
  width: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 128, 0.6) 0%, rgba(214, 140, 60, 0.32) 22%, rgba(122, 18, 38, 0.32) 46%, rgba(122, 18, 38, 0) 68%);
  filter: blur(6px);
  transition: left 0.6s var(--ease);
  animation: campaignBreathe 7s ease-in-out infinite;
}
/* Haz de luz cenital */
.campaign__beam {
  z-index: 2;
  top: -6%;
  left: 50%;
  width: 70%;
  height: 92%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 226, 170, 0.22) 0%, rgba(255, 226, 170, 0.05) 60%, rgba(255, 226, 170, 0) 100%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
}
/* Anillos de luz sobre el suelo */
.campaign__ring {
  z-index: 2;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 180, 106, 0.35);
}
.campaign__ring--a { bottom: 7%; width: 82%; height: 13%; border-color: rgba(216, 180, 106, 0.22); }
.campaign__ring--b { bottom: 9.5%; width: 56%; height: 8%; box-shadow: 0 0 30px rgba(255, 196, 110, 0.18), inset 0 0 18px rgba(255, 196, 110, 0.15); animation: campaignRing 6s ease-in-out infinite; }

/* Capas con profundidad (se mueven con el cursor) */
.campaign__layer { inset: 0; transition: transform 0.5s var(--ease); will-change: transform; }
.campaign__layer--back { z-index: 3; }
.campaign__layer--bottle { z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12%; }
.campaign__particles { position: absolute; inset: 0; }
.campaign__particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd998;
  box-shadow: 0 0 10px 2px rgba(255, 200, 120, 0.55);
  opacity: 0.7;
  animation: campaignFloat 9s ease-in-out infinite;
}
.campaign__particle--1 { width: 3px; height: 3px; opacity: 0.5; filter: blur(0.5px); }
.campaign__particle--2 { width: 9px; height: 9px; opacity: 0.25; filter: blur(3px); }

.campaign__bottle {
  position: relative;
  height: 76%;
  aspect-ratio: 610 / 1135;
  animation: campaignBottle 9s ease-in-out infinite;
}
.campaign__bottle-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 46px rgba(255, 186, 104, 0.16));
}
/* Reflejo sobre el suelo pulido */
.campaign__reflection {
  position: absolute;
  left: 0;
  top: 96.5%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleY(-1);
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 26%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 26%);
  filter: blur(1.5px);
}
/* Sombra de contacto y brillo del suelo */
.campaign__floor {
  z-index: 4;
  left: 50%;
  bottom: 8.5%;
  width: 62%;
  height: 9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0) 70%);
}
.campaign__floor::after {
  content: "";
  position: absolute;
  inset: -30% -25%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 200, 120, 0.22) 0%, rgba(255, 200, 120, 0) 60%);
  mix-blend-mode: screen;
}
/* Sello editorial */
.campaign__seal {
  z-index: 6;
  top: 7%;
  right: 4%;
  width: clamp(78px, 11vw, 104px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 2px;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 106, 0.45);
  text-align: center;
  color: #f1dfb8;
  background: radial-gradient(circle, rgba(20, 6, 9, 0.6), rgba(20, 6, 9, 0.2));
  backdrop-filter: blur(4px);
}
.campaign__seal strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1; }
.campaign__seal span { font-size: 0.5rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.campaign__seal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(216, 180, 106, 0.25); }

@keyframes campaignBreathe { 0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes campaignBottle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes campaignFloat { 0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.25; } 50% { transform: translate3d(6px, -22px, 0); opacity: 0.8; } }
@keyframes campaignRing { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ------------------------- Portada navideña ------------------------- */
:root[data-season="navidad"] .hero__title { text-transform: uppercase; font-size: clamp(2.5rem, 7.2vw, 5.8rem); letter-spacing: -0.035em; line-height: 0.95; }
:root[data-season="navidad"] .hero__title em { display: block; letter-spacing: -0.005em; font-size: 1.06em; }

/* Frasco recortado en la portada (sin marco) */
.hero__feature--cutout {
  border: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  grid-template-columns: 88px 1fr;
  padding: 0;
}
.hero__feature--cutout:hover { transform: none; }
.hero__feature--cutout .hero__feature-go { display: none; }
.hero__feature--cutout .hero__feature-frame {
  position: relative;
  aspect-ratio: auto;
  height: 132px;
  overflow: visible;
  background: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__feature--cutout .hero__feature-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 190%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 120, 0.42) 0%, rgba(201, 120, 60, 0.18) 30%, rgba(122, 18, 38, 0) 65%);
  z-index: -1;
}
.hero__feature--cutout .hero__feature-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 120%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}
.hero__feature--cutout .hero__feature-frame img {
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease);
}
.hero__feature--cutout:hover .hero__feature-frame img { transform: translateY(-6px); }
.hero__feature-price { font-size: 1.05rem; font-weight: 600; color: var(--s-accent); letter-spacing: 0.02em; margin-top: 4px; }
.hero__feature--cutout:hover .hero__feature-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ------------------------------ Responsive ---------------------------- */
@media (min-width: 640px) {
  .campaign__stage { aspect-ratio: 1 / 1; max-height: 640px; }
}
/* Frasco del hero grande desde tablet (la portada pasa a dos columnas) */
@media (min-width: 768px) {
  .hero--has-feature .hero__feature--cutout { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 340px; padding: 0; gap: 18px; }
  .hero--has-feature .hero__feature--cutout .hero__feature-frame { height: clamp(280px, 42vh, 460px); width: 100%; aspect-ratio: auto; }
  .hero--has-feature .hero__feature--cutout .hero__feature-caption { padding: 0; justify-items: center; }
  .hero--has-feature .hero__feature--cutout .hero__feature-frame img { animation: campaignBottle 9s ease-in-out infinite; }
}
@media (min-width: 1024px) {
  .campaign {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas: "head visual" "body visual";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 88px);
    row-gap: 28px;
    align-items: start;
  }
  .campaign__head { align-self: end; padding-top: 40px; }
  .campaign__stage { aspect-ratio: auto; height: clamp(600px, 84vh, 800px); max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .campaign__halo, .campaign__bottle, .campaign__particle, .campaign__ring--b { animation: none !important; }
}
