/* ==========================================================================
   MJG · Black Friday 2026 — capa de color sobre el tema botanical-atelier.
   No mueve nada de sitio: solo cambia colores y añade los avisos del código.
   Portada, tienda y fichas van «de noche» (oliva casi negro); cesta, pago y
   páginas de texto siguen en crema, con cabecera, cinta y pie de campaña.
   Se quita borrando mu-plugins/mjg-black-friday.php y esta carpeta.
   ========================================================================== */

body.mjg-bf{
  --bf-noche:#151a10; --bf-noche-2:#1d2416; --bf-noche-3:#283021; --bf-pie:#0f130b;
  --bf-hueso:#f5efe3; --bf-hueso-suave:#bdbaa6; --bf-hueso-tenue:#9b9c89;
  --bf-rosa:#e7abb0; --bf-rosa-hondo:#c98b90; --bf-vino:#6e3f44;
  --bf-oro:#cdb277; --bf-filete:rgba(205,178,119,.24);
  --bf-salida:cubic-bezier(.16,1,.3,1);
}

/* ---------- Cabecera (todas las páginas) ---------- */
body.mjg-bf .cabecera{
  background:rgba(21,26,16,.9);
  border-bottom:1px solid var(--bf-filete);
}
body.mjg-bf .cabecera.flotando{box-shadow:0 14px 40px rgba(0,0,0,.45)}
body.mjg-bf .marca{color:var(--bf-hueso)}
body.mjg-bf .marca small{color:var(--bf-rosa)}
body.mjg-bf .nav a{color:var(--bf-hueso-suave)}
body.mjg-bf .nav a:hover,
body.mjg-bf .nav .current-menu-item > a,
body.mjg-bf .nav a.activo{color:var(--bf-rosa)}
body.mjg-bf .nav a:not(.nav-carrito)::after{background:var(--bf-rosa)}
body.mjg-bf .nav a.nav-carrito{
  background:var(--bf-rosa);color:var(--bf-noche) !important;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.7);
}
body.mjg-bf .nav a.nav-carrito:hover{background:var(--bf-hueso)}
body.mjg-bf .nav-carrito .globo{background:var(--bf-noche);color:var(--bf-rosa)}
body.mjg-bf .nav-carrito .globo.vacio{background:rgba(21,26,16,.16);color:var(--bf-noche)}

/* Desplegable del menú */
body.mjg-bf nav .sub-menu{
  background:var(--bf-noche-2);border:1px solid var(--bf-filete);
  box-shadow:0 24px 50px -18px rgba(0,0,0,.8);
}
body.mjg-bf nav .sub-menu a{color:var(--bf-hueso-suave)}
body.mjg-bf nav .sub-menu a:hover{background:var(--bf-noche-3);color:var(--bf-rosa)}

@media (max-width:760px){
  body.mjg-bf .menu-boton{background:var(--bf-noche-2);border-color:var(--bf-filete)}
  body.mjg-bf .menu-boton span,
  body.mjg-bf .menu-boton span::before,
  body.mjg-bf .menu-boton span::after{background:var(--bf-hueso)}
  body.mjg-bf .menu-check:checked + .menu-boton span{background:transparent}
  body.mjg-bf .nav{
    background:#151a10;backdrop-filter:none;-webkit-backdrop-filter:none;
    border-bottom:1px solid var(--bf-filete);box-shadow:0 30px 50px -20px rgba(0,0,0,.8);
  }
  body.mjg-bf nav .sub-menu{box-shadow:none}
}

/* ---------- Cinta de anuncios ---------- */
body.mjg-bf .cinta-anuncios{
  background:var(--bf-rosa);color:var(--bf-noche);font-weight:700;
  border-bottom:1px solid var(--bf-noche);
}
body.mjg-bf .cinta-anuncios i{color:rgba(21,26,16,.5)}
body.mjg-bf .cinta-anuncios .tira{animation-duration:130s} /* el script del pie la ajusta al largo real: un 25 % más lenta que la cinta normal */

