/* 3DTONE — Black Friday (inc/blackfriday.php). Diseño aprobado: web/borrador-blackfriday. */

.tone-bf[hidden],
.tone-bf-ficha[hidden],
.tone-bf-avisos[hidden],
.tone-bf-plantillas[hidden],
.tone-bf__count-label [hidden] { display: none !important; }

/* ==========================================================================
   3DTONE · Black Friday 2026 — bloque de ofertas y avisos
   Clases propias: tone-bf-*  (portable al tema copiando este archivo)
   Reutiliza los tokens del tema: --ink, --paper, --paper-2, --line, --mute,
   --sale, --radius-*, --gutter, --container, --ease, --font-display.
   Reglas de color de la campaña:
     · Bloque invertido en tinta (--ink).
     · Rojo --sale SOLO como fondo de pastilla (texto blanco).
     · Dorado --tone-bf-gold para UN detalle: la cuenta atrás.
   ========================================================================== */

:root{
  --tone-bf-gold:#D9A441;          /* mismo dorado que "Nuevo lanzamiento" */
  --tone-bf-cream:#fbf3e3;         /* mismo crema que .tone-cart-drawer__welcome */
  --tone-bf-soft:rgba(255,255,255,.78); /* texto secundario sobre tinta (AA) */
}

/* ---------- Pastilla de campaña (reutilizable en todos los avisos) ---------- */
.tone-bf-pill{
  display:inline-flex; align-items:center;
  background:var(--sale,#B3261E); color:#fff;
  border-radius:999px; padding:5px 11px;
  font-family:var(--font-display); font-size:11px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; line-height:1.5; white-space:nowrap;
}
.tone-bf-pill--sm{ font-size:10px; padding:3px 8px; letter-spacing:.08em; }

/* ---------- Barra superior ---------- */
.tone-bf-announce{ color:var(--paper); text-decoration:none; }
.tone-bf-announce .tone-bf-pill{ margin-right:8px; }
.tone-bf-announce:hover .tone-bf-announce__txt,
.tone-bf-announce:focus-visible .tone-bf-announce__txt{ text-decoration:underline; text-underline-offset:4px; }

/* ==========================================================================
   BLOQUE "OFERTAS BLACK FRIDAY"
   ========================================================================== */
.tone-bf{
  margin:24px var(--gutter) 0;
  background:var(--ink); color:var(--paper);
  border-radius:var(--radius-2xl);
  padding:72px 0 64px;
  position:relative; isolation:isolate;
}
/* En posición B (tras Destacados) necesita aire por arriba */
.tone-featured + .tone-bf{ margin-top:72px; }

.tone-bf__inner{
  width:100%; max-width:var(--container); margin-inline:auto;
  padding-inline:calc(var(--gutter) + 24px);
}
.tone-bf__head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:32px;
  margin-bottom:40px;
}
.tone-bf__meta{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; margin-bottom:18px; }
.tone-bf__dates{
  font-family:var(--font-display); font-size:12px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--paper);
}
.tone-bf__title{
  font-family:var(--font-display); font-weight:800; text-transform:uppercase;
  font-size:clamp(26px, 5vw, 60px); line-height:.95; letter-spacing:-.02em;
  margin:0; color:var(--paper);
}
.tone-bf__sub{ margin:16px 0 0; max-width:46ch; color:var(--tone-bf-soft); font-size:16px; }

/* Cuenta atrás: el único detalle en dorado */
.tone-bf__count{ flex:0 0 auto; text-align:right; }
.tone-bf__count-label{
  display:block; margin-bottom:8px;
  font-family:var(--font-display); font-size:11px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--tone-bf-soft);
}
.tone-bf__count-units{ display:flex; gap:10px; justify-content:flex-end; }
.tone-bf__count-unit{
  min-width:64px; padding:12px 8px 10px; text-align:center;
  border:1.5px solid rgba(255,255,255,.22); border-radius:var(--radius-sm);
}
.tone-bf__count-unit b{
  display:block; font-family:var(--font-display); font-weight:700;
  font-size:30px; line-height:1; color:var(--tone-bf-gold);
  font-variant-numeric:tabular-nums;
}
.tone-bf__count-unit small{
  display:block; margin-top:6px; font-size:10px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase; color:var(--tone-bf-soft);
}
.tone-bf__count[hidden]{ display:none; }

/* Variante PORTADA: el bloque sustituye al carrusel y es lo primero bajo la cabecera */
/* Cabecera COMPACTA (2.º ajuste de Marc, 24/11: «se veía muy alto»): las ofertas mandan.
   Una sola franja baja: titular + etiqueta/fechas a la izquierda, cuenta atrás a la derecha;
   sin subtítulo; fotos de las tarjetas apaisadas y textos recortados para que las 4 tarjetas
   (botón incluido) y la nota quepan en el primer pantallazo de 1440x900 y de 375x812. */
.tone-bf--hero{ margin-top:12px; padding:20px 0 22px; }
.tone-bf--hero .tone-bf__head{ align-items:center; gap:12px 24px; margin-bottom:14px; }
.tone-bf--hero .tone-bf__titulos{ min-width:0; }
.tone-bf--hero .tone-bf__meta{ margin:8px 0 0; gap:6px 12px; }
.tone-bf--hero .tone-bf__title{ font-size:clamp(26px, 3.1vw, 42px); line-height:1; letter-spacing:-.02em; white-space:nowrap; }
.tone-bf--hero .tone-bf__count-label{ margin-bottom:4px; }
.tone-bf--hero .tone-bf__count-unit{ min-width:50px; padding:7px 6px 6px; }
.tone-bf--hero .tone-bf__count-unit b{ font-size:22px; }
.tone-bf--hero .tone-bf__count-unit small{ margin-top:3px; font-size:9px; }
.tone-bf--hero .tone-bf__foot{ margin-top:14px; }
.tone-bf--hero + .tone-featured{ padding-top:56px; }
/* Fase de lanzamiento: lo dice con todas las letras (visible también en móvil) */
.tone-bf__previo{
  margin:-4px 0 14px; padding:8px 12px; border-left:3px solid var(--tone-bf-gold);
  font-size:13px; line-height:1.4; color:var(--paper); background:rgba(255,255,255,.07); border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}

