/* ==========================================================================
   BioHerbolario — REDISEÑO UX FASE 2: PORTADA (15-oct-2026, maquetas de Celia ux-bio-home-pc/movil)
   Solo se carga en la portada (header.tpl, $page_name == 'index'). Reutiliza las variables de bh2026.css (fase 1).
   Estructura (index.tpl): <div class="bh26-flow"> y el orden visual lo da la propiedad CSS «order»:
     1 caja de título · 2 slider + cajas · 3 iconos de categorías · 10-11 carruseles de producto
     20 franjas de marca · 30 fila final · 50 resto de bloques de zerohomepage · 60 bloques de siempre
   Al terminar el rediseño se funde en bh2026.css.
   ========================================================================== */

/* ---------- ancho y contenedor de la portada (igual que la cabecera nueva: 1480 máx.) ---------- */
#index #columns > .container { width: 100%; max-width: var(--bh-w); box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
#index #columns > .container > .row { margin-left: 0; margin-right: 0; }
#index .left_center, #index #center_column { padding-left: 0; padding-right: 0; }
#index .top_column:empty { display: none; }

/* ---------- flujo flex: los wrappers del módulo zerohomepage desaparecen (display:contents) para poder ordenar sus bloques ---------- */
.bh26-flow { display: flex; flex-direction: column; gap: 28px; padding: 18px 0 10px; }
.bh26-flow .zhomepage, .bh26-flow .zhomepage > .container, .bh26-flow .zblocks, .bh26-flow .zhomepage .row { display: contents; }
.bh26-flow .zhomepage::before, .bh26-flow .zhomepage::after,
.bh26-flow .zhomepage > .container::before, .bh26-flow .zhomepage > .container::after,
.bh26-flow .zblocks::before, .bh26-flow .zblocks::after { display: none; content: none; }
.bh26-flow > * { min-width: 0; }
.bh26-o1 { order: 1; } .bh26-o2 { order: 2; } .bh26-o3 { order: 3; }
.bh26-zb { order: 50; min-width: 0; }
.bh26-o20 { order: 20; } .bh26-o30 { order: 30; } .bh26-o60 { order: 60; }
.bh26-hooks-home { order: 99; }
.bh26-hooks-home:empty, .bh26-leftover:empty, .bh26-o2:empty { display: none; }
.bh26-flow .zhomepage > .container, .bh26-flow .zblocks { width: auto; max-width: none; padding: 0; margin: 0; }