/* ---------- Pie (todas las páginas) ---------- */
body.mjg-bf .pie{
  background:var(--bf-pie);color:var(--bf-hueso-suave);
  border-top:1px solid var(--bf-filete);
}
body.mjg-bf .pie::before{background:radial-gradient(60% 50% at 85% 10%,rgba(110,63,68,.4),transparent 60%)}
body.mjg-bf .pie h4{color:var(--bf-oro)}
body.mjg-bf .pie a{color:var(--bf-hueso-suave)}
body.mjg-bf .pie a:hover{color:var(--bf-hueso)}
body.mjg-bf .pie-marca{color:var(--bf-hueso)}
body.mjg-bf .pie-fino{border-top-color:var(--bf-filete);color:var(--bf-hueso-tenue)}
body.mjg-bf .mjg-bf-ia{
  margin:0;padding:0 20px 20px;background:var(--bf-pie);color:var(--bf-hueso-tenue);
  font-size:.74rem;text-align:center;letter-spacing:.02em;
}
body.mjg-bf .mjg-lang-footer{background:var(--bf-pie);color:var(--bf-hueso-tenue);margin:0;padding-top:6px;padding-bottom:22px;opacity:1}
body.mjg-bf .mjg-lang-footer .trp-shortcode-switcher__wrapper,
body.mjg-bf .cabecera .trp-shortcode-switcher__wrapper{
  --bg:#1d2416 !important;--bg-hover:#283021 !important;--text:#f5efe3 !important;--text-hover:#e7abb0 !important;
  --border:1px solid rgba(205,178,119,.24) !important;--border-color:rgba(205,178,119,.24) !important;
}

/* ---------- Piezas del código (valen sobre fondo oscuro) ---------- */
.mjg-bf-cupon{
  display:inline-flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0;
  padding:10px 10px 10px 18px;border:1.5px dashed var(--bf-rosa-hondo);border-radius:14px;
  background:rgba(231,171,176,.07);
}
.mjg-bf-cupon > span{
  font-size:.7rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--bf-hueso-suave);
}
.mjg-bf-codigo{
  font:700 1.35rem 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  letter-spacing:.14em;color:var(--bf-rosa);user-select:all;-webkit-user-select:all;
}
.mjg-bf-copiar{
  min-height:40px;padding:0 16px;border-radius:999px;border:0;cursor:pointer;
  background:var(--bf-rosa);color:var(--bf-noche);
  font:700 .7rem 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  letter-spacing:.14em;text-transform:uppercase;transition:background .25s;
}
.mjg-bf-copiar:hover{background:var(--bf-hueso)}
.mjg-bf-copiar:focus-visible,
.mjg-bf-aplicar:focus-visible{outline:2px solid var(--bf-hueso);outline-offset:3px}
.mjg-bf-nota{margin:10px 0 22px;font-size:.86rem;line-height:1.5;color:var(--bf-hueso-suave);max-width:52ch}

.mjg-bf-gema{
  position:absolute;top:10px;right:10px;z-index:2;pointer-events:none;
  padding:9px 12px 8px;background:var(--bf-rosa);color:var(--bf-noche);
  font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:1.5rem;letter-spacing:-.02em;line-height:1;
  white-space:nowrap;
  clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
}
.mjg-bf-con{
  display:block;margin-top:3px;font-family:'Inter',sans-serif;font-size:.62rem;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;color:var(--bf-oro);
}

/* ==========================================================================
   PÁGINAS «DE NOCHE»: portada, tienda, categorías y fichas
   ========================================================================== */
