/* ==========================================================================
   BanPre — Ficha de producto (flat). Scope: .single-product
   Mockup de referencia: dorado #B8860B · negro #1a1a1a · galería #f5f3ef.
   Bordes 0.5px, radius 8/12, flat (sin gradientes ni sombras).
   ========================================================================== */

:root {
    --bp-gold: #B8860B;
    --bp-black: #1a1a1a;
    --bp-gal: #f5f3ef;
    --bp-soft: #f5f3ef;
    --bp-ink: #1a1a1a;
    --bp-muted: #8a857d;
    --bp-line: rgba(0, 0, 0, 0.10);
    --bp-line-soft: rgba(0, 0, 0, 0.07);
    --bp-wa: #25D366;
    --bp-wa-dark: #128C7E;
}

.single-product { overflow-x: hidden; }
.single-product #content > .ast-container,
.single-product .ast-container { max-width: 1200px; }

/* Pegar el banner del hero al header: Astra agrega padding/margen superior al
   contenedor de contenido y dejaba demasiado blanco entre la topbar y el hero. */
.single-product #content,
.single-product #primary,
.single-product .ast-woocommerce-container,
.single-product #content > .ast-container { padding-top: 0 !important; margin-top: 0 !important; }
.single-product .banpre-prod-banner-hero { margin-top: 0; }

/* Ocultar el título por defecto de Astra (usamos el propio) */
.single-product .entry-header.ast-woo-single-product-header,
.single-product .ast-single-related-posts-title { display: none; }

.banpre-product .banpre-ico { width: 100%; height: 100%; display: block; }

/* --------------------------------------------------------------------------
   2. BANNER / PORTADA — banda con imagen destacada + título blanco (estilo Index)
-------------------------------------------------------------------------- */
.banpre-prod-banner-hero {
    position: relative;
    margin-left: calc(50% - 50vw);   /* full-bleed: ancho total, como Index */
    margin-right: calc(50% - 50vw);
    width: 100vw;
    margin-top: 0;
    margin-bottom: 2.5rem;
    min-height: 320px;                /* ~30% más bajo */
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--bp-black);
}
@media (max-width: 1024px) {
    .banpre-prod-banner-hero { min-height: 260px; }
}
@media (max-width: 768px) {
    .banpre-prod-banner-hero { min-height: 240px; }
}
.banpre-prod-banner-hero--nofoto {
    background: linear-gradient(135deg, #2a2622, #14110d);
}
.banpre-prod-banner-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.25) 55%, rgba(17,17,17,0.05) 100%);
}
.banpre-prod-banner-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.25rem, 5vw, 60px);
    box-sizing: border-box;
}
.banpre-prod-banner-hero__inner > * { max-width: 640px; }
.banpre-prod-banner-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-gold);
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.banpre-prod-banner-hero__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3.4vw, 40px);
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.banpre-prod-banner-hero__sub {
    margin: 0.9rem 0 0;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
/* En móvil el título no debe "invadir" el banner: más chico y prolijo. */
@media (max-width: 768px) {
    .banpre-prod-banner-hero__title { font-size: clamp(21px, 6vw, 28px); }
    .banpre-prod-banner-hero__sub { font-size: 0.95rem; margin-top: 0.6rem; }
}

/* --------------------------------------------------------------------------
   3. HERO — grid 2 columnas 50/50
-------------------------------------------------------------------------- */
.banpre-prod-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3.5rem;
}
@media (min-width: 992px) {
    /* Galería ancha (imagen apaisada) + info amplia para 2 sub-columnas. */
    .banpre-prod-hero { grid-template-columns: 1fr 1.3fr; gap: 2.5rem; }
}