/* Rejilla de packs: reutiliza .tone-product */
.tone-bf__grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }

.tone-bf-card{ color:var(--ink); }
.tone-bf-card .tone-product__body{ gap:6px; }
.tone-bf-card .tone-product__body a{ color:inherit; text-decoration:none; }
.tone-bf-card .tone-product__title{ font-size:16px; margin:0; }

/* Imagen compuesta del pack (2 o 3 productos reales) */
.tone-bf-card__media{
  display:grid !important; gap:3px; background:var(--paper-2);
  grid-template-columns:1fr 1fr;
}
.tone-bf-card__media--3{ grid-template-columns:1.6fr 1fr; grid-template-rows:1fr 1fr; }
.tone-bf-card__media--3 .tone-bf-card__img:first-child{ grid-row:1 / span 2; }
.tone-bf-card__img{
  width:100%; height:100%; min-height:0; min-width:0;
  object-fit:cover; background:var(--paper); display:block;
}
/* En la portada las fotos van apaisadas y los textos se recortan a 2 líneas: tarjetas bajas */
.tone-bf--hero .tone-bf-card .tone-product__media{ aspect-ratio:16/9; margin:10px 10px 0; }
.tone-bf--hero .tone-bf-card .tone-product__body{ padding:10px 14px 8px; gap:3px; }
.tone-bf--hero .tone-bf-card__what{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden;
}
.tone-bf--hero .tone-bf-card .tone-product__price{ margin-top:2px; }
.tone-bf--hero .tone-bf-card .tone-product__actions .tone-product__btn{ min-height:40px; margin:0 10px 10px; }
.tone-bf-card__what{ margin:0; font-size:13px; line-height:1.4; color:#5a5a5a; }
.tone-bf-card .tone-product__price{ margin-top:6px; font-size:17px; display:flex; flex-wrap:wrap; align-items:baseline; gap:0 8px; }
.tone-bf-card .tone-product__price del{ margin-right:0; font-size:14px; }
.tone-bf-card__from{ font-size:12px; font-weight:600; color:#5a5a5a; }
.tone-bf-card__save{
  margin:2px 0 0; font-family:var(--font-display); font-size:12px; font-weight:700;
  letter-spacing:.04em; color:var(--ink);
}
.tone-bf-card .tone-product__actions .tone-product__btn{ min-height:44px; }

.tone-bf__foot{
  display:flex; align-items:center; justify-content:space-between; gap:20px 32px; flex-wrap:wrap;
  margin-top:36px;
}
.tone-bf__note{ margin:0; max-width:62ch; font-size:13px; line-height:1.5; color:var(--tone-bf-soft); }
.tone-bf .tone-bf__cta{
  background:var(--paper); color:var(--ink); border-color:var(--paper);
  min-height:48px; flex:0 0 auto;
}
.tone-bf .tone-bf__cta:hover{ background:transparent; color:var(--paper); }

/* Foco visible */
.tone-bf a:focus-visible, .tone-bf button:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
.tone-bf-upsell a:focus-visible, .tone-bf-upsell button:focus-visible,
.tone-bf-hint a:focus-visible, .tone-bf-hint button:focus-visible,
.tone-bf-buybar a:focus-visible, .tone-bf-buybar button:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

@media (max-width:1100px){
  .tone-bf__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .tone-bf__head{ flex-direction:column; align-items:flex-start; }
  .tone-bf__count{ text-align:left; }
  .tone-bf__count-units{ justify-content:flex-start; }
  /* La cabecera de la portada sigue en una fila hasta 769 px (titular a la izquierda, cuenta atrás a la derecha) */
  .tone-bf--hero .tone-bf__head{ flex-direction:row; align-items:center; }
  .tone-bf--hero .tone-bf__count{ text-align:right; }
  .tone-bf--hero .tone-bf__count-units{ justify-content:flex-end; }
}
@media (max-width:768px){
  .tone-bf{ margin:12px 12px 0; border-radius:44px; padding:40px 0 32px; }
  .tone-featured + .tone-bf{ margin-top:40px; }
  .tone-bf__inner{ padding-inline:20px; }
  .tone-bf__head{ gap:22px; margin-bottom:24px; }
  .tone-bf__sub{ font-size:14px; margin-top:12px; }
  .tone-bf__count-units{ gap:6px; }
  .tone-bf__count-unit{ min-width:58px; padding:10px 6px 8px; }
  .tone-bf__count-unit b{ font-size:24px; }
  /* Móvil: titular en una línea, etiqueta + fechas en otra y la cuenta atrás en una sola fila
     de texto sin cajas. Cabecera ≈ 100 px (antes ≈ 127). */
  .tone-bf--hero{ margin-top:10px; padding:16px 0 18px; }
  .tone-bf--hero .tone-bf__head{ flex-direction:column; align-items:flex-start; gap:8px; margin-bottom:12px; }
  .tone-bf--hero .tone-bf__meta{ flex-wrap:nowrap; gap:8px; margin:6px 0 0; }
  .tone-bf--hero .tone-bf__meta .tone-bf-pill{ font-size:10px; padding:3px 8px; }
  .tone-bf--hero .tone-bf__dates{ font-size:10.5px; letter-spacing:.08em; white-space:nowrap; }
  .tone-bf--hero .tone-bf__title{ font-size:min(7.2vw, 32px); white-space:nowrap; }
  .tone-bf--hero .tone-bf__count{ display:flex; align-items:baseline; gap:8px; text-align:left; }
  .tone-bf--hero .tone-bf__count-label{ margin:0; font-size:10px; letter-spacing:.08em; white-space:nowrap; }
  .tone-bf--hero .tone-bf__count-units{ gap:7px; align-items:baseline; justify-content:flex-start; }
  .tone-bf--hero .tone-bf__count-unit{ min-width:0; padding:0; border:0; border-radius:0; display:inline-flex; align-items:baseline; gap:3px; }
  .tone-bf--hero .tone-bf__count-unit b{ font-size:19px; }
  .tone-bf--hero .tone-bf__count-unit small{ margin:0; font-size:9.5px; letter-spacing:.03em; }
  .tone-bf--hero + .tone-featured{ padding-top:40px; }
  .tone-bf__previo{ margin:-2px 0 12px; font-size:12.5px; }
  .tone-bf__foot{ flex-direction:column; align-items:stretch; margin-top:14px; }
  .tone-bf .tone-bf__cta{ justify-content:center; }
}
/* Móvil: tarjeta en fila (imagen a la izquierda) para que el pack se lea entero. Compacta:
   foto de 92 px, nombre y "qué lleva" a una línea, ahorro y botón a todo el ancho (40 px). */
@media (max-width:640px){
  .tone-bf__grid{ grid-template-columns:1fr; gap:10px; }
  .tone-bf-card.tone-product{
    display:grid; grid-template-columns:92px minmax(0,1fr); align-items:start;
    border-radius:var(--radius-md);
  }
  .tone-bf-card .tone-product__media,
  .tone-bf--hero .tone-bf-card .tone-product__media{ margin:10px 0 0 10px; aspect-ratio:1/1; border-radius:var(--radius-sm); }
  .tone-bf-card .tone-product__body,
  .tone-bf--hero .tone-bf-card .tone-product__body{ padding:10px 12px 6px; gap:2px; }
  .tone-bf-card .tone-product__title{ font-size:15px; }
  .tone-bf-card .tone-product__actions,
  .tone-bf--hero .tone-bf-card .tone-product__actions{ grid-column:1 / -1; margin:2px 10px 10px; }
  .tone-bf--hero .tone-bf-card .tone-product__actions .tone-product__btn{ margin:0; min-height:40px; }
  .tone-bf--hero .tone-bf-card__what{ -webkit-line-clamp:1; line-clamp:1; }
  .tone-bf-card.tone-product .tone-product__badge{ top:16px; left:16px; padding:4px 8px; font-size:10px; }
}

/* ---------- 5-6 tarjetas (con los packs nuevos activos): la cabecera NO crece ----------
   Escritorio (≥1200 px): UNA fila de 5-6 columnas (cada tarjeta más estrecha, algo más alta por el texto).
   Tableta (641-1199 px): 3 columnas (2 filas, como las 4 tarjetas en 2×2).
   Móvil (≤640 px): 2 columnas de tarjetas verticales compactas (3 filas) en vez de 6 filas de tarjeta
   apaisada: el bloque mide lo mismo o menos que con 4 tarjetas apiladas. */
@media (min-width:1200px){
  .tone-bf__grid--n5{ grid-template-columns:repeat(5, minmax(0,1fr)); gap:12px; }
  .tone-bf__grid--n6{ grid-template-columns:repeat(6, minmax(0,1fr)); gap:10px; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__media{ margin:8px 8px 0; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__body{ padding:8px 10px 6px; }
  .tone-bf__grid--muchas .tone-bf-card .tone-product__title{ font-size:14px; line-height:1.2; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card__what{ font-size:12px; line-height:1.35; -webkit-line-clamp:3; line-clamp:3; }
  .tone-bf__grid--muchas .tone-bf-card .tone-product__price{ font-size:15px; }
  .tone-bf__grid--muchas .tone-bf-card .tone-product__price del{ font-size:12px; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__actions .tone-product__btn{ margin:0 8px 8px; min-height:38px; font-size:11px; letter-spacing:.06em; padding-inline:8px; }
}
@media (min-width:641px) and (max-width:1199px){
  .tone-bf__grid--muchas{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width:640px){
  .tone-bf__grid--muchas{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
  .tone-bf__grid--muchas .tone-bf-card.tone-product{ display:flex; flex-direction:column; align-items:stretch; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__media{ margin:8px 8px 0; aspect-ratio:2/1; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__body{ padding:6px 10px 2px; gap:1px; }
  .tone-bf__grid--muchas .tone-bf-card .tone-product__title{ font-size:13.5px; line-height:1.15; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card__what{ font-size:11px; line-height:1.25; -webkit-line-clamp:2; line-clamp:2; }
  .tone-bf__grid--muchas .tone-bf-card .tone-product__price{ font-size:14px; gap:0 5px; }
  .tone-bf__grid--muchas .tone-bf-card .tone-product__price del{ font-size:11.5px; }
  .tone-bf__grid--muchas .tone-bf-card__save{ font-size:11px; letter-spacing:.02em; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__actions{ margin:auto 8px 8px; }
  .tone-bf--hero .tone-bf__grid--muchas .tone-bf-card .tone-product__actions .tone-product__btn{ width:100%; justify-content:center; min-height:40px; font-size:11px; letter-spacing:.06em; padding-inline:8px; }
  .tone-bf__grid--muchas .tone-bf-card.tone-product .tone-product__badge{ top:14px; left:14px; }
}

/* ==========================================================================
   AVISO EN FICHA (bajo el botón de compra, nunca encima)
   ========================================================================== */
.tone-bf-upsell{
  display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:14px 16px;
  margin:0 0 24px; padding:14px;
  border:1.5px solid var(--line); border-radius:var(--radius-md); background:var(--paper);
}
.tone-bf-upsell__img{ width:72px; height:72px; border-radius:var(--radius-sm); object-fit:cover; background:var(--paper-2); display:block; }
.tone-bf-upsell__title{
  margin:6px 0 2px; font-family:var(--font-display); font-size:15px; font-weight:700; line-height:1.25; color:var(--ink);
}
.tone-bf-upsell__math{ margin:0; font-size:13px; line-height:1.45; color:#5a5a5a; }
.tone-bf-upsell__math del{ color:#6b6b6b; }
.tone-bf-upsell__math strong{ color:var(--ink); }
.tone-bf-upsell__btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:10px 18px; border-radius:999px; border:1.5px solid var(--ink);
  background:transparent; color:var(--ink); cursor:pointer; white-space:nowrap;
  font-family:var(--font-display); font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.tone-bf-upsell__btn:hover{ background:var(--ink); color:var(--paper); }
@media (max-width:560px){
  .tone-bf-upsell{ grid-template-columns:64px minmax(0,1fr); }
  .tone-bf-upsell__img{ width:64px; height:64px; }
  .tone-bf-upsell__btn{ grid-column:1 / -1; width:100%; }
}

/* Barra fija de compra en móvil (solo ≤768 px) */
.tone-bf-buybar{ display:none; }
@media (max-width:768px){
  .tone-bf-buybar{
    display:flex; align-items:center; gap:12px;
    position:fixed; left:0; right:0; bottom:0; z-index:90;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background:var(--paper); border-top:1px solid var(--line);
    box-shadow:0 -8px 24px rgba(0,0,0,.06);
  }
  .tone-bf-buybar__info{ flex:1 1 auto; min-width:0; }
  .tone-bf-buybar__name{ display:block; font-size:12px; color:#5a5a5a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tone-bf-buybar__price{ font-family:var(--font-display); font-size:17px; font-weight:700; color:var(--ink); }
  .tone-bf-buybar__price .tone-bf-pill{ margin-left:6px; vertical-align:2px; }
  .tone-bf-buybar__btn{
    flex:0 0 auto; min-height:48px; padding:12px 20px; border-radius:999px; border:0; cursor:pointer;
    background:var(--ink); color:var(--paper);
    font-family:var(--font-display); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  }
  body.tone-bf-has-buybar{ padding-bottom:calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   AVISO EN EL DESPLEGABLE DEL CARRITO (ocupa el hueco de __welcome)
   ========================================================================== */
.tone-bf-hint{
  display:flex; align-items:center; gap:12px;
  margin:10px 0 0; padding:10px 12px; border-radius:var(--radius-sm);
  background:var(--tone-bf-cream); color:var(--ink);
}
.tone-bf-hint__img{ flex:0 0 44px; width:44px; height:44px; border-radius:10px; object-fit:cover; background:var(--paper); display:block; }
.tone-bf-hint__body{ flex:1 1 auto; min-width:0; }
.tone-cart-drawer__ship .tone-bf-hint__title{ margin:4px 0 0; font-size:13px; font-weight:700; line-height:1.3; color:var(--ink); }
.tone-cart-drawer__ship .tone-bf-hint__sub{ margin:2px 0 0; font-size:12px; line-height:1.35; color:#5a5a5a; }
.tone-bf-hint__add{
  flex:0 0 44px; width:44px; height:44px; border-radius:50%;
  border:1.5px solid var(--ink); background:transparent; color:var(--ink); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; line-height:1;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.tone-bf-hint__add:hover{ background:var(--ink); color:var(--paper); }
/* Estado "pack aplicado": confirmación tranquila, sin botón */
.tone-bf-hint--ok{ background:var(--paper-2); }
.tone-bf-hint__check{
  flex:0 0 28px; width:28px; height:28px; border-radius:50%;
  background:var(--ink); color:var(--paper);
  display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:700;
}

/* Línea de descuento (desplegable, carrito y checkout) */
.tone-bf-line{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin:0 0 10px; font-size:13px; color:var(--ink);
}
.tone-bf-line__label{ display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-width:0; }
.tone-bf-line__amount{ font-weight:700; white-space:nowrap; }
.tone-bf-line--muted{ color:#5a5a5a; }
.tone-cart-drawer__foot .tone-bf-line + .tone-cart-drawer__subtotal{ padding-top:12px; border-top:1px solid var(--line); }
/* En tablas de WooCommerce (carrito / checkout): fila tr.fee.tone-bf-fee */
.woocommerce table.shop_table tr.tone-bf-fee th{ font-weight:600; }
.woocommerce table.shop_table tr.tone-bf-fee .tone-bf-line__label{ display:inline-flex; }
.woocommerce table.shop_table tr.tone-bf-fee td{ font-weight:700; white-space:nowrap; }
/* Móvil: WooCommerce convierte la tabla de totales en «etiqueta: importe» y pone la etiqueta en td::before (data-title).
   La etiqueta de un pack es larga («Black Friday · Pack trompetista (−25 %)»): con nowrap se salía por la derecha y se pegaba al
   importe. Ahora la etiqueta se parte en varias líneas (a la izquierda) y el importe, en una sola, queda a la derecha. */
@media (max-width:768px){
  .woocommerce table.shop_table tr.tone-bf-fee td,
  .woocommerce-page table.shop_table tr.tone-bf-fee td{
    display:flex; align-items:baseline; justify-content:space-between; gap:12px;
    box-sizing:border-box; max-width:100%; text-align:right;
  }
  .woocommerce table.shop_table tr.tone-bf-fee td::before,
  .woocommerce-page table.shop_table tr.tone-bf-fee td::before{
    float:none; flex:1 1 auto; min-width:0; text-align:left; white-space:normal; overflow-wrap:anywhere;
  }
}
/* Precio tachado en la fila de artículo del desplegable */
.tone-cart-item__row del{ color:#6b6b6b; font-weight:500; margin-right:6px; }

@media (prefers-reduced-motion:reduce){
  .tone-bf-upsell__btn, .tone-bf-hint__add, .tone-bf .tone-bf__cta{ transition:none; }
  .tone-bf__count-unit--sec{ display:none; } /* sin dígitos saltando cada segundo */
}

/* ==========================================================================
   MARCADO QUE EMITE EL MOTOR (inc/blackfriday.php), con el aspecto del borrador
   .tone-bf-ficha  = aviso de la ficha (equivale a .tone-bf-upsell)
   .tone-bf-avisos = avisos de carrito, checkout y desplegable (equivale a .tone-bf-hint)
   ========================================================================== */
/* RECUADRO DE OFERTAS de la ficha: justo DEBAJO DEL TÍTULO (sordina → dúo → atril completo). */
.tone-bf-ficha{
  display:grid; gap:6px; margin:0 0 14px; padding:10px 14px 4px;
  border:1.5px solid var(--line); border-radius:var(--radius-md); background:var(--tone-bf-cream);
}
.tone-bf-ficha__cab{ display:flex; align-items:center; gap:10px; }
.tone-bf-ficha__titulo{
  margin:0; font-family:var(--font-display); font-size:13.5px; font-weight:700; line-height:1.3; color:var(--ink);
}
.tone-bf-ficha__previo{ margin:0; font-size:12.5px; line-height:1.4; color:#5a5a5a; }
.tone-bf-ficha__lista{ list-style:none; margin:0; padding:0; display:grid; }
/* Escritorio: tres columnas (descuento | nombre y frase | botón) = filas de ≈ 56 px */
.tone-bf-ficha__oferta{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:2px 12px; align-items:center;
  padding:8px 0; border-top:1px solid rgba(0,0,0,.09);
}
.tone-bf-ficha__pct{
  min-width:58px; text-align:center; justify-self:start;
  background:var(--sale,#B3261E); color:#fff; border-radius:999px; padding:3px 9px;
  font-family:var(--font-display); font-size:12px; font-weight:700; line-height:1.5; white-space:nowrap;
}
.tone-bf-ficha__cuerpo{ min-width:0; }
.tone-bf-ficha__nombre{ margin:0; font-family:var(--font-display); font-size:13.5px; font-weight:700; line-height:1.3; color:var(--ink); }
.tone-bf-ficha__texto{ margin:1px 0 0; font-size:12.5px; line-height:1.35; color:#4a4a4a; }
.tone-bf-ficha__texto strong{ font-weight:700; }
.tone-bf-ficha__acciones{ grid-column:3; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px 8px; margin:0; max-width:196px; }
.tone-bf-ficha__oferta .tone-bf-ficha__btn, .tone-bf-ficha__oferta .tone-bf-ficha__link{ min-height:38px; padding:7px 14px; font-size:10.5px; letter-spacing:.06em; }
/* Aviso corto del recuadro en el hueco "Ver todas las ofertas →" (cabecera) */
.tone-bf-ficha__mas{
  margin-left:auto; white-space:nowrap;
  font-family:var(--font-display); font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink); text-decoration:none;
}
@media (max-width:560px){
  /* Móvil: el botón baja a su propia línea bajo el texto (objetivo táctil de 44 px) */
  .tone-bf-ficha__oferta{ grid-template-columns:auto minmax(0,1fr); gap:4px 12px; align-items:start; }
  .tone-bf-ficha__acciones{ grid-column:2; justify-content:flex-start; max-width:none; margin-top:2px; }
  .tone-bf-ficha__oferta .tone-bf-ficha__btn, .tone-bf-ficha__oferta .tone-bf-ficha__link{ min-height:44px; }
  .tone-bf-ficha__cab{ flex-wrap:wrap; }
  .tone-bf-ficha__mas{ margin-left:0; flex-basis:100%; }
}
.tone-bf-ficha__mas:hover, .tone-bf-ficha__mas:focus-visible{ text-decoration:underline; text-underline-offset:4px; }
/* Quien llega desde una tarjeta de la portada (ficha#bf-oferta-<pack>) ve su oferta marcada */
.tone-bf-ficha__oferta{ scroll-margin-top:120px; }
.tone-bf-ficha__oferta:target{ background:rgba(179,38,30,.07); box-shadow:-10px 0 0 rgba(179,38,30,.07), 10px 0 0 rgba(179,38,30,.07); border-radius:var(--radius-sm); }
/* Botón de la ficha cuando sus piezas ya están en el carrito */
.tone-bf-ficha__btn.is-en-carrito{ background:transparent; color:var(--ink); }
/* Móvil: con más de 3 ofertas, las demás se pliegan tras "Ver N ofertas más" (el botón solo existe si blackfriday.js
   marca la lista como plegable: sin JS se ven todas). */
.tone-bf-ficha__toggle{ display:none; }
@media (max-width:560px){
  .tone-bf-ficha__lista[data-bf-plegable]:not(.is-abierta) .tone-bf-ficha__oferta--extra{ display:none; }
  .tone-bf-ficha__lista[data-bf-plegable] + .tone-bf-ficha__toggle{
    display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin:0 0 6px; padding:8px 12px;
    border:0; border-top:1px solid rgba(0,0,0,.09); background:transparent; cursor:pointer; color:var(--ink);
    font-family:var(--font-display); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  }
  .tone-bf-ficha__toggle::after{ content:"▾"; margin-left:8px; font-size:12px; }
  .tone-bf-ficha__toggle[aria-expanded="true"]::after{ content:"▴"; }
  .tone-bf-ficha__toggle:focus-visible{ outline:2px solid var(--ink); outline-offset:-2px; }
}

/* FRANJA informativa (tienda y fichas sin ofertas): discreta pero visible */
.tone-bf-franja{
  display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:0 0 18px; padding:9px 14px;
  border:1px solid rgba(0,0,0,.08); border-radius:var(--radius-md); background:var(--tone-bf-cream);
  color:var(--ink); text-decoration:none; font-size:13.5px; line-height:1.35;
}
.tone-bf-franja__txt{ flex:1 1 auto; min-width:0; }
.tone-bf-franja__cta{
  flex:0 0 auto; font-family:var(--font-display); font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; white-space:nowrap;
}
.tone-bf-franja:hover .tone-bf-franja__cta, .tone-bf-franja:focus-visible .tone-bf-franja__cta{ text-decoration:underline; text-underline-offset:4px; }
.tone-bf-franja:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
/* Elementos que blackfriday.js enseña/oculta por fase: el atributo hidden manda siempre */
[data-bf-fase][hidden]{ display:none !important; }
.tone-bf-completar.is-adding{ opacity:.6; pointer-events:none; }

.tone-bf-ficha__btn, .tone-bf-avisos__btn,
.tone-bf-ficha__link, .tone-bf-avisos__link{
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:10px 18px; border-radius:999px; border:1.5px solid var(--ink);
  background:transparent; color:var(--ink); cursor:pointer; text-decoration:none;
  font-family:var(--font-display); font-size:11.5px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; line-height:1.3; text-align:center;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.tone-bf-ficha__btn, .tone-bf-avisos__btn{ background:var(--ink); color:var(--paper); }
.tone-bf-ficha__btn:hover, .tone-bf-avisos__btn:hover{ background:transparent; color:var(--ink); }
.tone-bf-ficha__link:hover, .tone-bf-avisos__link:hover{ background:var(--ink); color:var(--paper); }
.tone-bf-ficha__btn.is-adding, .tone-bf-avisos__btn.is-adding{ opacity:.6; pointer-events:none; }
.tone-bf-ficha a:focus-visible, .tone-bf-avisos a:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

.tone-bf-avisos{ display:grid; gap:8px; margin:0 0 20px; padding:0; border:0; }
.tone-bf-avisos__item{
  /* En bloque (no flex): el texto lleva <strong> y enlaces, y en flex cada trozo sería una columna */
  display:block;
  margin:0; padding:12px 14px; border-radius:var(--radius-sm);
  background:var(--tone-bf-cream); color:var(--ink); font-size:14px; line-height:1.4;
}
.tone-bf-avisos__item strong{ font-weight:700; }
.tone-bf-avisos__item--aplicado{ background:var(--paper-2); }
.tone-bf-avisos__item--aplicado::before{
  content:"✓"; width:22px; height:22px; border-radius:50%; margin-right:8px; vertical-align:middle;
  background:var(--ink); color:var(--paper);
  display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700;
}
.tone-bf-avisos__btn, .tone-bf-avisos__link{ display:flex; width:fit-content; max-width:100%; margin-top:8px; }
/* Rótulo de los avisos (texto real, traducible): «Sugerencia» (neutro, borde discontinuo) o «Black Friday» (pastilla roja) */
.tone-bf-avisos__etq{
  display:inline-block; margin-right:8px; vertical-align:middle;
  border:1.5px dashed var(--ink); color:var(--ink); background:transparent; border-radius:999px; padding:2px 8px;
  font-family:var(--font-display); font-size:10px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; line-height:1.5; white-space:nowrap;
}
.tone-bf-avisos__etq--bf{ background:var(--sale,#B3261E); border:0; padding:3px 8px; color:#fff; }
/* Una SUGERENCIA no parece una línea del carrito: sin relleno y con borde discontinuo */
.tone-bf-avisos__item--falta{ background:transparent; border:1.5px dashed rgba(0,0,0,.3); }
/* Pack aplicado: qué artículos lo forman */
.tone-bf-avisos__piezas{ display:block; margin-top:4px; font-size:12.5px; line-height:1.4; color:#4a4a4a; }
/* Carrito y checkout clásicos: a qué pack entra cada línea (o que va sin pack) */
.tone-bf-linea-pack{ display:block; margin-top:3px; font-size:12px; font-weight:600; line-height:1.35; color:var(--sale,#B3261E); }
.tone-bf-linea-pack .amount{ font-weight:700; }
.tone-bf-linea-pack--suelto{ color:var(--mute); font-weight:500; }
.tone-bf-avisos__item--cupon{ border:1.5px solid var(--line); background:var(--paper); }
/* Desplegable: compacto, entre la barra de envío y la lista. Puede encoger (con scroll
   propio) para que la lista de artículos conserve su altura mínima (style.css). */
.tone-bf-avisos--desplegable{ margin:0; padding:10px 24px 0; gap:6px; }
/* SUGERENCIAS del desplegable: debajo de la lista de artículos, separadas y con su rótulo (no son una línea del carrito) */
.tone-bf-sug{ display:grid; gap:8px; margin:6px 24px 14px; padding-top:12px; border-top:1px dashed rgba(0,0,0,.25); }
.tone-bf-sug[hidden]{ display:none; }
.tone-bf-sug .tone-bf-avisos__item{ padding:10px 12px; font-size:12.5px; line-height:1.4; }
/* ARTÍCULOS AGRUPADOS POR PACK (desplegable): una caja por pack aplicado + «Otros artículos» */
.tone-cart-drawer__items.is-agrupado{ padding:6px 24px 8px; }
.tone-bf-grupo{ margin:10px 0 0; border:1.5px solid var(--ink); border-radius:var(--radius-md); overflow:hidden; background:var(--paper); }
.tone-bf-grupo--otros{ border-color:var(--line); }
.tone-bf-grupo__cab{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; padding:9px 12px; background:var(--ink); color:var(--paper); }
.tone-bf-grupo--otros .tone-bf-grupo__cab{ background:var(--paper-2); color:var(--ink); }
.tone-bf-grupo__nombre{ font-family:var(--font-display); font-size:13px; font-weight:700; line-height:1.3; }
.tone-bf-grupo__ahorro{ margin-left:auto; font-family:var(--font-display); font-size:13px; font-weight:700; color:var(--tone-bf-gold); white-space:nowrap; }
.tone-bf-grupo__nota{ margin-left:auto; font-size:11.5px; color:var(--mute); }
.tone-bf-grupo .tone-cart-item{ padding:12px; gap:12px; }
.tone-bf-grupo .tone-cart-item:last-child{ border-bottom:0; }
.tone-bf-grupo .tone-cart-item__img{ width:52px; height:52px; }
.tone-bf-grupo .tone-cart-item__info h3{ font-size:13px; line-height:1.3; }
.tone-bf-item__qty{ font-size:12.5px; font-weight:600; color:var(--mute); }
.tone-bf-item__precio{ text-align:right; font-size:13px; }
.tone-bf-item__precio del{ margin-right:4px; font-weight:500; color:#6b6b6b; }
.tone-bf-item__precio ins{ text-decoration:none; color:var(--sale,#B3261E); }
/* «Vaciar carrito» en la página del carrito */
.tone-cart-clear.tone-cart-drawer__clear{ display:inline-flex; margin:0 0 0 16px; min-height:0; vertical-align:middle; }
.tone-bf-avisos--desplegable .tone-bf-avisos__item{ padding:8px 12px; font-size:12.5px; line-height:1.35; }
.tone-bf-avisos--desplegable .tone-bf-avisos__btn,
.tone-bf-avisos--desplegable .tone-bf-avisos__link{ margin-top:6px; padding:8px 14px; font-size:11px; }
.tone-bf-lineas[hidden]{ display:none; }
.tone-bf-lineas .tone-bf-line:last-child{ margin-bottom:12px; }
.tone-bf-lineas:not([hidden]) + .tone-cart-drawer__subtotal{ padding-top:12px; border-top:1px solid var(--line); }
.tone-bf-line__label .tone-bf-pill{ flex:0 0 auto; }
/* Checkout: los avisos van en la columna del resumen, justo encima de "Tu pedido"
   (en móvil, entre los datos y el resumen). La rejilla base está en style.css. */
.tone-bf-checkout .tone-bf-avisos{ margin-bottom:8px; }
form.woocommerce-checkout > .tone-bf-checkout{ grid-area:bf; min-width:0; }
form.woocommerce-checkout{
  grid-template-areas:
    "notices notices"
    "details bf"
    "details heading"
    "details review"
    "details .";
  grid-template-rows:auto auto auto auto 1fr;
}
@media (max-width:900px){
  form.woocommerce-checkout{
    grid-template-areas:"notices" "details" "bf" "heading" "review";
    grid-template-rows:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .tone-bf-ficha__btn, .tone-bf-avisos__btn, .tone-bf-ficha__link, .tone-bf-avisos__link{ transition:none; }
}

/* ==========================================================================
   SELECTOR RÁPIDO DE ATRIL («Añadir otro atril»)
   Móvil (≤640 px): HOJA INFERIOR que sube desde abajo. Escritorio: ventana pequeña centrada.
   Un solo scroll (la lista); cabecera y pie fijos. Por encima del desplegable del carrito (z-index 100).
   ========================================================================== */
.tone-bf-sel{ position:fixed; inset:0; z-index:130; display:flex; align-items:flex-end; justify-content:center; }
.tone-bf-sel[hidden]{ display:none; }
.tone-bf-sel__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.5); animation:tone-bf-sel-fade .25s var(--ease) both; }
.tone-bf-sel__panel{
  position:relative; display:flex; flex-direction:column; width:100%; max-height:88vh; max-height:88dvh;
  background:var(--paper); color:var(--ink); border-radius:22px 22px 0 0;
  box-shadow:0 -14px 50px rgba(0,0,0,.25); animation:tone-bf-sel-sube .32s var(--ease) both;
  padding-bottom:env(safe-area-inset-bottom, 0px);
}
.tone-bf-sel__cab{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px 8px; flex:0 0 auto; }
.tone-bf-sel__cab h2{ margin:0; font-family:var(--font-display); font-size:18px; font-weight:800; letter-spacing:-.01em; text-transform:uppercase; }
.tone-bf-sel__x{ flex:0 0 auto; width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); background:transparent; font-size:15px; cursor:pointer; color:var(--ink); }
.tone-bf-sel__x:hover{ background:var(--ink); color:var(--paper); }
.tone-bf-sel__ayuda{ margin:0; padding:0 20px 10px; font-size:13px; line-height:1.4; color:#4a4a4a; flex:0 0 auto; }
.tone-bf-sel__lista{ list-style:none; margin:0; padding:0 20px; overflow-y:auto; overscroll-behavior:contain; flex:1 1 auto; min-height:0; border-top:1px solid var(--line); }
.tone-bf-sel__fila{
  display:grid; grid-template-columns:56px minmax(0,1fr); gap:6px 12px; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--line);
}
.tone-bf-sel__img{ width:56px; height:56px; border-radius:var(--radius-sm); object-fit:cover; background:var(--paper-2); display:block; }
.tone-bf-sel__info{ min-width:0; display:grid; gap:1px; }
.tone-bf-sel__nombre{ font-size:14px; font-weight:700; line-height:1.25; }
.tone-bf-sel__precio{ font-size:13px; color:#4a4a4a; }
.tone-bf-sel__precio small{ font-size:11px; color:var(--mute); }
.tone-bf-sel__pista{ font-size:12px; color:#4a4a4a; }
.tone-bf-sel__pista b{ color:var(--sale,#B3261E); font-weight:700; }
/* Acciones bajo el texto (móvil): selector de opción + «Añadir», objetivos de 44 px */
.tone-bf-sel__accion{ grid-column:1 / -1; display:flex; gap:8px; align-items:stretch; }
.tone-bf-sel__var{
  flex:1 1 auto; min-width:0; min-height:44px; padding:8px 12px; border:1.5px solid var(--ink); border-radius:999px;
  background:var(--paper); color:var(--ink); font-size:14px; font-family:inherit;
}
.tone-bf-sel__add{
  flex:1 1 auto; min-height:44px; padding:8px 18px; border-radius:999px; border:1.5px solid var(--ink); background:var(--ink); color:var(--paper);
  font-family:var(--font-display); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; cursor:pointer;
}
.tone-bf-sel__var + .tone-bf-sel__add{ flex:0 0 auto; }
.tone-bf-sel__add:hover{ background:transparent; color:var(--ink); }
.tone-bf-sel__add.is-adding{ opacity:.6; pointer-events:none; }
.tone-bf-sel__fila.is-sin-opcion .tone-bf-sel__var{ border-color:var(--sale,#B3261E); }
.tone-bf-sel__msg{ grid-column:1 / -1; margin:0; font-size:12.5px; color:var(--sale,#B3261E); }
.tone-bf-sel__msg:empty{ display:none; }
.tone-bf-sel__pie{ flex:0 0 auto; padding:12px 20px 16px; text-align:center; border-top:1px solid var(--line); }
.tone-bf-sel__pie a{ font-family:var(--font-display); font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.tone-bf-sel a:focus-visible, .tone-bf-sel button:focus-visible, .tone-bf-sel select:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
@keyframes tone-bf-sel-sube{ from{ transform:translateY(100%); } to{ transform:none; } }
@keyframes tone-bf-sel-fade{ from{ opacity:0; } to{ opacity:1; } }
@media (min-width:641px){
  .tone-bf-sel{ align-items:center; }
  .tone-bf-sel__panel{ width:min(560px, 92vw); max-height:80vh; border-radius:var(--radius-lg, 24px); animation:tone-bf-sel-pop .22s var(--ease) both; padding-bottom:0; }
  .tone-bf-sel__fila{ grid-template-columns:56px minmax(0,1fr) auto; }
  .tone-bf-sel__accion{ grid-column:auto; }
  .tone-bf-sel__add, .tone-bf-sel__var{ flex:0 0 auto; }
  .tone-bf-sel__accion{ min-width:0; }
  .tone-bf-sel__var{ width:140px; max-width:140px; min-width:0; padding-inline:10px; font-size:13px; }
  .tone-bf-sel__add{ padding-inline:14px; }
  .tone-bf-sel__msg{ grid-column:2 / -1; }
}
@keyframes tone-bf-sel-pop{ from{ opacity:0; transform:translateY(12px) scale(.98); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .tone-bf-sel__overlay, .tone-bf-sel__panel{ animation:none; } }

/* Aviso breve tras añadir («Pack dúo aplicado: ahorras X €») */
.tone-bf-toast{
  position:fixed; left:50%; bottom:calc(16px + env(safe-area-inset-bottom, 0px)); z-index:140; transform:translateX(-50%);
  width:min(440px, calc(100vw - 24px)); padding:12px 16px; border-radius:var(--radius-md);
  background:var(--ink); color:var(--paper); font-size:14px; line-height:1.4; box-shadow:0 10px 36px rgba(0,0,0,.3);
}
.tone-bf-toast[hidden]{ display:none; }
.tone-bf-toast.is-visible{ animation:tone-bf-sel-sube .3s var(--ease) both; }
.tone-bf-toast strong{ font-weight:700; color:var(--tone-bf-gold); }
@media (max-width:768px){ body.tone-bf-has-buybar .tone-bf-toast{ bottom:calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* v0.46.4 · SUGERENCIAS del desplegable más compactas (petición Marc): ocupaban ~210 px y empujaban la lista.
   En pantallas bajas (portátil 768 px) solo se muestra la primera sugerencia; la otra sigue en la ficha del producto. */
.tone-bf-sug{ gap:6px; margin:4px 24px 10px; padding-top:8px; }
.tone-bf-sug .tone-bf-avisos__item{ padding:7px 10px; font-size:12px; line-height:1.35; }
.tone-bf-sug .tone-bf-avisos__btn{ margin-top:5px; padding:6px 12px; font-size:10.5px; }
@media (max-height:860px){
  .tone-bf-sug .tone-bf-avisos__item:nth-child(n+2){ display:none; }
}

/* v0.46.8 · BOTÓN DEL PACK tras pulsar (petición Marc): antes «Añadiendo…» y «✓ Añadido» salían en gris claro con
   letras blancas (opacity .6) y de tamaño completo. Ahora se mantienen oscuros con letra clara (legible), algo más
   pequeños, y el ✓ en un tono suave. */
.tone-bf-ficha__btn.is-adding, .tone-bf-avisos__btn.is-adding,
.tone-bf-ficha__btn.is-added, .tone-bf-avisos__btn.is-added{
  opacity:1; background:var(--ink); color:var(--paper); border-color:var(--ink);
  font-size:11px; letter-spacing:.06em; min-height:38px; padding:8px 16px; pointer-events:none;
}
.tone-bf-ficha__btn.is-adding, .tone-bf-avisos__btn.is-adding{ cursor:progress; }