html:has(body.mjg-bf-noche){scrollbar-color:var(--bf-rosa-hondo) #151a10;background:#151a10}
body.mjg-bf.mjg-bf-noche{
  color-scheme:dark;
  --crema:#151a10; --crema-2:#1d2416; --papel:#1d2416;
  --tinta:#f5efe3; --tinta-suave:#bdbaa6; --borde:rgba(205,178,119,.24);
  --rosa:#e7abb0; --rosa-tinta:#e7abb0; --rosa-suave:#2a2224;
  --vino:#f5efe3; --verde-niebla:#283021; --terracota:#e2a184;
  --sombra:0 1px 2px rgba(0,0,0,.3),0 14px 34px rgba(0,0,0,.34);
  --sombra-alta:0 30px 70px rgba(0,0,0,.62);
}
body.mjg-bf-noche ::selection{background:var(--bf-rosa);color:var(--bf-noche)}
body.mjg-bf-noche :focus-visible{outline:2px solid var(--bf-rosa);outline-offset:3px}
body.mjg-bf-noche .pie{margin-top:72px}

/* Portada y cabecera de tienda */
body.mjg-bf-noche .hero{
  background:
    radial-gradient(60% 70% at 86% 38%,rgba(110,63,68,.5),transparent 70%),
    radial-gradient(50% 60% at 4% 100%,rgba(51,61,40,.75),transparent 70%),
    var(--bf-noche);
  color:var(--bf-hueso);border-bottom:1px solid var(--bf-filete);
}
body.mjg-bf-noche .hero::after{opacity:.06}
body.mjg-bf-noche .etiqueta{
  background:rgba(245,239,227,.05);border-color:var(--bf-filete);color:var(--bf-hueso-suave);
}
body.mjg-bf-noche .punto-vivo{background:var(--bf-rosa);animation-name:mjg-bf-latir}
@keyframes mjg-bf-latir{
  0%{box-shadow:0 0 0 0 rgba(231,171,176,.6)}
  70%{box-shadow:0 0 0 11px rgba(231,171,176,0)}
  100%{box-shadow:0 0 0 0 rgba(231,171,176,0)}
}
body.mjg-bf-noche .mjg-bf-cuenta{font-variant-numeric:tabular-nums;color:var(--bf-hueso)}
body.mjg-bf-noche .hero .entradilla{color:var(--bf-hueso-suave)}
body.mjg-bf-noche .hero-datos{border-top-color:var(--bf-filete)}
body.mjg-bf-noche .hero-dato + .hero-dato{border-left-color:var(--bf-filete)}
body.mjg-bf-noche .hero-dato span{color:var(--bf-hueso-tenue)}

/* El descuento, bien grande: es la línea en cursiva de la portada */
body.mjg-bf-noche.home .hero-rejilla h1{font-size:clamp(1.7rem,3.3vw,2.7rem);margin-bottom:.1em}
body.mjg-bf-noche.home .hero .lema-cursiva{
  font-size:clamp(3.1rem,12.6vw,5.9rem);line-height:.98;font-weight:500;letter-spacing:-.025em;
  color:var(--bf-rosa);margin:0 0 .22em;white-space:nowrap;
}
body.mjg-bf-noche.home .hero .entradilla{font-size:1rem;max-width:54ch;margin-bottom:18px}

/* La joya de la semana */
body.mjg-bf-noche .premio-tarjeta{
  border:1px solid var(--bf-filete);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.85);
}
body.mjg-bf-noche .premio-tarjeta:hover{box-shadow:0 50px 110px -30px rgba(0,0,0,.9)}
body.mjg-bf-noche .premio-tarjeta .cinta{background:var(--bf-noche);color:var(--bf-oro);box-shadow:0 6px 18px rgba(0,0,0,.5)}
body.mjg-bf-noche .premio-tarjeta .valor del,
body.mjg-bf-noche .premio-tarjeta .valor del .woocommerce-Price-amount{color:var(--bf-hueso-tenue);font-weight:400;font-size:.9rem}
body.mjg-bf-noche .premio-tarjeta .valor ins{
  text-decoration:none;font-family:'Fraunces',Georgia,serif;font-size:1.9rem;font-weight:600;line-height:1.1;
}
body.mjg-bf-noche .premio-tarjeta .valor ins .woocommerce-Price-amount{font-size:inherit;font-family:inherit}

/* Botones */
body.mjg-bf.mjg-bf-noche .boton,
body.mjg-bf.mjg-bf-noche a.button,
body.mjg-bf.mjg-bf-noche button.button,
body.mjg-bf.mjg-bf-noche input.button,
body.mjg-bf.mjg-bf-noche .wp-element-button{
  background:var(--bf-rosa);color:var(--bf-noche);
  box-shadow:0 16px 30px -16px rgba(0,0,0,.8);
}
body.mjg-bf.mjg-bf-noche .boton:hover,
body.mjg-bf.mjg-bf-noche a.button:hover,
body.mjg-bf.mjg-bf-noche button.button:hover,
body.mjg-bf.mjg-bf-noche input.button:hover,
body.mjg-bf.mjg-bf-noche .wp-element-button:hover{
  background:var(--bf-hueso);color:var(--bf-noche);
  box-shadow:0 20px 36px -16px rgba(0,0,0,.85);
}
body.mjg-bf.mjg-bf-noche .boton.boton-fantasma,
body.mjg-bf.mjg-bf-noche .boton.boton-claro{
  background:transparent;border-color:var(--bf-filete);color:var(--bf-hueso);box-shadow:none;
}
body.mjg-bf.mjg-bf-noche .boton.boton-fantasma:hover,
body.mjg-bf.mjg-bf-noche .boton.boton-claro:hover{
  background:transparent;border-color:var(--bf-rosa);color:var(--bf-rosa);box-shadow:none;
}
body.mjg-bf.mjg-bf-noche a.button.disabled,
body.mjg-bf.mjg-bf-noche button.button:disabled,
body.mjg-bf.mjg-bf-noche button.button.disabled{
  background:var(--bf-noche-3);color:var(--bf-hueso-tenue);box-shadow:none;cursor:not-allowed;
}