/* ---- Galería ---- */
.banpre-prod-gallery { position: relative; min-width: 0; }
.banpre-prod-gallery .woocommerce-product-gallery {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
}
.banpre-prod-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.banpre-prod-gallery .woocommerce-product-gallery__image,
.banpre-prod-gallery .woocommerce-product-gallery__image img {
    border-radius: 12px;
    overflow: hidden;
}
.banpre-prod-gallery .woocommerce-product-gallery__image {
    background: var(--bp-gal);
    border-radius: 12px;
}
/* La VENTANA del slider no debe superar el ancho de la columna. overflow:hidden
   recorta el riel de slides (que sí es ancho) sin romper el deslizado ni comer
   márgenes. Ojo: el límite va acá, NO en __wrapper (eso rompía el clic → blanco). */
.banpre-prod-gallery .woocommerce-product-gallery,
.banpre-prod-gallery .woocommerce-product-gallery .flex-viewport {
    max-width: 100%;
    overflow: hidden;
}
/* Imagen principal CUADRADA (1:1): las fotos de producto son 1×1, así entran
   completas y uniformes, sin la franja apaisada que las recortaba arriba y abajo. */
.banpre-prod-gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--bp-gal);
}
@media (min-width: 992px) {
    .banpre-prod-summary { align-self: stretch; }
}
/* Reset del float/ancho 48% que WooCommerce aplica a .summary.entry-summary.
   Sin esto la info ocupa solo ~48% de su celda del grid y deja un hueco
   blanco a la derecha (parece una 3ª columna vacía). */
.banpre-prod-summary.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}
/* Badges sobre la imagen (top-left) */
.banpre-gallery-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 60px);
}
.banpre-gallery-badge {
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(26, 26, 26, 0.72);
    color: #fff;
    letter-spacing: 0.2px;
}
.banpre-gallery-badge.is-gold { background: var(--bp-gold); color: #fff; }
/* Thumbnails horizontales scrolleables */
.banpre-prod-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 8px;
    margin: 10px 0 0;
    padding: 2px 0 6px;
    list-style: none;
    scrollbar-width: thin;
}
.banpre-prod-gallery .flex-control-thumbs li {
    width: 72px !important;
    height: 72px;
    margin: 0 !important;
    padding: 0;
    flex: 0 0 72px !important;
    float: none !important;
    list-style: none;
}
.banpre-prod-gallery .flex-control-thumbs img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--bp-line);
    opacity: 0.7;
    cursor: pointer;
    background: var(--bp-gal);
    transition: opacity 0.15s ease, border-color 0.15s ease;
}
.banpre-prod-gallery .flex-control-thumbs img:hover,
.banpre-prod-gallery .flex-control-thumbs img.flex-active {
    opacity: 1;
    border-color: var(--bp-gold);
}
/* Navegación de la tira de miniaturas (flechas ‹ ›, las agrega product.js) */
.banpre-thumbs-wrap { position: relative; }
.banpre-thumbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--bp-line);
    border-radius: 50%;
    background: #fff;
    color: var(--bp-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.banpre-thumbs-arrow--prev { left: 2px; }
.banpre-thumbs-arrow--next { right: 2px; }
.banpre-thumbs-arrow:hover { color: var(--bp-gold); border-color: var(--bp-gold); }
.banpre-thumbs-arrow.is-hidden { display: none; }
/* Sin overflow (pocas fotos): no mostramos flechas */
.banpre-thumbs-wrap:not(.has-overflow) .banpre-thumbs-arrow { display: none; }
.banpre-prod-gallery .woocommerce-product-gallery__trigger {
    top: 14px; right: 14px; z-index: 6;
    background: #fff;
    border-radius: 50%;
    width: 38px; height: 38px; line-height: 38px; text-align: center;
    border: 1px solid var(--bp-line);
}
.banpre-prod-gallery .onsale {
    position: absolute; top: 14px; right: 60px; z-index: 6;
    background: var(--bp-gold); color: #fff;
    border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 700;
    min-height: 0; min-width: 0; margin: 0;
}

/* ---- Info (columna derecha) ---- */
.banpre-prod-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bp-gold);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.banpre-prod-title.product_title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--bp-ink);
    margin: 0 0 0.4rem;
}
.banpre-prod-subtitle {
    font-size: 13px;
    color: var(--bp-muted);
    line-height: 1.5;
    margin: 0 0 1.1rem;
}

