/* JUSTO MAKARIO — Campaña Día de la Madre (v2)
   Todo vive bajo html.jm-madre. Sin esa clase este archivo no cambia nada de la tienda.
   La clase la pone snipplets/jm-dia-madre.tpl (el interruptor); los textos también salen de ahí. */

/* ───────── Paleta ───────── */
html.jm-madre {
  --dm-rosa: #dba8ae;            /* rosa empolvado */
  --dm-rosa-claro: #efd5d6;
  --dm-rosa-palido: #f9efec;
  --dm-rosa-hondo: #a8566a;      /* acento con contraste sobre fondos claros */
  --dm-vino: #3b1820;            /* tono oscuro para texto */
  --dm-crema: #f7f0e6;
  --dm-blanco: #fdfaf6;
  --dm-champagne: #c8a97a;
  --dm-champagne-claro: #ead9b8;
  --dm-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --dm-sans: 'Space Grotesk', system-ui, sans-serif;
  /* tonos vivos de los adornos y las frases */
  --dm-fucsia: #e0218a;
  --dm-magenta: #b5179e;
  --dm-morado: #7b2cbf;
  --dm-morado-hondo: #5a189a;
  --dm-lila: #c8a2e8;
  --dm-rosa-vivo: #ff6fa5;
  --dm-rosa-chicle: #ffb3cf;
  --dm-degrade: linear-gradient(120deg, #e0218a 0%, #b5179e 48%, #7b2cbf 100%);
}

/* El acento rojo de la marca pasa a rosa mientras dura la campaña */
html.jm-madre body { --red: var(--dm-rosa-hondo); --accent-color: var(--dm-rosa-hondo); }
html.jm-madre body.template-home { --red: var(--dm-rosa); }

/* ───────── Franja de saludo (páginas internas) ───────── */
html.jm-madre .dm-franja {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #ecc9cc 0%, #f9efec 50%, #ecc9cc 100%);
  border-bottom: 1px solid rgba(200, 169, 122, .5);
  color: var(--dm-vino);
  text-decoration: none;
}
html.jm-madre .dm-franja:hover { color: var(--dm-vino); text-decoration: none; }
html.jm-madre .dm-franja-saludo {
  font-family: var(--dm-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .005em;
}
html.jm-madre .dm-franja i { display: block; width: 26px; height: 1px; background: var(--dm-champagne); }
html.jm-madre .dm-franja-texto {
  font-family: var(--dm-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}
html.jm-madre .dm-franja::before,
html.jm-madre .dm-franja::after {
  content: '';
  width: 15px;
  height: 15px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23a8566a'%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(288 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.4' fill='%23c8a97a'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ───────── Inicio: hero ───────── */
html.jm-madre #hero { background: #150a18; }
html.jm-madre #hero .h-bg {
  background:
    radial-gradient(52% 58% at 84% 30%, rgba(236, 47, 143, .34) 0%, rgba(236, 47, 143, 0) 72%),
    radial-gradient(46% 52% at 8% 84%, rgba(123, 44, 191, .38) 0%, rgba(123, 44, 191, 0) 70%),
    radial-gradient(120% 95% at 50% 46%, #5a2350 0%, #2c1232 54%, #150a18 100%);
}
html.jm-madre #hero .h-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .22;
  mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* La barra superior del inicio usa texto oscuro hasta que se baja: sobre el fondo de campaña pasa a claro */
html.jm-madre body.template-home #nav:not(.scrolled) .brand-mark,
html.jm-madre body.template-home #nav:not(.scrolled) .n-logo,
html.jm-madre body.template-home #nav:not(.scrolled) .n-links a,
html.jm-madre body.template-home #nav:not(.scrolled) .n-icons a { color: #fff; }
html.jm-madre body.template-home #nav:not(.scrolled) .brand-mark sup { color: rgba(255, 255, 255, .55); }
html.jm-madre body.template-home #nav:not(.scrolled) .brand-tag { color: rgba(255, 255, 255, .55); }
html.jm-madre #hero .h-eyebrow { margin-bottom: 20px; color: var(--dm-champagne-claro); letter-spacing: .26em; }
html.jm-madre #hero .h-eyebrow::before,
html.jm-madre #hero .h-eyebrow::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 1px;
  margin: 0 14px;
  background: var(--dm-champagne);
  opacity: .75;
}
html.jm-madre #hero .h-title {
  max-width: 12.6em;
  margin: 0 auto 20px;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .98;
  text-wrap: balance;
}
html.jm-madre #hero .h-title .word { padding: 0 0 .14em; margin: 0 0 -.14em; }
html.jm-madre #hero .h-title .dm-acento {
  padding-right: .06em;
  font-family: var(--dm-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: 0;
  color: #ffc2dc;
}
html.jm-madre #hero .h-sub { max-width: 620px; margin: 0 auto 38px; color: rgba(255, 255, 255, .78); text-wrap: balance; }
html.jm-madre #hero .h-ctas .jm-premium-btn { background: rgba(236, 47, 143, .34); }

/* En el inicio el banner va dentro del hero, bajo la barra; el texto se acomoda debajo */
html.jm-madre #hero.dm-con-banner {
  height: auto;
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: 78px;
  padding-bottom: 30px;
}
html.jm-madre #hero.dm-con-banner .dm-banner-zona {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(1180px, 100%, max(820px, calc((100vh - 500px) * 3)));
  padding: 0;
}
html.jm-madre #hero.dm-con-banner .dm-banner-zona .container { width: auto; max-width: none; margin: 0; padding: 0; }
html.jm-madre #hero.dm-con-banner .dm-banner-frases { display: none; }
html.jm-madre #hero.dm-con-banner .h-content { margin-top: auto; margin-bottom: auto; padding: 26px 0 20px; }
html.jm-madre #hero.dm-con-banner .h-title { margin-bottom: 16px; font-size: clamp(34px, 4.3vw, 66px); }
html.jm-madre #hero.dm-con-banner .h-eyebrow { margin-bottom: 14px; }
html.jm-madre #hero.dm-con-banner .h-sub { margin-bottom: 26px; }
/* la pista de «scroll» del hero queda donde ahora van los botones: se guarda mientras está el banner */
html.jm-madre #hero.dm-con-banner .h-scroll-hint { display: none; }
@media (min-width: 768px) and (max-height: 780px) {
  html.jm-madre #hero.dm-con-banner .h-content { padding: 18px 0 10px; }
  html.jm-madre #hero.dm-con-banner .h-title { font-size: clamp(30px, 3.6vw, 52px); }
  html.jm-madre #hero.dm-con-banner .h-sub { margin-bottom: 20px; }
}
/* pantallas bajas: todo más junto, para que el botón entre en el primer pantallazo */
@media (min-width: 768px) and (max-height: 700px) {
  html.jm-madre #hero.dm-con-banner { padding-top: 72px; padding-bottom: 20px; }
  html.jm-madre #hero.dm-con-banner .dm-banner-zona { width: min(740px, 100%, max(600px, calc((100vh - 395px) * 3))); }
  html.jm-madre #hero.dm-con-banner .h-content { padding: 12px 0 6px; }
  html.jm-madre #hero.dm-con-banner .h-title { margin-bottom: 12px; font-size: clamp(28px, 3.2vw, 44px); }
  html.jm-madre #hero.dm-con-banner .h-eyebrow { margin-bottom: 10px; }
  html.jm-madre #hero.dm-con-banner .h-sub { margin-bottom: 16px; }
}
@media (max-width: 767px) and (max-height: 720px) {
  html.jm-madre #hero.dm-con-banner .dm-banner-zona { width: min(100%, max(260px, calc(100svh - 340px))); }
  html.jm-madre #hero.dm-con-banner .h-content { padding: 14px 0 12px; }
  html.jm-madre #hero.dm-con-banner .h-title { margin-bottom: 10px; }
  html.jm-madre #hero.dm-con-banner .h-eyebrow { margin-bottom: 10px; }
  html.jm-madre #hero.dm-con-banner .h-sub { margin-bottom: 16px; }
}