/* Rejilla de plantas */
body.mjg-bf-noche ul.products li.product{position:relative}
body.mjg-bf.mjg-bf-noche ul.products li.product .button{
  background:transparent;border-color:var(--bf-filete);color:var(--bf-hueso);box-shadow:none;
}
body.mjg-bf.mjg-bf-noche ul.products li.product .button:hover{
  background:var(--bf-rosa);border-color:var(--bf-rosa);color:var(--bf-noche);box-shadow:none;
}
body.mjg-bf-noche .marca-incluido{background:rgba(21,26,16,.78);color:var(--bf-hueso);border:1px solid var(--bf-filete)}
body.mjg-bf-noche .marca-diferencia{background:var(--bf-vino);color:var(--bf-hueso)}
body.mjg-bf-noche ul.products li.product .price del{
  color:var(--bf-hueso-tenue);opacity:1;font-weight:400;font-size:.86rem;
}
body.mjg-bf-noche ul.products li.product .price ins{
  font-family:'Fraunces',Georgia,serif;font-size:1.55rem;font-weight:600;line-height:1.1;margin-left:4px;
}
body.mjg-bf-noche .woocommerce-ordering select{color-scheme:dark}

/* Categorías de la tienda (las tarjetas que pinta Lady Hojitas) */
body.mjg-bf-noche .mjg-clasificados .mjg-cat{
  background:var(--bf-noche-2);border-color:var(--bf-filete);box-shadow:none;
}
body.mjg-bf-noche .mjg-clasificados .mjg-cat:hover{border-color:var(--bf-rosa);box-shadow:0 14px 30px -14px rgba(0,0,0,.8)}
body.mjg-bf-noche .mjg-clasificados .mjg-cat .nombre{color:var(--bf-hueso)}
body.mjg-bf-noche .mjg-clasificados .mjg-cat svg{stroke:var(--bf-rosa)}

/* Franja del código en la tienda */
.mjg-bf-tira{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px;
  margin:6px 0 26px;padding:20px 22px;border:1px solid var(--bf-filete);border-radius:18px;
  background:
    radial-gradient(70% 140% at 100% 0,rgba(110,63,68,.42),transparent 70%),
    var(--bf-noche-2);
}
.mjg-bf-tira > div{flex:1 1 320px;min-width:0}
.mjg-bf-tira strong{
  display:block;font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:clamp(1.5rem,3vw,2.1rem);
  line-height:1.08;letter-spacing:-.015em;color:var(--bf-rosa);margin-bottom:6px;
}
.mjg-bf-tira span{display:block;font-size:.88rem;line-height:1.55;color:var(--bf-hueso-suave);max-width:62ch}
.mjg-bf-tira .mjg-bf-cupon > span{display:inline;font-size:.7rem;max-width:none}

/* Ficha de planta */
body.mjg-bf-noche.single-product div.product p.price del{
  color:var(--bf-hueso-tenue);opacity:1;font-weight:400;font-size:1.05rem;
}
body.mjg-bf-noche.single-product div.product p.price ins{
  text-decoration:none;font-family:'Fraunces',Georgia,serif;font-size:2.5rem;font-weight:600;line-height:1.05;margin-left:6px;
}
body.mjg-bf-noche.single-product div.product p.price .mjg-bf-con{font-size:.68rem;margin-top:6px}
.mjg-bf-ficha{
  position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;
  margin:0 0 22px;padding:16px 18px;border:1px solid var(--bf-filete);border-radius:16px;background:var(--bf-noche-2);
}
.mjg-bf-ficha .mjg-bf-gema{position:static;font-size:1.7rem;flex:none}
.mjg-bf-ficha p:not(.mjg-bf-cupon){flex:1 1 220px;margin:0;font-size:.88rem;line-height:1.5;color:var(--bf-hueso-suave)}
body.mjg-bf-noche .variations select{
  color-scheme:dark;background:var(--bf-noche-2);color:var(--bf-hueso);
  border:1.5px solid var(--bf-filete);border-radius:12px;padding:12px 14px;font:inherit;max-width:100%;
}
body.mjg-bf-noche .variations th,
body.mjg-bf-noche .variations td{padding:6px 12px 10px 0;text-align:left;border:0}