/* Bloque "Qué incluye" en la columna de resumen (acordeón simple, sin caja) */
.banpre-summary-includes { margin: 0 0 2rem; }
.banpre-prod-summary .banpre-summary-includes__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--bp-ink, #1a1a1a);
    line-height: 1.3;
    margin: 0 0 .5rem;
}
.banpre-summary-includes .banpre-prod-desc-list { gap: 0; }
.banpre-summary-includes .banpre-desc-item {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--bp-line-soft, #e7e2d8);
    border-radius: 0;
    overflow: visible;
}
.banpre-summary-includes .banpre-desc-item:first-child {
    border-top: 1px solid var(--bp-line-soft, #e7e2d8);
}
.banpre-summary-includes .banpre-desc-item__name {
    padding: .7rem 0;
    font-weight: 600;
    font-size: 13.5px;
}
.banpre-summary-includes .banpre-desc-item__name::after {
    content: "+";
    color: var(--bp-muted, #8a8577);
    font-size: 18px;
    width: auto; height: auto; line-height: 1;
}
.banpre-summary-includes .banpre-desc-item[open] > .banpre-desc-item__name::after { content: "–"; }
.banpre-summary-includes .banpre-desc-item__detail {
    padding: 0 0 .85rem;
}
/* Filas simples sin detalle (features sueltas, colores): mismo look simple,
   sin la caja crema, para que no desentonen con el resto. */
.banpre-summary-includes .banpre-desc-row {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--bp-line-soft, #e7e2d8);
    border-radius: 0;
    padding: .7rem 0;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--bp-ink, #1a1a1a);
}

/* Bloque de atributos en 2 columnas: pills (izq) + mini-specs (der) */
.banpre-summary-attrs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0 0 1.3rem;
}
@media (min-width: 600px) {
    .banpre-summary-attrs { grid-template-columns: 1fr 1fr; }
}

/* Pills (en columna, una por fila, para alinear con las mini-specs) */
.banpre-prod-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.banpre-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--bp-ink);
    padding: 9px 12px;
    border: 1px solid var(--bp-line);
    border-radius: 8px;
    background: #fff;
}
.banpre-pill__ico { width: 15px; height: 15px; color: var(--bp-gold); flex: 0 0 15px; }

/* Precio (caja gris) */
.banpre-prod-price {
    background: var(--bp-soft);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.3rem;
}
.banpre-prod-price .price,
.banpre-prod-price .woocommerce-Price-amount {
    font-size: 26px !important;
    font-weight: 700;
    color: var(--bp-ink);
    line-height: 1.1;
}
.banpre-prod-price del { color: var(--bp-muted); font-weight: 400; opacity: 0.7; font-size: 18px; }
.banpre-prod-price ins { text-decoration: none; }
.banpre-prod-price-note {
    display: block;
    margin-top: 0.3rem;
    font-size: 11px;
    color: var(--bp-muted);
}

/* Swatches de color */
.banpre-prod-swatches { margin: 0 0 1.3rem; }
.banpre-swatches__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-muted);
    margin-bottom: 0.45rem;
}
.banpre-swatches__row { display: flex; gap: 8px; flex-wrap: wrap; }
.banpre-swatch {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--sw, #ccc);
    border: 1px solid var(--bp-line);
    box-shadow: inset 0 0 0 2px #fff;
    cursor: pointer;
    padding: 0;
    outline-offset: 2px;
}
.banpre-swatch.is-active { border: 2px solid var(--bp-gold); box-shadow: inset 0 0 0 2px #fff; }

/* Mini specs (columna vertical, alineada con los pills) */
.banpre-mini-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.banpre-mini-spec {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--bp-line);
    border-radius: 8px;
    margin: 0;
}
.banpre-mini-spec__ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--bp-gold); }
.banpre-mini-spec__body { display: flex; flex-direction: column; min-width: 0; }
.banpre-mini-spec__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bp-muted); }
.banpre-mini-spec__value { font-size: 13px; font-weight: 600; color: var(--bp-ink); line-height: 1.2; }