/* ---------- 1. caja de título (H1 + H2) ---------- */
.bh26-titlebox { padding: 16px 20px 18px; border-radius: 14px; background: #f5f2ea; text-align: center; }
#index .bh26-titlebox h1 { margin: 0; padding: 0; color: var(--bh-text); font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
#index .bh26-titlebox h2 { margin: 4px 0 0; padding: 0; color: var(--bh-text); font-family: inherit; font-size: 32px; font-weight: 500; line-height: 1.2; text-transform: none; letter-spacing: 0; }

/* ---------- títulos de sección y enlaces «Ver todos» ---------- */
.bh26-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
#index .bh26-flow h2.bh26-sec-title { margin: 0; padding: 0; background: none; border: 0; color: var(--bh-text); font-family: inherit; font-size: 26px; font-weight: 500; line-height: 1.25; text-align: left; text-transform: none; letter-spacing: 0; }
#index .bh26-flow h2.bh26-sec-title::before, #index .bh26-flow h2.bh26-sec-title::after { display: none; content: none; }
.bh26-sec-more { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--bh-g-d); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bh26-sec-more .bh26-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bh26-sec-more:hover, .bh26-sec-more:focus-visible { color: var(--bh-g-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 2. fila slider + cajas ---------- */
.bh26-hero { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 16px; align-items: stretch; }
.bh26-hero-main { min-width: 0; border-radius: 14px; overflow: hidden; background: #efe9dc; }
.bh26-hero .zero-slideshow { margin: 0; padding: 0; }
.bh26-hero #zeroslider { width: 100%; margin: 0; }
/* Ronda 3 (LCP): la 1.ª imagen del slider se pinta DESDE EL HTML (el CSS del módulo la oculta con display:none hasta que nivo arranca; la regla de
   front.css que la mostraba no está en el bundle del tema). Nivo la oculta con estilo en línea cuando toma el relevo (el estilo en línea gana). */
#index #zeroslider img.nivo-first { display: block; position: relative; top: auto; left: auto; width: 100%; height: auto; max-width: 100%; }
#index .bh26-hero .slide-products-related { display: none !important; }   /* los 2 productos que iban SOBRE el banner pasan a la caja «Para ti» */
.bh26-hero-side { display: grid; grid-auto-rows: 1fr; gap: 12px; min-width: 0; }

.bh26-box { display: flex; flex-direction: column; min-width: 0; padding: 8px 14px 10px; border: 1px solid; border-radius: 14px; }
.bh26-box--pink { background: #fdeef2; border-color: #f6cfda; }
.bh26-box--green { background: #eff7e9; border-color: #d6e8c8; }
.bh26-box-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
#index .bh26-box-head h2 { flex: 1 1 auto; margin: 0; padding: 0; background: none; border: 0; color: var(--bh-text); font-family: inherit; font-size: 22px; font-weight: 500; line-height: 1.2; text-align: left; text-transform: none; letter-spacing: 0; }
.bh26-dots { display: flex; align-items: center; gap: 2px; }
.bh26-dots button { position: relative; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.bh26-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box; border: 1.5px solid #7a8a72; border-radius: 50%; background: #fff; }
.bh26-box--pink .bh26-dots button.is-on::before { background: var(--bh-pink-ink); border-color: var(--bh-pink-ink); }
.bh26-box--green .bh26-dots button.is-on::before { background: var(--bh-g-ink); border-color: var(--bh-g-ink); }
.bh26-box-track { display: flex; flex: 1 1 auto; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; -webkit-overflow-scrolling: touch; }
.bh26-box-track::-webkit-scrollbar, .bh26-scroll::-webkit-scrollbar { display: none; }
.bh26-box-item { flex: 0 0 100%; display: flex; align-items: center; gap: 14px; margin: 0; padding: 4px 12px; box-sizing: border-box; border-radius: 10px; background: #fff; list-style: none; scroll-snap-align: start; }
.bh26-box-img { flex: 0 0 84px; width: 84px; display: block; }
.bh26-box-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.bh26-box-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#index .bh26-box-name { margin: 0; padding: 0; background: none; height: auto; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; text-transform: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bh26-box-name a { color: var(--bh-text); text-decoration: none; }
.bh26-box-name a:hover { color: var(--bh-g-ink); }
.bh26-box-price { margin: 0; color: var(--bh-text); font-size: 20px; font-weight: 700; line-height: 1.2; }
#index a.bh26-box-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin: 0; padding: 6px 18px; border: 2px solid var(--bh-g-ink); border-radius: 8px; background: var(--bh-g-ink) !important; color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: none; text-decoration: none; box-shadow: none; }
#index a.bh26-box-btn > span { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
#index a.bh26-box-btn:hover, #index a.bh26-box-btn:focus-visible { background: var(--bh-g-hov) !important; border-color: var(--bh-g-hov); }
#index a.bh26-box-btn .bh26-ico { fill: none; stroke: currentColor; }
#index a.bh26-box-btn--ver { background: #fff !important; color: var(--bh-g-ink) !important; }
#index a.bh26-box-btn--ver > span { color: var(--bh-g-ink); }

/* ---------- 3. iconos de categorías ---------- */
.bh26-cats { position: relative; }
#index .bh26-flow h2.bh26-cats-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }   /* en escritorio el título solo para lectores de pantalla (maqueta) */
.bh26-cats-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bh26-cats-list li { margin: 0; padding: 0; list-style: none; }
.bh26-cats-list a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 44px; padding: 14px 8px 12px; box-sizing: border-box; border: 1.5px solid var(--bh-g); border-radius: 10px; background: #fff; color: var(--bh-text); font-size: 15px; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; }
.bh26-cats-list a:hover, .bh26-cats-list a:focus-visible { border-color: var(--bh-g-ink); box-shadow: 0 6px 16px rgba(31, 90, 46, .14); }
.bh26-cat-ico { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: #fbf4e6; }
.bh26-cat-ico img { display: block; width: 72px; height: 72px; object-fit: cover; }

/* ---------- 10-11. carruseles de producto (scroll-snap, sin slick) ---------- */
.bh26-railbox { min-width: 0; }
.bh26-rail { position: relative; }
.bh26-rail .bh26-scroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#index .bh26-rail ul.product_base_list { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 14px; width: auto; min-width: 100%; margin: 0; padding: 2px 2px 6px; float: none; list-style: none; box-sizing: border-box; }
#index .bh26-rail ul.product_base_list::before, #index .bh26-rail ul.product_base_list::after { display: none; content: none; }
#index .bh26-rail ul.product_base_list > li.base_product { display: flex; flex: 0 0 calc((100% - 56px) / 5); width: auto; max-width: none; float: none; margin: 0; padding: 0; scroll-snap-align: start; }
#index .bh26-rail ul.product_base_list > li.base_product > .bh26-card { flex: 1 1 auto; width: 100%; }
.bh26-rail-btn { position: absolute; top: 50%; z-index: 6; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px 0 0; padding: 0; border: 1px solid var(--bh-line); border-radius: 50%; background: #fff; color: var(--bh-g-d); box-shadow: 0 3px 10px rgba(0, 0, 0, .18); cursor: pointer; }
.bh26-rail-btn[hidden] { display: none; }
.bh26-rail-btn:disabled { opacity: .35; cursor: default; }
.bh26-rail-btn:hover:not(:disabled), .bh26-rail-btn:focus-visible { border-color: var(--bh-g); background: var(--bh-bg); }
.bh26-rail-btn .bh26-ico { fill: none; stroke: currentColor; stroke-width: 2.4; }
.bh26-rail-prev { left: -14px; } .bh26-rail-prev .bh26-ico { transform: rotate(90deg); }
.bh26-rail-next { right: -14px; } .bh26-rail-next .bh26-ico { transform: rotate(-90deg); }
.bh26-rail-btn:focus-visible, .bh26-dots button:focus-visible, .bh26-cats-list a:focus-visible, .bh26-marca a:focus-visible, .bh26-useful a:focus-visible, .bh26-topbrands a:focus-visible, .bh26-sec-more:focus-visible, a.bh26-box-btn:focus-visible { outline: 2px solid var(--bh-g-ink); outline-offset: 2px; }

/* ---------- 20. franjas «Marca destacada» ---------- */
.bh26-marcas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bh26-marca { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 176px; overflow: hidden; border-radius: 16px; }
.bh26-marca--big { grid-column: 1 / -1; min-height: 200px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.bh26-tone-pink { background: linear-gradient(90deg, #fdecef 0%, #fcf2f4 55%, #fff 100%); }
.bh26-tone-green { background: linear-gradient(90deg, #eef6e7 0%, #f4faf0 55%, #fff 100%); }
.bh26-marca-body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); grid-template-areas: "eye eye" "logo txt"; align-items: center; gap: 6px 20px; padding: 18px 8px 18px 24px; }
.bh26-eyebrow { grid-area: eye; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.bh26-tone-pink .bh26-eyebrow { color: #b52d56; }
.bh26-tone-green .bh26-eyebrow { color: #3f7425; }
.bh26-marca-logo { grid-area: logo; display: block; min-width: 0; }
.bh26-marca-logo img { display: block; width: 100%; max-width: 240px; height: 84px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.bh26-marca--big .bh26-marca-logo img { height: 104px; max-width: 300px; }
.bh26-marca-txt { grid-area: txt; min-width: 0; }
#index .bh26-marca-txt h2 { margin: 0 0 6px; padding: 0; background: none; border: 0; color: #2a2733; font-family: inherit; font-size: 22px; font-weight: 600; line-height: 1.25; text-align: left; text-transform: none; letter-spacing: 0; }
#index .bh26-marca--big .bh26-marca-txt h2 { font-size: 26px; }
.bh26-marca-txt p { margin: 0 0 12px; color: #4a4a4a; font-size: 14.5px; line-height: 1.45; }
.bh26-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.bh26-tone-pink .bh26-btn { background: var(--bh-pink-ink); color: #fff; }
.bh26-tone-pink .bh26-btn:hover, .bh26-tone-pink .bh26-btn:focus-visible { background: #b92e55; color: #fff; text-decoration: none; }
.bh26-tone-green .bh26-btn { border-color: var(--bh-line); background: #fff; color: var(--bh-g-d); }
.bh26-tone-green .bh26-btn:hover, .bh26-tone-green .bh26-btn:focus-visible { border-color: var(--bh-g); background: var(--bh-bg); color: var(--bh-g-d); text-decoration: none; }
/* imagen decorativa de la derecha: productos de la marca (provisional) o la imagen propia de Celia (deco_ruta en index.tpl) */
.bh26-marca-deco { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; min-width: 0; overflow: hidden; }
.bh26-marca-deco img { display: block; flex: 0 1 auto; width: auto; max-width: 62%; height: 92%; max-height: 190px; margin: 0 -2% 0 0; object-fit: contain; mix-blend-mode: multiply; }
.bh26-marca-deco img:only-child { max-width: 80%; }
/* 20-oct: imagen PROPIA de la franja (bodegón de Celia): centrada, con margen y usando el alto del bloque; sin salirse del borde */
.bh26-marca-deco--propia { align-items: center; justify-content: flex-end; padding: 14px 28px 14px 0; }
.bh26-marca-deco--propia img, .bh26-marca-deco--propia img:only-child { width: auto; height: auto; max-width: 100%; max-height: 210px; margin: 0; }
@media (max-width: 767px) {
  .bh26-marca.bh26-marca--propia { grid-template-columns: minmax(0, 1fr); }
  .bh26-marca--propia .bh26-marca-deco { justify-content: center; padding: 0 14px 14px; }
  .bh26-marca--propia .bh26-marca-deco img { max-height: 170px; }
}

/* ---------- 30. fila final ---------- */
.bh26-final { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.bh26-final--solo { grid-template-columns: minmax(0, 1fr); } /* tienda sin entradas de blog: las tarjetas de marcas ocupan todo el ancho */
.bh26-final--solo .bh26-topbrands-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* 4 marcas en UNA fila repartida (Celia, 20-oct) */
.bh26-useful { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 26px; border-radius: 16px; background: #f5f2ea; }
.bh26-useful .bh26-eyebrow { color: #4f5a49; letter-spacing: .12em; }
#index .bh26-useful h2 { margin: 6px 0 10px; padding: 0; background: none; border: 0; color: var(--bh-text); font-family: inherit; font-size: 26px; font-weight: 500; line-height: 1.25; text-align: left; text-transform: none; letter-spacing: 0; }
.bh26-useful-p { margin: 0 0 10px; color: #4a4a4a; font-size: 14.5px; line-height: 1.45; }
.bh26-useful-list { margin: 0 0 12px; padding: 0; list-style: none; }
.bh26-useful-list li { margin: 0; padding: 5px 0; list-style: none; border-top: 1px solid rgba(0, 0, 0, .08); }
.bh26-useful-list a { display: block; color: var(--bh-g-d); font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.bh26-useful-list a:hover { color: var(--bh-g-ink); text-decoration: underline; }
.bh26-useful-more { margin-top: auto; }
.bh26-topbrands { min-width: 0; }
.bh26-topbrands-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bh26-topbrands-list li { margin: 0; padding: 0; list-style: none; }
.bh26-topbrands-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 150px; padding: 14px; box-sizing: border-box; border: 1px solid var(--bh-line); border-radius: 12px; background: linear-gradient(160deg, #fff 55%, #f1f7ec 100%); color: var(--bh-text); text-decoration: none; }
.bh26-topbrands-list a:hover, .bh26-topbrands-list a:focus-visible { border-color: var(--bh-g); box-shadow: 0 6px 16px rgba(31, 90, 46, .14); }
.bh26-tb-logo { display: block; width: 100%; max-width: 130px; height: 40px; object-fit: contain; object-position: left center; }
.bh26-tb-txt { color: #5a5a5a; font-size: 13px; line-height: 1.35; }
.bh26-tb-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--bh-g-d); font-size: 13.5px; font-weight: 700; }
.bh26-tb-go .bh26-ico { fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- 50-60. bloques de siempre que se conservan al final ---------- */
.bh26-leftover { min-width: 0; }
.bh26-leftover > * { max-width: 100%; }

/* ==========================================================================
   TABLET Y ESCRITORIO PEQUEÑO
   ========================================================================== */
@media (max-width: 1199px) {
  #index .bh26-rail ul.product_base_list > li.base_product { flex-basis: calc((100% - 42px) / 4); }
  .bh26-marca-body { padding-left: 18px; }
}
@media (max-width: 991px) {
  #index .bh26-rail ul.product_base_list > li.base_product { flex-basis: calc((100% - 28px) / 3); }
  /* iconos de categoría: carrusel horizontal también en tablet */
  .bh26-cats-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
  .bh26-cats-list li { flex: 0 0 132px; scroll-snap-align: start; }
  #index .bh26-flow h2.bh26-cats-title { position: static; width: auto; height: auto; margin: 0 0 10px; overflow: visible; clip: auto; white-space: normal; }
  .bh26-hero { grid-template-columns: minmax(0, 1fr); }
  .bh26-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh26-marcas { grid-template-columns: 1fr; }
  .bh26-final { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MÓVIL (<768): como ux-bio-home-movil.jpg
   ========================================================================== */
@media (max-width: 767px) {
  #index #columns > .container { padding-left: 12px; padding-right: 12px; }
  .bh26-flow { gap: 22px; padding-top: 12px; }
  .bh26-titlebox { padding: 10px 14px 12px; border-radius: 12px; }
  #index .bh26-titlebox h1 { font-size: 11px; }
  #index .bh26-titlebox h2 { font-size: 18px; }
  #index .bh26-flow h2.bh26-sec-title { font-size: 21px; }
  .bh26-sec-more { min-height: 44px; }

  .bh26-hero { gap: 12px; }
  .bh26-hero-main { border-radius: 12px; }
  .bh26-hero-side { gap: 10px; }
  .bh26-box { padding: 8px 10px 10px; }
  .bh26-box-head { gap: 6px; }
  #index .bh26-box-head h2 { font-size: 17px; }
  .bh26-box-head .bh26-sec-more { font-size: 13px; gap: 3px; }
  .bh26-dots { display: none; }
  .bh26-box-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
  .bh26-box-img { flex: 0 0 auto; width: 72px; max-width: none; align-self: center; }
  .bh26-box-info { width: 100%; }
  .bh26-box-price { font-size: 17px; }
  #index a.bh26-box-btn { width: 100%; min-height: 44px; padding: 6px 8px; font-size: 14px; }

  .bh26-cats-list li { flex-basis: 112px; }
  .bh26-cats-list a { padding: 12px 6px 10px; font-size: 14px; }
  .bh26-cat-ico, .bh26-cat-ico img { width: 64px; height: 64px; }
  .bh26-rail-prev { left: -6px; } .bh26-rail-next { right: -6px; }
  .bh26-cats .bh26-rail-btn { top: calc(50% + 14px); }

  /* carruseles de producto: tarjeta en FILA (imagen izquierda), una y un trozo de la siguiente */
  #index .bh26-rail ul.product_base_list { gap: 10px; }
  #index .bh26-rail ul.product_base_list > li.base_product { flex-basis: 84%; }
  #index .bh26-rail .bh26-card { flex-direction: row; align-items: stretch; }
  #index .bh26-rail .bh26-card .left-block { flex: 0 0 38%; max-width: 38%; }
  #index .bh26-rail .bh26-card .product-image-container { padding: 10px 6px 10px 10px; }
  #index .bh26-rail .bh26-card .right-block { flex: 1 1 0; padding: 10px 10px 10px 4px; }
  #index .bh26-rail .bh26-card .bh26-brand { display: none; }
  #index .bh26-rail .bh26-card h3.bh26-name { height: auto; max-height: 3.9em; font-size: 14px; }
  #index .bh26-rail .bh26-card .bh26-badge { top: 6px; left: 6px; font-size: 12px; padding: 3px 9px; }

  .bh26-marca, .bh26-marca--big { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); min-height: 150px; }
  .bh26-marca-body { grid-template-columns: minmax(84px, 40%) minmax(0, 1fr); gap: 4px 12px; padding: 14px 4px 14px 14px; }
  .bh26-marca-logo img, .bh26-marca--big .bh26-marca-logo img { height: 52px; }
  #index .bh26-marca-txt h2, #index .bh26-marca--big .bh26-marca-txt h2 { font-size: 15px; }
  .bh26-marca-txt p { display: none; }
  .bh26-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .bh26-marca-deco img { max-height: 150px; }

  .bh26-final { gap: 18px; }
  .bh26-useful { padding: 18px; }
  #index .bh26-useful h2 { font-size: 20px; }
  .bh26-topbrands-list { gap: 8px; }
  .bh26-topbrands-list a { min-height: 128px; padding: 10px; }
  .bh26-tb-txt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bh26-rail .bh26-scroll, .bh26-box-track, .bh26-cats-list { scroll-behavior: auto; }
}

/* ==========================================================================
   RONDA 1b (15-oct-2026)
   ========================================================================== */
/* hueco vertical: el tema deja margin-bottom en .block / .zblocks; el ritmo lo da solo el gap del flujo (28 px; 22 en móvil) */
.bh26-flow .bh26-zb, .bh26-flow .zblocks, .bh26-flow .zblocks > .block, .bh26-flow .zhomepage, .bh26-flow .ztabs, .bh26-flow .zaccordions { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
#index .bh26-rail ul.product_base_list { padding-bottom: 2px; }
#index .bh26-rail ul.product_base_list > li.base_product { margin-bottom: 0; }

/* desborde horizontal de 3 px en móvil: el carrusel de marcas destacadas (zerofeaturedmanufacturers, slick con fila de margen negativo) */
.bh26-leftover { overflow: hidden; }
.bh26-leftover .row { margin-left: 0; margin-right: 0; }

/* logos de marca: más grandes, object-fit contain y sin el cuadrado blanco/gris (multiply: el blanco del jpg desaparece sobre el fondo de la franja) */
.bh26-marca-body { z-index: auto; }
.bh26-marca-deco { z-index: auto; }
.bh26-marca-body { grid-template-columns: minmax(150px, 36%) minmax(0, 1fr); }
.bh26-marca-logo img { width: 100%; max-width: 260px; min-width: 120px; height: 120px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.bh26-marca--big .bh26-marca-logo img { height: 140px; max-width: 300px; }
.bh26-tb-logo { width: 100%; max-width: 170px; min-width: 100px; height: 72px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.bh26-topbrands-list a { min-height: 170px; }
@media (max-width: 767px) {
  .bh26-flow { gap: 20px; }
  .bh26-marca-body { grid-template-columns: minmax(96px, 42%) minmax(0, 1fr); }
  .bh26-marca-logo img, .bh26-marca--big .bh26-marca-logo img { height: 80px; min-width: 90px; }
  .bh26-tb-logo { height: 56px; min-width: 70px; }
  .bh26-topbrands-list a { min-height: 128px; }
}
@media (max-width: 767px) {
  .bh26-marca, .bh26-marca--big { grid-template-columns: minmax(0, 1.55fr) minmax(0, .45fr); }
  .bh26-marca-deco img { max-width: 100%; }
  .bh26-marca-deco img + img { display: none; }
}

/* ==========================================================================
   RONDA 4 (15-oct-2026): la caja del banner = proporción exacta del banner (1920/700) y «Para ti»/«Novedades» se alinean con su altura
   ========================================================================== */
.bh26-hero-main { aspect-ratio: 1920 / 700; align-self: start; background: transparent; }
.bh26-hero-main .zero-slideshow, .bh26-hero-main #zeroslider { height: 100%; }
@media (min-width: 1200px) {
  /* la columna de cajas no aporta altura: mide lo que el banner (height:0 + min-height:100% = «rellena la fila») */
  .bh26-hero-side { align-self: stretch; height: 0; min-height: 100%; grid-auto-rows: minmax(0, 1fr); overflow: hidden; }
  .bh26-box { padding: 6px 12px 8px; }
  .bh26-box-head { margin-bottom: 4px; }
  #index .bh26-box-head h2 { font-size: 19px; }
  .bh26-box-item { padding: 4px 10px; gap: 12px; }
  .bh26-box-img { flex-basis: 64px; width: 64px; }
  #index .bh26-box-name { font-size: 13px; -webkit-line-clamp: 2; }
  .bh26-box-price { font-size: 17px; }
  #index a.bh26-box-btn { min-height: 34px; padding: 3px 14px; font-size: 14px; }
}
/* por debajo de 1200 px el banner ocupa todo el ancho y las dos cajas van debajo, lado a lado */
@media (max-width: 1199px) {
  .bh26-hero { grid-template-columns: minmax(0, 1fr); }
  .bh26-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   RONDA 16-OCT (Fernando y Celia) — portada
   ========================================================================== */

/* ---- 1. Caja de título: color o imagen de fondo (inline, desde bhportada) y texto claro/oscuro ---- */
.bh26-titlebox--img { padding: 30px 24px 32px; background-repeat: no-repeat; }
#index .bh26-titlebox--light h1, #index .bh26-titlebox--light h2 { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
#index .bh26-titlebox--dark h1, #index .bh26-titlebox--dark h2 { color: var(--bh-text); }

/* ---- 4. Hero más alto: ~420 px en escritorio. El banner rellena el hueco (object-fit: cover, centrado); medida nueva 1600x800 ---- */
.bh26-hero-main { aspect-ratio: 2 / 1; align-self: start; background: #efe9dc; }
.bh26-hero-main .zero-slideshow, .bh26-hero-main #zeroslider { height: 100%; }
#index #zeroslider img.nivo-first { height: 100%; object-fit: cover; object-position: center; }
.bh26-hero-main .nivoSlider .nivo-main-image { height: 100% !important; object-fit: cover; object-position: center; }
.bh26-hero-main .nivo-slice, .bh26-hero-main .nivo-box { background-size: cover !important; background-position: center !important; }
@media (min-width: 1200px) {
  .bh26-hero { height: 420px; }
  .bh26-hero-main { aspect-ratio: auto; height: 100%; align-self: stretch; }
  .bh26-hero-side { height: 100%; min-height: 0; gap: 12px; overflow: hidden; grid-auto-rows: minmax(0, 1fr); }
  .bh26-box { padding: 8px 14px 10px; }
  .bh26-box-head { margin-bottom: 6px; }
  #index .bh26-box-head h2 { font-size: 21px; }
  .bh26-box-item { padding: 6px 12px; gap: 14px; }
  .bh26-box-img { flex-basis: 112px; width: 112px; }
  .bh26-box-img img { width: 112px; height: 112px; }
  #index .bh26-box-name { font-size: 14.5px; line-height: 1.3; -webkit-line-clamp: 2; }
  .bh26-box-price { font-size: 20px; }
  #index a.bh26-box-btn { min-height: 38px; padding: 4px 16px; font-size: 15px; }
}
@media (max-width: 1199px) {
  .bh26-hero-main { aspect-ratio: 2 / 1; height: auto; }
  .bh26-box-img { flex-basis: 96px; width: 96px; }
  .bh26-box-img img { width: 96px; height: 96px; }
  #index .bh26-box-name { font-size: 14.5px; }
}
@media (max-width: 767px) {
  .bh26-hero-main { aspect-ratio: 20 / 9; }
  .bh26-box-img { flex-basis: auto; width: 96px; }
  .bh26-box-img img { width: 96px; height: 96px; }
  #index .bh26-box-name { font-size: 14px; }
}

/* ---- 7. Fila final: 4 tarjetas de otras marcas (2 x 2) y botón del blog ---- */
.bh26-topbrands-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bh26-topbrands-list a { min-height: 120px; }
.bh26-tb-name { display: flex; align-items: center; min-height: 40px; color: var(--bh-g-d); font-size: 18px; font-weight: 700; line-height: 1.2; }
.bh26-marca-logo--txt { align-self: center; color: var(--bh-g-d); font-size: 24px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.bh26-useful .bh26-useful-list { margin-bottom: 16px; }
.bh26-btn--cta { margin-top: auto; gap: 8px; background: var(--bh-g-ink); border-color: var(--bh-g-ink); color: #fff; }
.bh26-btn--cta .bh26-ico { fill: none; stroke: currentColor; stroke-width: 2.4; }
.bh26-btn--cta:hover, .bh26-btn--cta:focus-visible { background: var(--bh-g-hov); border-color: var(--bh-g-hov); color: #fff; text-decoration: none; }
.bh26-btn--cta:focus-visible { outline: 2px solid var(--bh-g-ink); outline-offset: 2px; }
@media (max-width: 767px) {
  .bh26-topbrands-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh26-topbrands-list a { min-height: 112px; }
  .bh26-final--solo .bh26-topbrands-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* móvil: 2 x 2 */
  .bh26-tb-txt { display: block; font-size: 12.5px; }
  .bh26-tb-logo { height: 44px; min-width: 70px; }
  .bh26-btn--cta { width: 100%; justify-content: center; }
}

/* ---- 10. Texto SEO del final plegado con «Leer más» (todo el texto está en el HTML; sin JS: casilla CSS + :has()) ----
   El tema envuelve cada checkbox en div.checker (uniform.js, sin excepción posible salvo la clase del comparador) -> la casilla y su
   envoltorio se esconden y el estado se lee con :has(). Si el navegador no soporta :has(), el texto se muestra entero (@supports). */
.bh26-seo { position: relative; max-width: 100%; margin: 6px 0 8px; padding: 18px 22px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--bh-line); }
.bh26-seo .checker, .bh26-seo input.bh26-seo-chk { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.bh26-seo-body { position: relative; max-height: 8.6em; overflow: hidden; color: #4a4a4a; font-size: 14.5px; line-height: 1.55; }
.bh26-seo-body h2 { margin: 0 0 8px; padding: 0; color: var(--bh-text); font-size: 20px; font-weight: 600; line-height: 1.3; text-transform: none; }
.bh26-seo-body p { margin: 0 0 10px; }
.bh26-seo-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.2em; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
.bh26-seo:has(input.bh26-seo-chk:checked) .bh26-seo-body { max-height: none; }
.bh26-seo:has(input.bh26-seo-chk:checked) .bh26-seo-body::after { display: none; }
.bh26-seo-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 0 0; padding: 0 22px; border: 1.5px solid var(--bh-g); border-radius: 999px; background: #fff; color: var(--bh-g-d); font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; user-select: none; }
.bh26-seo-more:hover { border-color: var(--bh-g-ink); background: var(--bh-bg); }
.bh26-seo:has(input.bh26-seo-chk:focus-visible) .bh26-seo-more { outline: 2px solid var(--bh-g-ink); outline-offset: 2px; }
.bh26-seo-t2 { display: none; }
.bh26-seo:has(input.bh26-seo-chk:checked) .bh26-seo-t1 { display: none; }
.bh26-seo:has(input.bh26-seo-chk:checked) .bh26-seo-t2 { display: inline; }
@supports not selector(:has(*)) {
  .bh26-seo-body { max-height: none; }
  .bh26-seo-body::after, .bh26-seo-more { display: none; }
}
@media (max-width: 767px) {
  .bh26-seo { padding: 14px 14px 12px; }
  .bh26-seo-body { max-height: 9.5em; font-size: 14px; }
  .bh26-seo-more { width: 100%; }
}

/* ==========================================================================
   RONDA 16-OCT (4b): productos relacionados de cada slide SOBRE el banner (escritorio) o en tira bajo el banner (móvil/tablet)
   Zona reservada en el banner de 1600x800: derecha-abajo (ver ayuda del módulo bhportada y GUIA-CELIA-PORTADA.md)
   ========================================================================== */
.bh26-hero-left { position: relative; display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.bh26-hero-left > .bh26-hero-main { align-self: stretch; }
.bh26-slideprods:empty { display: none; }
.bh26-sp { display: none; margin: 0; padding: 0; list-style: none; }
.bh26-sp.is-on { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bh26-sp-card { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 8px 10px; box-sizing: border-box; list-style: none; border: 1px solid var(--bh-line); border-radius: 12px; background: #fff; }
.bh26-sp-img { flex: 0 0 64px; width: 64px; display: block; }
.bh26-sp-img img { display: block; width: 64px; height: 64px; object-fit: contain; }
.bh26-sp-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#index a.bh26-sp-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--bh-text); font-size: 13px; font-weight: 600; line-height: 1.3; text-decoration: none; }
#index a.bh26-sp-name:hover { color: var(--bh-g-ink); text-decoration: underline; }
.bh26-sp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bh26-sp-price { color: var(--bh-text); font-size: 16px; font-weight: 700; line-height: 1.2; }
#index a.bh26-sp-add { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 36px; margin: 0; padding: 0; border: 2px solid var(--bh-g-ink); border-radius: 8px; background: var(--bh-g-ink) !important; color: #fff !important; box-shadow: none; }
#index a.bh26-sp-add:hover, #index a.bh26-sp-add:focus-visible { background: var(--bh-g-hov) !important; border-color: var(--bh-g-hov); }
#index a.bh26-sp-add .bh26-ico { fill: none; stroke: currentColor; }
@media (min-width: 1200px) {
  /* zona fija: columna derecha (~29 % del ancho), abajo; 2 tarjetas apiladas con fondo blanco semitransparente */
  .bh26-slideprods { position: absolute; z-index: 20; right: 12px; bottom: 12px; width: 29%; min-width: 230px; pointer-events: none; }
  .bh26-sp.is-on { grid-template-columns: 1fr; gap: 8px; }
  .bh26-sp-card { pointer-events: auto; padding: 6px 10px; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
  .bh26-sp-img { flex-basis: 70px; width: 70px; }
  .bh26-sp-img img { width: 70px; height: 70px; }
}
@media (max-width: 1199px) {
  .bh26-slideprods { position: static; width: auto; }
}
@media (max-width: 767px) {
  .bh26-sp-card { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
  .bh26-sp-img { align-self: center; flex-basis: auto; }
  .bh26-sp-info { gap: 6px; flex: 1 1 auto; }
  .bh26-sp-row { margin-top: auto; }  /* precio+botón alineados abajo aunque el nombre ocupe 1 o 2 líneas (20-oct) */
  #index a.bh26-sp-add { height: 44px; }
}

/* ==========================================================================
   RETOQUES 16-OCT (b)
   ========================================================================== */
/* 1. Encuadre del banner: por defecto se conserva el lado IZQUIERDO (donde suele ir el texto); se elige en el BO (bhportada, panel 8) */
#index #zeroslider img.nivo-first, .bh26-hero-main .nivoSlider .nivo-main-image { object-position: var(--bh26-pos, left center); }
.bh26-hero-main .nivo-slice, .bh26-hero-main .nivo-box { background-position: var(--bh26-pos, left center) !important; }
@media (max-width: 767px) { .bh26-hero-main { aspect-ratio: 12 / 5; } }

/* 2. Franjas a medio ancho: logo ARRIBA y el texto usa todo el ancho; las dos miden lo mismo (misma fila de la rejilla) */
@media (min-width: 768px) {
  .bh26-marca--half { grid-template-columns: minmax(0, 1.7fr) minmax(0, .55fr); min-height: 250px; }
  .bh26-marca--half .bh26-marca-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eye" "logo" "txt"; justify-items: start; align-content: center; gap: 8px; padding: 20px 6px 20px 24px; }
  .bh26-marca--half .bh26-marca-logo img { height: 64px; min-width: 0; max-width: 200px; }
  .bh26-marca--half .bh26-marca-logo--txt { font-size: 22px; }
  .bh26-marca--half .bh26-marca-txt { max-width: 100%; }
  #index .bh26-marca--half .bh26-marca-txt h2 { font-size: 22px; }
  .bh26-marca--half .bh26-marca-deco img { max-width: 100%; max-height: 200px; }
}

/* 3. Tarjetas de marca: logo >= 56 px en caja uniforme (contain) y dato real «N productos · categoría» */
.bh26-tb-logo { display: block; width: 100%; max-width: 150px; min-width: 0; height: 64px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.bh26-tb-name { height: 64px; max-width: none; }
.bh26-tb-txt { color: #4a4a4a; font-size: 13.5px; font-weight: 500; }
@media (max-width: 767px) { .bh26-tb-logo { height: 56px; min-width: 0; max-width: 130px; } .bh26-tb-name { height: 56px; } }

/* 4. Novedades del blog: 3 entradas con miniatura, fecha y extracto; el botón va justo debajo, sin huecos */
.bh26-useful .bh26-useful-list { width: 100%; margin: 4px 0 16px; }
.bh26-useful-list li.bh26-post { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.bh26-post-img { flex: 0 0 84px; width: 84px; height: 64px; display: block; overflow: hidden; border-radius: 8px; background: #e9e4d6; }
.bh26-post-img img { display: block; width: 84px; height: 64px; object-fit: cover; }
.bh26-post-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bh26-useful-list a.bh26-post-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bh26-post-date { color: #5a5a5a; font-size: 12.5px; line-height: 1.3; }
.bh26-post-ex { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; color: #4a4a4a; font-size: 13px; line-height: 1.4; }
.bh26-btn--cta { margin-top: 0; }
@media (max-width: 767px) { .bh26-post-img, .bh26-post-img img { width: 72px; height: 56px; flex-basis: 72px; } }
/* logos: los jpg de marca son cuadrados con mucho margen blanco; cajas algo mayores para que se lean */
.bh26-tb-logo { height: 84px; max-width: 170px; }
.bh26-tb-name { height: 84px; }
@media (min-width: 768px) { .bh26-marca--half .bh26-marca-logo img { height: 84px; max-width: 220px; } }
@media (max-width: 767px) { .bh26-tb-logo { height: 64px; max-width: 140px; } .bh26-tb-name { height: 64px; } }