/* ───────── Inicio: franja animada, cierre y detalles ───────── */
html.jm-madre .mq {
  padding: 10px 0;
  background: linear-gradient(90deg, #e0218a 0%, #b5179e 50%, #7b2cbf 100%);
}
html.jm-madre .mq .mq-item { color: #fff; }
html.jm-madre .mq .mq-dot { background: var(--dm-rosa-chicle); opacity: .95; }
html.jm-madre .mq .mq-item.dm-mq {
  font-family: var(--dm-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 16px;
  letter-spacing: .02em;
  text-transform: none;
  color: #ffe3ef;
}

html.jm-madre body.template-home .cart-b,
html.jm-madre body.template-home .tab-badge,
html.jm-madre body.template-home .btn-min.filled:hover { color: var(--dm-vino); }
/* La ventana de producto del inicio es blanca: ahí el acento va en su tono hondo */
html.jm-madre body.template-home .pm-card { --red: var(--dm-rosa-hondo); }
html.jm-madre body.template-home .pm-btn-add:hover { background: #8a4457; }
/* Brillo que sigue al puntero en los botones principales */
html.jm-madre .jm-premium-btn .jm-circle { background: radial-gradient(circle, #fff 0%, #f1cbd0 100%) !important; }
/* Sección blanca que sigue a la franja: un blanco apenas rosado para que la transición sea suave */
html.jm-madre #kicker { background: linear-gradient(180deg, #ffe9f3 0%, #fdf6fb 46%, #fff 100%); }
html.jm-madre body.template-home .tab.active { background: rgba(219, 168, 174, .2); }
html.jm-madre body.ch #c-ring { background: rgba(219, 168, 174, .08); }
html.jm-madre ::selection { color: var(--dm-vino); background: var(--dm-rosa-claro); }

html.jm-madre #cta-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 82% 12%, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(135deg, #ffc9e0 0%, #fbe6f2 50%, #e2ccfb 100%);
}
html.jm-madre #cta-final::before {
  content: var(--dm-t-saludo);
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  font-family: var(--dm-serif);
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
  color: var(--dm-fucsia);
}
html.jm-madre #cta-final .cta-ttl { position: relative; z-index: 2; margin-bottom: 40px; color: #3a1247; }
html.jm-madre #cta-final .jm-premium-btn { z-index: 2; background: var(--dm-morado-hondo); color: #fdf4ef; }
html.jm-madre footer.jm-footer .ft-bg {
  background: radial-gradient(125% 125% at 50% 10%, rgba(15, 15, 17, .4) 50%, rgba(219, 168, 174, .2) 100%);
}
html.jm-madre .ft-hero-svg text:nth-of-type(2) { stroke: rgba(219, 168, 174, .5); }
html.jm-madre #ftTextGradient stop:nth-child(1),
html.jm-madre #ftTextGradient stop:nth-child(4) { stop-color: #c98593; }
html.jm-madre #ftTextGradient stop:nth-child(2) { stop-color: #ead9b8; }

/* ───────── Páginas internas: cabecera ───────── */
html.jm-madre body:not(.template-home) .page-header h1::after {
  background: linear-gradient(90deg, var(--dm-fucsia), var(--dm-morado) 70%, rgba(123, 44, 191, 0));
}

/* Etiqueta «Especial Día de la Madre» (catálogo, búsqueda y ficha) */
html.jm-madre body.template-category .page-header .breadcrumbs::after,
html.jm-madre body.template-search .page-header .breadcrumbs::after,
html.jm-madre body.template-product #single-product .page-header .breadcrumbs::after {
  content: var(--dm-t-etiqueta);
  display: block;
  width: -webkit-fit-content;
  width: fit-content;
  margin: 18px 0 4px;
  padding: 8px 15px 8px 33px;
  font-family: var(--dm-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='3.2' ry='4.5' transform='rotate(288 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.4' fill='%23ffd27d'/%3E%3C/svg%3E") 13px 50% / 13px 13px no-repeat,
    var(--dm-degrade);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 20px -12px rgba(123, 44, 191, .7);
}

/* Mensaje bajo el título (catálogo, búsqueda y carrito) */
html.jm-madre body.template-category .page-header::after,
html.jm-madre body.template-search .page-header::after,
html.jm-madre body.template-cart #shoppingCartPage .page-header::after {
  content: var(--dm-t-catalogo);
  display: block;
  margin-top: 18px;
  font-family: var(--dm-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 33px);
  line-height: 1.15;
  letter-spacing: .005em;
  color: var(--dm-vino);
}
html.jm-madre body.template-cart #shoppingCartPage .page-header::after { content: var(--dm-t-carrito); }
/* Si el listado quedó sin productos, el mensaje no se muestra (conserva su lugar para que nada salte) */
html.jm-madre body.template-category:not(:has(.category-body .item-product)) .page-header::after,
html.jm-madre body.template-search:not(:has(.category-body .item-product)) .page-header::after { visibility: hidden; }

/* ───────── Tarjetas de producto (catálogo y similares) ───────── */
html.jm-madre body:not(.template-home) .item-product { border-color: rgba(168, 86, 106, .16); }
html.jm-madre body:not(.template-home) .item-product:hover {
  box-shadow: 0 36px 70px -30px rgba(168, 86, 106, .6) !important;
}
html.jm-madre body:not(.template-home) .btn-primary:hover,
html.jm-madre body:not(.template-home) .js-addtocart:hover,
html.jm-madre body:not(.template-home) .item-product .btn:hover,
html.jm-madre body:not(.template-home) .js-quickshop-button:hover {
  box-shadow: 0 20px 44px -14px rgba(168, 86, 106, .6) !important;
}
html.jm-madre body:not(.template-home) .label-offer-percentage,
html.jm-madre body:not(.template-home) .label-offer-percentage-text,
html.jm-madre body:not(.template-home) .item-product .label {
  box-shadow: 0 8px 18px -8px rgba(168, 86, 106, .6) !important;
}
html.jm-madre #related-products .products-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
html.jm-madre #related-products .products-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 169, 122, .8), rgba(219, 168, 174, 0));
}

/* ───────── Ficha de producto: bloque junto a la compra ───────── */
html.jm-madre body.template-product #product_form::before {
  content: var(--dm-t-ficha);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 56px;
  margin: 0 0 20px;
  padding: 12px 18px 12px 62px;
  font-family: var(--dm-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.15;
  color: var(--dm-vino);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23a8566a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='14' width='21' height='13' rx='1.4'/%3E%3Crect x='4' y='9.6' width='24' height='4.4' rx='1.2'/%3E%3Cpath d='M16 9.6V27'/%3E%3Cpath d='M16 9.4c-1.4-4.6-7-5.6-7.6-2.7S11.8 9.4 16 9.4z'/%3E%3Cpath d='M16 9.4c1.4-4.6 7-5.6 7.6-2.7S20.2 9.4 16 9.4z'/%3E%3C/svg%3E") 18px 50% / 30px 30px no-repeat,
    linear-gradient(100deg, #f9efec 0%, #f5e4e1 58%, #f3e7d3 100%);
  border: 1px solid rgba(200, 169, 122, .55);
  border-radius: 16px;
}

/* ───────── Adornos: globos ───────── */
html.jm-madre .dm-globos {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
html.jm-madre .dm-globos.dm-visible { opacity: 1; }
html.jm-madre .dm-globo {
  position: absolute;
  display: block;
  height: auto;
  overflow: visible;
  transform-origin: 50% 100%;
  will-change: transform;
  color: rgba(255, 236, 230, .5);                                   /* hilo, sobre fondo oscuro */
  filter: drop-shadow(0 18px 20px rgba(14, 5, 8, .34));
  animation: dm-flota var(--dm-d, 9s) ease-in-out var(--dm-r, 0s) infinite alternate;
}
html.jm-madre .dm-claro .dm-globo {
  color: rgba(120, 66, 80, .5);                                     /* hilo, sobre fondo claro */
  filter: drop-shadow(0 10px 12px rgba(96, 62, 54, .16));
}
html.jm-madre .dm-globo.dm-lejos { filter: blur(3px); opacity: .62; }
@keyframes dm-flota {
  from { transform: translate3d(0, 0, 0) rotate(var(--dm-a, -2.2deg)); }
  to { transform: translate3d(var(--dm-x, 8px), var(--dm-y, -18px), 0) rotate(var(--dm-b, 2.2deg)); }
}
/* En cabeceras claras los globos van por detrás del texto y fuera del flujo */
html.jm-madre .page-header.dm-con-globos { position: relative; isolation: isolate; }
html.jm-madre .page-header .dm-globos { inset: 0 0 0 auto; width: 230px; overflow: visible; z-index: -1; }

/* ───────── Adornos: pétalos y momentos ───────── */
html.jm-madre .dm-petalos { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
html.jm-madre .dm-petalo {
  position: absolute;
  top: -40px;
  display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 23'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='.2' y1='0' x2='.8' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe6f0'/%3E%3Cstop offset='.6' stop-color='%23ffa3c8'/%3E%3Cstop offset='1' stop-color='%23d9479a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 1C16.5 3.5 20.5 11 15.5 19C13.5 22 8 22.6 5.2 19.4C-.6 12.6 3 4 10 1Z' fill='url(%23p)'/%3E%3Cpath d='M10 2.5C9 8 8.6 14 9.6 20.6' fill='none' stroke='%23fff' stroke-opacity='.45' stroke-width='.7'/%3E%3C/svg%3E") center / contain no-repeat;
  will-change: transform, opacity;
  animation: dm-cae var(--dm-d, 11s) linear var(--dm-r, 0s) 1 both;
}
@keyframes dm-cae {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translate3d(var(--dm-x, 60px), 52vh, 0) rotate(var(--dm-a, 190deg)); }
  88% { opacity: .85; }
  100% { transform: translate3d(calc(var(--dm-x, 60px) * .4), 106vh, 0) rotate(calc(var(--dm-a, 190deg) * 2)); opacity: 0; }
}
html.jm-madre .dm-petalo.dm-corazoncito {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 23'%3E%3Cpath d='M10 21C3.4 15.6 1 11.6 1 7.8C1 4.8 3.2 2.6 5.8 2.6C7.7 2.6 9.2 3.6 10 5.4C10.8 3.6 12.3 2.6 14.2 2.6C16.8 2.6 19 4.8 19 7.8C19 11.6 16.6 15.6 10 21Z' fill='%23ff6fa5'/%3E%3Cpath d='M4.6 8C4.6 6.2 5.6 5 7 4.8' fill='none' stroke='%23fff' stroke-opacity='.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Cada tanto algo sube por el margen libre de la página (globos, mariposas, corazones) */
html.jm-madre .dm-paso { position: fixed; bottom: 0; z-index: 6; height: 0; pointer-events: none; }
html.jm-madre .dm-paso-pieza {
  position: absolute;
  bottom: 0;
  display: block;
  will-change: transform, opacity;
  animation: dm-sube 15s cubic-bezier(.3, .1, .3, 1) var(--dm-r, 0s) 1 both;
}
@keyframes dm-sube {
  0% { transform: translate3d(0, 110%, 0) rotate(-3deg); opacity: 0; }
  6% { opacity: 1; }
  22% { transform: translate3d(0, -18vh, 0) rotate(2deg); }
  40% { transform: translate3d(5px, -22vh, 0) rotate(-2deg); }
  58% { transform: translate3d(-3px, -19vh, 0) rotate(2deg); }
  76% { transform: translate3d(3px, -23vh, 0) rotate(-1deg); opacity: 1; }
  100% { transform: translate3d(0, -78vh, 0) rotate(3deg); opacity: 0; }
}

/* ───────── Banner de la campaña, debajo del encabezado ─────────
   El lugar lo arma el interruptor con display:none: recién aparece si esta hoja cargó, así nada queda a medias.
   El alto se reserva antes de que llegue la imagen para que la página no salte. */
html.jm-madre .dm-banner-zona { display: block !important; padding: 16px 0 0; }
html.jm-madre .dm-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #faf2ea;
  box-shadow: 0 26px 48px -34px rgba(90, 24, 154, .55), 0 0 0 1px rgba(181, 23, 158, .1);
}
html.jm-madre .dm-banner::before { content: ''; display: block; padding-top: 33.3333%; }
html.jm-madre .dm-banner picture,
html.jm-madre .dm-banner img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
}
html.jm-madre .dm-banner img { object-fit: cover; object-position: 50% 50%; }
/* En la ficha y en el carrito va reducido a las tres ofertas, para no alejar la compra */
html.jm-madre .dm-compacto .dm-banner::before { padding-top: 33.3333%; }
html.jm-madre .dm-compacto .dm-banner img { object-position: 50% 100%; }
/* Frases que se turnan, debajo del banner */
html.jm-madre .dm-banner-frases {
  position: relative;
  height: 78px;
  margin-top: 10px;
  --dm-lado: 64px;
  --dm-letra: clamp(26px, 2.5vw, 34px);
  --dm-aire: 16px;
}
@media (min-width: 768px) {
  html.jm-madre .dm-compacto .dm-banner-fila { display: flex; align-items: center; gap: 30px; }
  html.jm-madre .dm-compacto .dm-banner { flex: 0 0 min(570px, 54%); }
  html.jm-madre .dm-compacto .dm-banner-frases {
    flex: 1 1 0;
    min-width: 0;
    height: 150px;
    margin: 0;
    --dm-lado: 124px;
    --dm-letra: clamp(26px, 2.6vw, 38px);
    --dm-aire: 20px;
  }
}
/* En el catálogo, con pantalla ancha, las frases van en la cabecera (a la derecha del título) */
@media (min-width: 992px) {
  html.jm-madre body.template-category .dm-banner-frases { display: none; }
}

/* ───────── Escenas: un dibujo y una frase que se van turnando ─────────
   Cada lugar define su tamaño con --dm-lado (dibujo) y --dm-letra (frase). */
html.jm-madre .dm-escena { pointer-events: none; -webkit-user-select: none; user-select: none; }
html.jm-madre .dm-cuadro {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--dm-aire, 22px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0) scale(.96);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
html.jm-madre .dm-cuadro.dm-activo {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s ease .45s, transform .7s cubic-bezier(.2, .7, .2, 1) .45s, visibility 0s linear 0s;
}
html.jm-madre .dm-cuadro:not(.dm-activo) * { animation-play-state: paused !important; }
html.jm-madre .dm-dibujo { position: relative; flex: none; width: var(--dm-lado, 150px); height: var(--dm-lado, 150px); }
html.jm-madre .dm-frase {
  min-width: 0;
  padding: .1em .16em .16em .04em;
  font-family: var(--dm-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--dm-letra, 40px);
  line-height: 1.04;
  letter-spacing: .005em;
  text-wrap: balance;
  color: var(--dm-fucsia);
}
html.jm-madre .dm-claro .dm-frase {
  background: var(--dm-degrade);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.jm-madre .dm-blanca .dm-frase { color: #fff; text-shadow: 0 2px 18px rgba(58, 18, 71, .4); }

/* ───────── Figuras (dibujos en línea: no se descarga nada) ───────── */
html.jm-madre .dm-fig { display: block; width: 100%; height: auto; overflow: visible; }
html.jm-madre .dm-pieza { position: absolute; display: block; }
html.jm-madre .dm-pieza > svg,
html.jm-madre .dm-suelto > svg,
html.jm-madre .dm-paso-pieza > svg { position: static; display: block; width: 100%; height: auto; }
html.jm-madre .dm-pieza > .dm-globo,
html.jm-madre .dm-paso-pieza > .dm-globo { filter: drop-shadow(0 5px 6px rgba(74, 20, 112, .2)); }
html.jm-madre .dm-mece > svg { transform-origin: 50% 100%; animation: dm-mece 5.5s ease-in-out infinite alternate; }
html.jm-madre .dm-gira > svg { animation: dm-gira 24s linear infinite; }
html.jm-madre .dm-al-reves > svg { animation-direction: reverse; }
html.jm-madre .dm-late > svg { animation: dm-late 1.8s ease-in-out infinite; }
html.jm-madre .dm-titila > svg { animation: dm-titila 2.4s ease-in-out infinite alternate; }
html.jm-madre .dm-vaiven > svg { animation: dm-vaiven 6s ease-in-out infinite alternate; }
html.jm-madre .dm-tarde > svg { animation-delay: -.7s; }
html.jm-madre .dm-ala { transform-origin: 60px 50px; animation: dm-aletea .46s ease-in-out infinite alternate; }
html.jm-madre .dm-fig-corazon { transform-box: fill-box; transform-origin: 50% 60%; animation: dm-late 1.8s ease-in-out infinite; }
@keyframes dm-mece {
  from { transform: rotate(-2.2deg); }
  to { transform: rotate(2.2deg); }
}
@keyframes dm-gira {
  to { transform: rotate(360deg); }
}
@keyframes dm-late {
  0%, 30%, 60%, 100% { transform: scale(1); }
  15% { transform: scale(1.16); }
  45% { transform: scale(1.1); }
}
@keyframes dm-titila {
  from { transform: scale(.5) rotate(0deg); opacity: .3; }
  to { transform: scale(1.1) rotate(45deg); opacity: 1; }
}
@keyframes dm-vaiven {
  from { transform: translate3d(-4%, 3%, 0) rotate(-5deg); }
  to { transform: translate3d(4%, -5%, 0) rotate(6deg); }
}
@keyframes dm-aletea {
  from { transform: scaleX(1); }
  to { transform: scaleX(.45); }
}

/* ───────── Adornos sueltos: aparecen y se van ───────── */
html.jm-madre .dm-sueltos {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
html.jm-madre .dm-suelto {
  position: absolute;
  display: block;
  animation: dm-flota var(--dm-d, 9s) ease-in-out var(--dm-r, 0s) infinite alternate;
}
html.jm-madre .dm-asoma > svg { animation: dm-asoma calc(var(--dm-d, 9s) * 1.4) ease-in-out var(--dm-r, 0s) infinite both; }
@keyframes dm-asoma {
  0% { transform: scale(.3) rotate(-14deg); opacity: 0; }
  14%, 70% { transform: scale(1) rotate(0deg); opacity: 1; }
  84%, 100% { transform: scale(.5) rotate(10deg); opacity: 0; }
}

/* ───────── Páginas internas: fondo, cabecera con escena y banda entre los productos ───────── */
html.jm-madre body:not(.template-home) {
  background-image:
    radial-gradient(62% 440px at 0% 180px, rgba(236, 47, 143, .14) 0%, rgba(236, 47, 143, 0) 100%),
    radial-gradient(56% 480px at 100% 260px, rgba(123, 44, 191, .14) 0%, rgba(123, 44, 191, 0) 100%),
    linear-gradient(180deg, #fde8f2 0%, rgba(253, 232, 242, 0) 780px) !important;
  background-repeat: no-repeat !important;
}
html.jm-madre .dm-cab-escena {
  position: absolute;
  top: 18px;
  right: 0;
  bottom: 14px;
  z-index: -1;
  width: min(46%, 540px);
  --dm-lado: 172px;
  --dm-letra: clamp(30px, 3vw, 44px);
}
html.jm-madre .dm-cab-escena .dm-cuadro { flex-direction: row-reverse; justify-content: flex-start; }
html.jm-madre .dm-cab-escena .dm-frase { text-align: right; }
@media (max-width: 991px) {
  html.jm-madre .dm-cab-escena { display: none; }
}

html.jm-madre .js-product-table > .dm-banda-col {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 14px 0 24px;
  padding: 0 1px;
}
html.jm-madre .dm-banda {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 180px;
  padding: 18px 24px;
  border-radius: 24px;
  background:
    radial-gradient(60% 130% at 10% 0%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(50% 130% at 94% 100%, rgba(255, 111, 165, .55) 0%, rgba(255, 111, 165, 0) 62%),
    var(--dm-degrade);
  box-shadow: 0 28px 46px -32px rgba(90, 24, 154, .8);
}
html.jm-madre .dm-banda-escena {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  height: 142px;
  --dm-lado: 134px;
  --dm-letra: clamp(30px, 3.4vw, 50px);
}
/* Un corazón en el borde de cada tarjeta (no toca la foto del producto) */
html.jm-madre body:not(.template-home) .js-product-table > .js-item-product::after {
  content: '';
  position: absolute;
  top: -13px;
  right: 18px;
  z-index: 2;
  width: 26px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C18 64 4 46 4 28C4 13 16 3 29 3C39 3 46 8 50 17C54 8 61 3 71 3C84 3 96 13 96 28C96 46 82 64 50 90Z' fill='%23ec2f8f'/%3E%3Cpath d='M22 30C22 20 28 13 36 12' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 5px rgba(181, 23, 158, .32));
  transform: rotate(12deg);
  pointer-events: none;
}
html.jm-madre body:not(.template-home) .js-product-table > .js-item-product:nth-child(3n + 2)::after {
  right: auto;
  left: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C18 64 4 46 4 28C4 13 16 3 29 3C39 3 46 8 50 17C54 8 61 3 71 3C84 3 96 13 96 28C96 46 82 64 50 90Z' fill='%237b2cbf'/%3E%3Cpath d='M22 30C22 20 28 13 36 12' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  transform: rotate(-10deg);
}
html.jm-madre body:not(.template-home) .js-product-table > .js-item-product:nth-child(3n)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C18 64 4 46 4 28C4 13 16 3 29 3C39 3 46 8 50 17C54 8 61 3 71 3C84 3 96 13 96 28C96 46 82 64 50 90Z' fill='%23ff6fa5'/%3E%3Cpath d='M22 30C22 20 28 13 36 12' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  transform: rotate(18deg);
}

/* ───────── Páginas internas: cierre antes del pie (el lugar lo reserva el interruptor) ───────── */
html.jm-madre .dm-broche {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 280px;
  padding: 36px 20px 40px;
  background:
    radial-gradient(46% 120% at 8% 0%, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(44% 120% at 96% 100%, rgba(255, 111, 165, .55) 0%, rgba(255, 111, 165, 0) 62%),
    var(--dm-degrade);
  color: #fff;
  text-align: center;
}
html.jm-madre .dm-broche-ceja {
  position: relative;
  z-index: 1;
  display: block;
  height: 12px;
  margin-bottom: 14px;
  font-family: var(--dm-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
html.jm-madre .dm-broche-escena {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  height: 170px;
  --dm-lado: 154px;
  --dm-letra: clamp(34px, 4.2vw, 62px);
}

/* ───────── Inicio: escenas en los lugares libres ───────── */
html.jm-madre .dm-con-escena { position: relative; }
html.jm-madre #kicker.dm-con-escena { overflow: hidden; }
html.jm-madre .dm-kicker-escena {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(700px, 92%);
  height: 190px;
  transform: translateX(-50%);
  --dm-lado: 172px;
  --dm-letra: clamp(30px, 3.2vw, 46px);
}
html.jm-madre .dm-nos-escena {
  position: absolute;
  left: 80px;
  bottom: 9%;
  width: min(520px, calc(100% - 120px));
  height: 170px;
  --dm-lado: 150px;
  --dm-letra: clamp(28px, 2.8vw, 40px);
}
html.jm-madre .dm-nos-escena .dm-cuadro { justify-content: flex-start; }

/* ───────── Celular: menos efectos, mismos mensajes ───────── */
@media (max-width: 767px) {
  html.jm-madre .dm-franja { gap: 10px; min-height: 36px; padding: 7px 12px; }
  html.jm-madre .dm-franja-saludo { font-size: 19px; }
  html.jm-madre .dm-franja i,
  html.jm-madre .dm-franja-texto { display: none; }
  html.jm-madre #hero .h-title { max-width: none; font-size: clamp(33px, 9.6vw, 44px); line-height: 1; }
  html.jm-madre #hero .h-eyebrow { letter-spacing: .2em; }
  html.jm-madre .mq { padding: 8px 0; }
  html.jm-madre #cta-final .cta-ttl { margin-bottom: 30px; }
  html.jm-madre #hero .h-eyebrow::before,
  html.jm-madre #hero .h-eyebrow::after { width: 18px; margin: 0 9px; }
  html.jm-madre body.template-product #product_form::before { font-size: 19px; padding-left: 58px; }
  html.jm-madre .page-header .dm-globos { width: 96px; }
  html.jm-madre .dm-globo.dm-lejos { display: none; }
  html.jm-madre .dm-solo-compu { display: none; }
  html.jm-madre #hero.dm-con-banner { min-height: 100svh; padding-top: 68px; padding-bottom: 26px; }
  html.jm-madre #hero.dm-con-banner .h-title { font-size: clamp(30px, 8.6vw, 40px); }
  html.jm-madre .dm-banner-zona { padding-top: 12px; }
  html.jm-madre .dm-banner { border-radius: 16px; }
  html.jm-madre .dm-banner::before { padding-top: 100.2564%; }
  html.jm-madre .dm-banner-frases { height: 60px; margin-top: 8px; --dm-lado: 48px; --dm-letra: 23px; --dm-aire: 12px; }
  html.jm-madre .dm-compacto .dm-banner-frases { display: none; }
  html.jm-madre body.template-product .dm-banner-zona { padding-bottom: 12px; }
  html.jm-madre .js-product-table > .dm-banda-col { margin: 2px 0 16px; }
  html.jm-madre .dm-banda { min-height: 132px; padding: 14px 16px; border-radius: 20px; }
  html.jm-madre .dm-banda-escena { height: 104px; --dm-lado: 86px; --dm-letra: 26px; --dm-aire: 14px; }
  html.jm-madre body:not(.template-home) .js-product-table > .js-item-product::after { top: -11px; width: 22px; height: 20px; }
  html.jm-madre .dm-broche { min-height: 290px; padding: 30px 18px 34px; }
  html.jm-madre .dm-broche-escena { height: 196px; --dm-lado: 106px; --dm-letra: 32px; --dm-aire: 8px; }
  html.jm-madre .dm-broche-escena .dm-cuadro { flex-direction: column; }
  html.jm-madre .dm-kicker-escena { bottom: 5%; height: 104px; --dm-lado: 90px; --dm-letra: 26px; --dm-aire: 14px; }
  html.jm-madre .dm-nos-escena {
    left: 30px;
    bottom: 6px;
    width: calc(100% - 60px);
    height: 68px;
    --dm-lado: 60px;
    --dm-letra: 23px;
    --dm-aire: 12px;
  }
}

/* ───────── Quien pide menos movimiento ve los adornos quietos ───────── */
@media (prefers-reduced-motion: reduce) {
  html.jm-madre .dm-globo,
  html.jm-madre .dm-suelto,
  html.jm-madre .dm-pieza > svg,
  html.jm-madre .dm-suelto > svg,
  html.jm-madre .dm-ala,
  html.jm-madre .dm-fig-corazon { animation: none; }
  html.jm-madre .dm-globos,
  html.jm-madre .dm-cuadro,
  html.jm-madre .dm-cuadro.dm-activo { transition: none; }
  html.jm-madre .dm-petalos,
  html.jm-madre .dm-paso { display: none; }
}