/* ============ Fila de atributos full-width (pills + mini-specs) ============
   Móvil/tablet: se mantiene el look actual (apilado / 2 columnas).
   Desktop (≥992px): una fila de cuadrados a lo ancho. */
.banpre-prod-attrs-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0 0 2.75rem;
}
@media (min-width: 600px) {
    .banpre-prod-attrs-strip { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    /* Una sola fila: todos los atributos se reparten el ancho por igual,
       sean 8 o más (sin wrap). */
    .banpre-prod-attrs-strip {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }
    /* Los <ul> desaparecen como caja: sus <li> pasan a ser ítems flex. */
    .banpre-prod-attrs-strip .banpre-prod-pills,
    .banpre-prod-attrs-strip .banpre-mini-specs { display: contents; }

    /* Cada atributo = cuadrado con ícono arriba y texto centrado. */
    .banpre-prod-attrs-strip .banpre-pill,
    .banpre-prod-attrs-strip .banpre-mini-spec {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        aspect-ratio: 1 / 1;
        gap: 9px;
        padding: 10px;
        background: var(--bp-soft, #f6f1e7);
        border: 1px solid var(--bp-line-soft, #e7e2d8);
        border-radius: 12px;
    }
    .banpre-prod-attrs-strip .banpre-pill__ico,
    .banpre-prod-attrs-strip .banpre-mini-spec__ico {
        width: 25px; height: 25px; flex: 0 0 25px;
    }
    .banpre-prod-attrs-strip .banpre-pill__txt {
        font-size: 11.5px; font-weight: 600; line-height: 1.25;
    }
    .banpre-prod-attrs-strip .banpre-mini-spec__body {
        align-items: center; text-align: center; min-width: 0;
    }
    .banpre-prod-attrs-strip .banpre-mini-spec__label { font-size: 9.5px; }
    .banpre-prod-attrs-strip .banpre-mini-spec__value { font-size: 12px; }
}

/* CTAs */
.banpre-prod-ctas { display: flex; flex-direction: column; gap: 10px; margin: 0 0 1.3rem; }
.banpre-cta-wa,
.banpre-cta-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-sizing: border-box;
}
.banpre-cta-wa { background: var(--bp-wa); color: #fff; }
.banpre-cta-wa:hover { background: var(--bp-wa-dark); color: #fff; }
.banpre-cta-wa__ico {
    width: 20px; height: 20px; flex: 0 0 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.banpre-cta-visit {
    background: #fff;
    color: var(--bp-ink);
    border: 1px solid var(--bp-line);
}
.banpre-cta-visit:hover { border-color: var(--bp-gold); color: var(--bp-gold); }

/* Carrito (botón negro + qty) */
.banpre-prod-cart form.cart {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0;
}
.banpre-prod-cart .quantity { margin: 0; }
.banpre-prod-cart .quantity input.qty {
    width: 64px; height: 50px;
    border: 1px solid var(--bp-line);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    background: #fff;
}
.banpre-prod-cart button.single_add_to_cart_button {
    flex: 1 1 auto;
    min-height: 50px;
    background: var(--bp-black) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}
.banpre-prod-cart button.single_add_to_cart_button:hover { background: #000 !important; }

/* Trust indicators */
.banpre-prod-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--bp-line-soft);
}
.banpre-prod-trust li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin: 0;
}
.banpre-trust__ico { width: 16px; height: 16px; flex: 0 0 16px; color: var(--bp-gold); }

/* --------------------------------------------------------------------------
   TÍTULOS DE SECCIÓN (borde izquierdo dorado 2px)
-------------------------------------------------------------------------- */
.banpre-prod-h2,
.banpre-prod-related .related > h2,
.banpre-prod-related .up-sells > h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--bp-ink);
    margin: 0 0 1.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--bp-gold);
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   4. POR QUÉ ELEGIRLO — 4 columnas con separadores
-------------------------------------------------------------------------- */
/* Mismas tarjetas que "Ficha técnica": crema, separadas, sin caja con bordes. */
.banpre-prod-diffs { margin: 0 0 1.75rem; }
.banpre-diffs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (min-width: 768px) { .banpre-diffs-grid { grid-template-columns: repeat(4, 1fr); } }
.banpre-diff {
    padding: 1.15rem;
    background: var(--bp-soft);
    border-radius: 8px;
}
.banpre-diff__ico {
    display: block;
    box-sizing: border-box;
    width: 40px; height: 40px;
    padding: 9px;
    border-radius: 50%;
    background: #fff;
    color: var(--bp-gold);
    margin-bottom: 0.75rem;
}
.banpre-diff__title { font-size: 14px; font-weight: 700; color: var(--bp-ink); margin: 0 0 0.3rem; }
.banpre-diff__txt { font-size: 12px; color: var(--bp-muted); margin: 0; line-height: 1.55; }

/* --------------------------------------------------------------------------
   5. FICHA TÉCNICA — 4 tarjetas gris claro
-------------------------------------------------------------------------- */
.banpre-prod-specs { margin: 0 0 3.5rem; }
.banpre-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (min-width: 768px) { .banpre-spec-grid { grid-template-columns: repeat(4, 1fr); } }
.banpre-spec {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem;
    background: var(--bp-soft);
    border-radius: 8px;
}
.banpre-spec__top { display: flex; align-items: center; justify-content: space-between; }
.banpre-spec__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--bp-muted); font-weight: 600; }
.banpre-spec__ico { width: 18px; height: 18px; color: var(--bp-gold); }
.banpre-spec__value { font-size: 17px; font-weight: 700; color: var(--bp-ink); line-height: 1.2; }
.banpre-spec__sub { font-size: 11px; color: var(--bp-muted); }