/* Avisos y tira de Wallapop */
body.mjg-bf-noche .aviso{background:rgba(205,178,119,.09);border-color:var(--bf-filete);color:var(--bf-oro)}
body.mjg-bf-noche .aviso.verde,
body.mjg-bf-noche .woocommerce-info,
body.mjg-bf-noche .woocommerce-message{
  background:var(--bf-noche-2);border-color:var(--bf-filete);color:var(--bf-hueso-suave);
}
body.mjg-bf-noche .mjg-wallapop-trust{color:var(--bf-hueso-tenue) !important;border-top-color:var(--bf-filete) !important}
body.mjg-bf-noche .mjg-wallapop-trust a:last-child{color:var(--bf-rosa) !important}

/* Formulario «Avísame» del plugin de stock */
body.mjg-bf-noche .cwginstock-subscribe-form .panel,
body.mjg-bf-noche .cwginstock-subscribe-form .panel-body{background:var(--bf-noche-2);color:var(--bf-hueso-suave)}
body.mjg-bf-noche .cwginstock-panel-primary,
body.mjg-bf-noche .cwginstock-subscribe-form .panel-primary{border-color:var(--bf-filete) !important}
body.mjg-bf-noche .cwginstock-panel-heading,
body.mjg-bf-noche .cwginstock-subscribe-form .panel-heading{
  background:var(--bf-vino) !important;border-color:var(--bf-vino) !important;
}
body.mjg-bf-noche .cwgstock_button,
body.mjg-bf-noche .cwginstock-subscribe-form input[type="submit"]{
  background:var(--bf-rosa) !important;border-color:var(--bf-rosa) !important;color:var(--bf-noche) !important;
}
body.mjg-bf-noche .cwgstock_button:hover,
body.mjg-bf-noche .cwginstock-subscribe-form input[type="submit"]:hover{
  background:var(--bf-hueso) !important;border-color:var(--bf-hueso) !important;
}

/* Interludio crema: «Cómo trabajamos» sigue de día entre dos noches */
body.mjg-bf.mjg-bf-noche .seccion-clara{
  --crema-2:#f7f2e9; --papel:#fffdf8; --tinta:#232b1c; --tinta-suave:#5d6351; --borde:#e2d8c3;
  --rosa:#c98b90; --rosa-tinta:#a4595f; --vino:#6e3f44;
  --sombra:0 1px 2px rgba(23,29,18,.05),0 12px 34px rgba(23,29,18,.08);
  background:#f7f2e9;color:#232b1c;color-scheme:light;
}
body.mjg-bf-noche .seccion-clara ::selection{background:var(--bf-vino);color:#f7f2e9}

/* «Del cuaderno», oculto durante la campaña */
body.mjg-bf.home main > section.seccion:has(.entradas-rejilla){display:none}

/* ==========================================================================
   CESTA Y PAGO (siguen en crema): aviso del código
   ========================================================================== */
.mjg-bf-aviso{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 22px;
  margin:0 0 26px;padding:18px 22px;border-radius:18px;
  background:#151a10;color:#f5efe3;border:1px solid rgba(205,178,119,.3);
}
.mjg-bf-aviso > div{flex:1 1 280px;min-width:0}
.mjg-bf-aviso p{margin:0;font-size:.95rem;line-height:1.5}
.mjg-bf-aviso p.hecho{color:#e7abb0;font-weight:600}
.mjg-bf-aviso p.solo{margin-top:6px;font-size:.84rem;color:#bdbaa6}
.mjg-bf-aplicar{
  display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:999px;
  background:#e7abb0;color:#151a10;text-decoration:none;
  font:700 .78rem 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.14em;text-transform:uppercase;
  transition:background .25s;
}
.mjg-bf-aplicar:hover{background:#f5efe3;color:#151a10;text-decoration:none}

/* ---------- Móvil ---------- */
@media (max-width:760px){
  .mjg-bf-gema{font-size:1.2rem;padding:7px 9px 6px;top:8px;right:8px}
  .mjg-bf-cupon{padding:9px 9px 9px 14px;gap:8px 12px}
  .mjg-bf-codigo{font-size:1.15rem;letter-spacing:.1em}
  .mjg-bf-tira{padding:16px}
  body.mjg-bf-noche ul.products li.product .price ins{font-size:1.3rem;margin-left:0;display:inline-block}
  body.mjg-bf-noche ul.products li.product .price del{display:block}
  body.mjg-bf-noche.single-product div.product p.price ins{font-size:2.1rem}
  .mjg-bf-aviso{padding:16px}
  .mjg-bf-aplicar{width:100%}
}

@media (prefers-reduced-motion:reduce){
  body.mjg-bf .punto-vivo{animation:none}
}