/* --------------------------------------------------------------------------
   6. TEXTO SEO
-------------------------------------------------------------------------- */
.banpre-prod-seo-wrap { margin: 0 0 3.5rem; }
.banpre-prod-seo {
    font-size: 13px;
    line-height: 1.7;
    color: #4a463f;
}
.banpre-prod-seo p { margin: 0 0 1rem; }
.banpre-prod-seo p:last-child { margin-bottom: 0; }
.banpre-prod-seo strong { color: var(--bp-ink); font-weight: 700; }
/* En desktop, 2 columnas de texto para llenar el ancho y reducir el blanco */
@media (min-width: 768px) {
    .banpre-prod-seo { column-count: 2; column-gap: 3rem; }
    .banpre-prod-seo p { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   PESTAÑAS WooCommerce (flat)
-------------------------------------------------------------------------- */
.banpre-prod-tabs-wrap { margin: 0 0 3.5rem; }
.woocommerce-tabs ul.tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    list-style: none; margin: 0 0 1.25rem; padding: 0 0 0.5rem;
    border-bottom: 1px solid var(--bp-line);
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: none; border-radius: 0; }
.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    color: var(--bp-muted) !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active a { background: var(--bp-black); color: #fff !important; }
.woocommerce-Tabs-panel { font-size: 13px; line-height: 1.7; color: #4a463f; }
.woocommerce-Tabs-panel h2 { display: none; }
.woocommerce-Tabs-panel table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel table.shop_attributes th,
.woocommerce-Tabs-panel table.shop_attributes td {
    padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--bp-line); text-align: left;
}

/* MÓVIL: los tabs de WooCommerce dependen de su JS para mostrar el panel
   activo; en touch eso a veces no abre la descripción. Acá ocultamos la
   navegación por pestañas y mostramos los paneles apilados y SIEMPRE visibles
   (con su título), de modo que la descripción se ve sin depender del JS. */
@media (max-width: 768px) {
    .woocommerce-tabs ul.tabs { display: none; }
    .woocommerce-tabs .woocommerce-Tabs-panel {
        display: block !important;
        margin: 0 0 1.75rem;
    }
    .woocommerce-tabs .woocommerce-Tabs-panel h2 {
        display: block;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--bp-ink);
        margin: 0 0 0.85rem;
        padding-bottom: 0.4rem;
        border-bottom: 2px solid var(--bp-black);
    }
}

/* Lista de componentes (descripción) — acordeón desplegable, ancho completo */
.banpre-prod-desc-list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.banpre-desc-item {
    background: var(--bp-soft);
    border: 1px solid var(--bp-line-soft);
    border-left: 2px solid var(--bp-gold);
    border-radius: 8px;
    overflow: hidden;
}
.banpre-desc-item__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--bp-ink);
    font-size: 13px;
    user-select: none;
}
.banpre-desc-item__name::-webkit-details-marker { display: none; }
.banpre-desc-item__name::after {
    content: "+";
    flex: 0 0 auto;
    width: 18px; height: 18px;
    line-height: 17px; text-align: center;
    font-size: 16px; font-weight: 400;
    color: var(--bp-gold);
    transition: transform 0.2s ease;
}
.banpre-desc-item[open] > .banpre-desc-item__name::after { content: "–"; }
.banpre-desc-item__name:hover { color: var(--bp-gold); }
.banpre-desc-item__detail {
    color: #4a463f;
    font-size: 12.5px;
    line-height: 1.6;
    padding: 0 1rem 0.95rem;
}
.banpre-desc-item__detail strong { color: var(--bp-gold); }
/* Fila simple (sin detalle, p.ej. un color) */
.banpre-desc-row {
    background: var(--bp-soft);
    border: 1px solid var(--bp-line-soft);
    border-left: 2px solid var(--bp-gold);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 13px;
    color: var(--bp-ink);
}

/* --------------------------------------------------------------------------
   7. BANNER LIFESTYLE (negro flat)
-------------------------------------------------------------------------- */
.banpre-prod-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 24px 3.5rem;
    padding: 2rem;
    background: var(--bp-black);
    border-radius: 12px;
}
.banpre-prod-banner__text { min-width: 0; }
.banpre-prod-banner__title { font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 0.35rem; line-height: 1.25; }
.banpre-prod-banner__sub { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 0; line-height: 1.5; }
.banpre-prod-banner__btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--bp-gold);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.banpre-prod-banner__btn:hover { background: #a07908; color: #fff; }

/* --------------------------------------------------------------------------
   NOTAS DEL BLOG RELACIONADAS (pestaña) — tarjetas con miniatura + título
-------------------------------------------------------------------------- */
.banpre-blogtab {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 560px) { .banpre-blogtab { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .banpre-blogtab { grid-template-columns: 1fr 1fr 1fr; } }
.banpre-blogtab__item {
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bp-line-soft);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.banpre-blogtab__item:hover {
    border-color: var(--bp-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.banpre-blogtab__media { display: block; line-height: 0; background: var(--bp-gal); }
.banpre-blogtab__media img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: none;
}
.banpre-blogtab__media--empty {
    height: 160px;
    background: linear-gradient(135deg, #efe9df, #e3dccf);
}
.banpre-blogtab__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.85rem 0.95rem 1rem;
}
.banpre-blogtab__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: var(--bp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.banpre-blogtab__date { font-size: 12px; color: var(--bp-muted); }

/* --------------------------------------------------------------------------
   8. PRODUCTOS RELACIONADOS — 3 columnas flat
-------------------------------------------------------------------------- */
.banpre-prod-related ul.products {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 0; padding: 0; list-style: none;
    float: none; width: 100%;
}
@media (min-width: 768px) { .banpre-prod-related ul.products { grid-template-columns: repeat(3, 1fr); } }
.banpre-prod-related .ast-woo-product-category { display: none; }
.banpre-prod-related ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border: 1px solid var(--bp-line-soft);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.banpre-prod-related li.product a img {
    margin: 0 !important;
    border-radius: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--bp-gal);
}
.banpre-prod-related li.product .banpre-rel-cat {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    background: var(--bp-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 8px;
    margin: 0;
}
.banpre-prod-related li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.35;
    color: var(--bp-ink);
    padding: 0.85rem 0.9rem 0 !important;
    font-weight: 600;
}
.banpre-prod-related li.product .price {
    display: block;
    padding: 0.35rem 0.9rem 0;
    color: var(--bp-gold) !important;
    font-weight: 700;
    font-size: 15px;
}
.banpre-prod-related li.product .price .woocommerce-Price-amount { color: var(--bp-gold); }
.banpre-prod-related li.product .banpre-ver-producto {
    display: block;
    margin: 0.85rem 0.9rem 1rem;
    padding: 0.55rem 0.9rem;
    text-align: center;
    border: 1px solid var(--bp-line);
    border-radius: 8px;
    color: var(--bp-ink);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.banpre-prod-related li.product .banpre-ver-producto:hover { border-color: var(--bp-gold); color: var(--bp-gold); }
/* Botón "Añadir al carrito" de relacionados: marrón dorado con letra blanca
   (antes salía azul, el estilo por defecto de WooCommerce). */
.banpre-prod-related li.product a.button,
.banpre-prod-related li.product a.add_to_cart_button,
.banpre-prod-related li.product .added_to_cart {
    display: block;
    margin: 0.85rem 0.9rem 0 !important;
    padding: 0.55rem 0.9rem !important;
    background: var(--bp-gold) !important;
    color: #fff !important;
    border: 1px solid var(--bp-gold) !important;
    border-radius: 8px !important;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.banpre-prod-related li.product a.button:hover,
.banpre-prod-related li.product a.add_to_cart_button:hover,
.banpre-prod-related li.product .added_to_cart:hover {
    background: #a07908 !important;
    border-color: #a07908 !important;
    color: #fff !important;
}
/* Empujar el botón al fondo para alinear tarjetas de distinto alto */
.banpre-prod-related li.product .price { margin-top: auto; }

/* --------------------------------------------------------------------------
   9. CTA STICKY (barra inferior)
-------------------------------------------------------------------------- */
.banpre-sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem clamp(0.9rem, 4vw, 2rem);
    background: #fff;
    border-top: 1px solid var(--bp-line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    transition: transform .3s ease;
    will-change: transform;
}
.banpre-sticky-cta.is-visible { transform: none; }
/* El JS (banpre-anim.js) la esconde mientras se hace scroll y la muestra al
   detenerse. Se define después de .is-visible para ganarle en especificidad. */
.banpre-sticky-cta.bp-bar--hidden { transform: translateY(120%); }
@media (prefers-reduced-motion: reduce) {
    .banpre-sticky-cta { transition: none; }
}
/* Reservar espacio para que la barra no tape el footer. */
body.single-product { padding-bottom: 76px; }
/* El botón flotante de WhatsApp (Join.chat) es redundante en la ficha: la barra
   ya tiene "Consultar por WhatsApp". Lo ocultamos solo en páginas de producto. */
.single-product .joinchat { display: none !important; }

/* Info: miniatura del producto + nombre completo + precio. */
.banpre-sticky-cta__info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.banpre-sticky-cta__thumb { flex: 0 0 auto; line-height: 0; }
.banpre-sticky-cta__thumb img {
    width: 52px; height: 52px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--bp-line); display: block;
}
.banpre-sticky-cta__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banpre-sticky-cta__name {
    font-weight: 600; color: var(--bp-ink); font-size: 14px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.banpre-sticky-cta__price { font-size: 16px; line-height: 1.1; }
.banpre-sticky-cta__price .woocommerce-Price-amount { color: var(--bp-gold); font-weight: 700; }
.banpre-sticky-cta__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.banpre-sticky-cta__wa {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 1.1rem; height: 42px;
    border-radius: 8px;
    font-weight: 600; font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    background: var(--bp-wa); color: #fff;
}
.banpre-sticky-cta__wa:hover { background: var(--bp-wa-dark); color: #fff; }
/* Texto del WhatsApp: completo en desktop, corto en móvil. */
.banpre-sticky-cta__wa-short { display: none; }

/* Form nativo de WooCommerce (cantidad + Añadir al carrito) dentro de la barra. */
.banpre-sticky-cta__cartform form.cart {
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.banpre-sticky-cta__cartform .quantity { margin: 0; }
.banpre-sticky-cta__cartform .quantity .qty {
    width: 60px; height: 42px; text-align: center;
    border: 1px solid var(--bp-line); border-radius: 8px;
    padding: 0 4px; font-size: 14px; background: #fff;
}
.banpre-sticky-cta__cartform .single_add_to_cart_button {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 1.3rem !important;
    margin: 0 !important;
    background: var(--bp-black) !important; color: #fff !important;
    border: none !important; border-radius: 8px !important;
    font-weight: 600 !important; font-size: 13px !important;
    white-space: nowrap; cursor: pointer;
}
.banpre-sticky-cta__cartform .single_add_to_cart_button:hover { background: #000 !important; }

/* En móvil la barra pasa a 2 filas: arriba el producto (miniatura + nombre +
   precio), abajo las acciones (WhatsApp + cantidad + carrito). */
@media (max-width: 600px) {
    .banpre-sticky-cta { flex-wrap: wrap; gap: 0.5rem 0.6rem; padding: 0.5rem 0.8rem; }
    .banpre-sticky-cta__info { flex: 1 1 100%; }
    .banpre-sticky-cta__actions { flex: 1 1 100%; justify-content: space-between; gap: 8px; }
    .banpre-sticky-cta__name { -webkit-line-clamp: 1; font-size: 13px; }
    .banpre-sticky-cta__thumb img { width: 44px; height: 44px; }
    .banpre-sticky-cta__price { font-size: 15px; }
    .banpre-sticky-cta__wa { flex: 0 0 auto; padding: 0 0.9rem; height: 40px; font-size: 12px; }
    .banpre-sticky-cta__wa-full { display: none; }
    .banpre-sticky-cta__wa-short { display: inline; }
    .banpre-sticky-cta__cartform form.cart { gap: 6px; }
    .banpre-sticky-cta__cartform .quantity .qty { width: 46px; height: 40px; }
    .banpre-sticky-cta__cartform .single_add_to_cart_button {
        height: 40px; padding: 0 0.9rem !important; font-size: 12px !important; flex: 1 1 auto;
    }
}

/* Botón "Volver" en la ficha de producto (functions.php, hook
   woocommerce_before_single_product). Mismo estilo que .banpre-back-to-cats
   de tienda.css (categorías) — se duplica acá porque tienda.css no se carga
   en single product. */
.banpre-back-to-cats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 0.03em;
    color: #fff;
    text-decoration: none;
    background: #1a1a1a;
    border-radius: 3px;
    padding: 0.55rem 1.1rem;
    margin: 0 0 1.25rem;
}
.banpre-back-to-cats svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.banpre-back-to-cats:hover { background: #000; }

/* --------------------------------------------------------------------------
   ACCESIBILIDAD
-------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .banpre-sticky-cta, .single-product .joinchat { transition: none; }
}
