/* ══════════════════════════════════════════════════════════════════
   sp-borntobe.css — Amaría Hair Spa
   Estilos EXCLUSIVOS del template am-templates/borntobe.php

   Depende de sp-product.css (tokens --ink, --paper, --serif, --sans…)
   Se encola después y solo cuando el producto usa la plantilla "borntobe".

   Campos ACF que consume (grupo "Información Producto Born To Be Heated"):
     como_se_usa_video           → Video en la galería
     beneficios                  → Beneficios clave (hero)
     modo_de_uso                 → Acordeón ¿Cómo se usa?
     ingredientes                → Acordeón Ingredientes
     detalles                    → Acordeón Detalles
     beneficios_iconos           → Fila de iconos bajo la galería
     resultados + resultados_imagen         → Sección Resultados
     antes_imagen + despues_imagen          → Comparador antes/después
     para_quien_es_el_producto              → ¿Para quién es?
     como_se_usa + video_como_se_usa        → Sección ¿Cómo se usa?
     preguntas_frecuentes + ..._imagen      → Preguntas frecuentes
     imagen_final_banner                    → Banner full-width
══════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════
   HERO · Beneficios clave (WYSIWYG con ✓)
══════════════════════════════════════════ */
.am-pdp .bth-benefits {
    border-top: 1px solid var(--line) !important;
    padding-top: 1.4rem !important;
    margin: 0.4rem 0 1.4rem !important;
}
.am-pdp .bth-benefits__title {
    font-family: var(--sans) !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: var(--ink) !important;
    margin: 0 0 0.9rem !important;
}
/* El cliente escribe una lista normal en el WYSIWYG;
   el CSS reemplaza los bullets por checks verdes. */
.am-pdp .bth-benefits__body ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}
.am-pdp .bth-benefits__body li {
    position: relative !important;
    padding-left: 1.5rem !important;
    font-family: var(--sans) !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    color: var(--ink) !important;
    margin: 0 !important;
}
.am-pdp .bth-benefits__body li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.3em !important;
    width: 13px !important;
    height: 8px !important;
    border-left: 2px solid var(--mint-deep) !important;
    border-bottom: 2px solid var(--mint-deep) !important;
    transform: rotate(-45deg) !important;
}
/* Si el cliente escribe párrafos sueltos en vez de lista */
.am-pdp .bth-benefits__body p {
    font-family: var(--sans) !important;
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    color: var(--ink) !important;
    margin: 0 0 0.5rem !important;
}


/* ══════════════════════════════════════════
   HERO · Fila de iconos bajo la galería
══════════════════════════════════════════ */
.am-pdp .bth-certifs {
    list-style: none !important;
    margin: 1.4rem 0 0 !important;
    padding: 1.2rem 0 0 !important;
    border-top: 1px solid var(--line) !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.6rem !important;
}
.am-pdp .bth-certif {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.4rem !important;
    margin: 0 !important;
}
.am-pdp .bth-certif__icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: var(--mint-tint) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ink) !important;
}
.am-pdp .bth-certif__icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
/* Sin texto: el icono se centra solo, sin hueco debajo */
.am-pdp .bth-certif.is-icon-only { gap: 0 !important; }
.am-pdp .bth-certif__icon .dashicons {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
}
.am-pdp .bth-certif__txt {
    font-family: var(--sans) !important;
    font-size: 0.58rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--ink-60) !important;
}


/* ══════════════════════════════════════════
   SECCIÓN · ANTES/DESPUÉS + ¿PARA QUIÉN ES?
══════════════════════════════════════════ */
.am-pdp .bth-ba {
    width: 100% !important;
    padding: 0 0 4.5rem !important;
}
.am-pdp .bth-ba__wrap {
    max-width: var(--maxw) !important;
    margin: 0 auto !important;
    padding: 0 2.2rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
}
.am-pdp .bth-ba__wrap.is-single { grid-template-columns: 1fr !important; }

/* Comparador arrastrable */
.am-pdp .bth-compare {
    position: relative !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: var(--paper-2) !important;
    user-select: none !important;
    cursor: ew-resize !important;
    --pos: 50%;   /* lo controla el JS */
}
.am-pdp .bth-compare__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none !important;
}
.am-pdp .bth-compare__img--after {
    clip-path: inset(0 0 0 var(--pos)) !important;
}
.am-pdp .bth-compare__label {
    position: absolute !important;
    top: 1rem !important;
    z-index: 3 !important;
    background: var(--ink) !important;
    color: var(--paper) !important;
    font-family: var(--sans) !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 0.35rem 0.7rem !important;
    pointer-events: none !important;
}
.am-pdp .bth-compare__label--before { left: 1rem !important; }
.am-pdp .bth-compare__label--after  { right: 1rem !important; }
.am-pdp .bth-compare__divider {
    position: absolute !important;
    top: 0 !important; bottom: 0 !important;
    left: var(--pos) !important;
    width: 2px !important;
    background: var(--paper) !important;
    transform: translateX(-1px) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}
.am-pdp .bth-compare__handle {
    position: absolute !important;
    top: 50% !important;
    left: var(--pos) !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: var(--paper) !important;
    color: var(--ink) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
    pointer-events: none !important;
}
/* Input range invisible: captura drag y teclado */
.am-pdp .bth-compare__range {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: ew-resize !important;
    z-index: 4 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
}
.am-pdp .bth-compare__range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 48px !important; height: 100% !important;
    cursor: ew-resize !important;
}
.am-pdp .bth-compare__range::-moz-range-thumb {
    width: 48px !important; height: 100% !important;
    border: none !important; background: transparent !important;
    cursor: ew-resize !important;
}
.am-pdp .bth-compare__range:focus-visible ~ .bth-compare__handle {
    outline: 2px solid var(--ink) !important;
    outline-offset: 3px !important;
}

.am-pdp .bth-pq__title {
    font-family: var(--serif) !important;
    font-size: 2.4rem !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin: 0 0 1.4rem !important;
}
.am-pdp .bth-pq__body,
.am-pdp .bth-pq__body p {
    font-family: var(--sans) !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    color: var(--ink-60) !important;
}
.am-pdp .bth-pq__body p { margin: 0 0 1rem !important; }
.am-pdp .bth-pq__body p:last-child { margin-bottom: 0 !important; }
/* Listas con bullet redondo */
.am-pdp .bth-pq__body ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem 2rem !important;
    max-width: 780px !important;
}
.am-pdp .bth-pq__body li {
    position: relative !important;
    padding-left: 1.1rem !important;
    font-family: var(--sans) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: var(--ink) !important;
    margin: 0 !important;
}
.am-pdp .bth-pq__body li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.55em !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: var(--ink) !important;
}


/* ══════════════════════════════════════════
   SECCIÓN · ¿CÓMO SE USA?
══════════════════════════════════════════ */
.am-pdp .bth-howto {
    width: 100% !important;
    padding: 4rem 0 !important;
}
.am-pdp .bth-howto__wrap {
    max-width: var(--maxw) !important;
    margin: 0 auto !important;
    padding: 0 2.2rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1.1fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
}
/* Sin video: una sola columna */
.am-pdp .bth-howto__wrap.is-single { grid-template-columns: 1fr !important; }

.am-pdp .bth-howto__title {
    font-family: var(--serif) !important;
    font-size: 2.4rem !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin: 0 0 1.2rem !important;
}
.am-pdp .bth-howto__body,
.am-pdp .bth-howto__body p,
.am-pdp .bth-howto__body li {
    font-family: var(--sans) !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    color: var(--ink-60) !important;
}
.am-pdp .bth-howto__body p { margin: 0 0 0.8rem !important; }
.am-pdp .bth-howto__body p:last-child { margin-bottom: 0 !important; }
.am-pdp .bth-howto__body ol,
.am-pdp .bth-howto__body ul { padding-left: 1.2rem !important; margin: 0 0 0.8rem !important; }
.am-pdp .bth-howto__body li { margin-bottom: 0.35rem !important; }

.am-pdp .bth-howto__media {
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: var(--ink) !important;
}
.am-pdp .bth-howto__poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.am-pdp .bth-howto__play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: rgba(247,247,246,0.94) !important;
    color: var(--ink) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    padding: 0 !important;
    z-index: 2 !important;
}
.am-pdp .bth-howto__play:hover { transform: translate(-50%, -50%) scale(1.08) !important; }
/* Iframe que reemplaza el poster al hacer clic (sin modal) */
.am-pdp .bth-howto__frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 3 !important;
}


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .am-pdp .bth-howto__wrap { gap: 2.2rem !important; }
    .am-pdp .bth-pq__title,
    .am-pdp .bth-howto__title { font-size: 2rem !important; }
    .am-pdp .bth-certifs { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 720px) {
    .am-pdp .bth-ba        { padding: 0 0 2.6rem !important; }
    .am-pdp .bth-howto      { padding: 2.6rem 0 !important; }

    .am-pdp .bth-ba__wrap,
    .am-pdp .bth-howto__wrap,
    .am-pdp .bth-results__wrap,
    .am-pdp .bth-faq__wrap,
    .am-pdp .bth-banner__wrap { padding: 0 1rem !important; }

    .am-pdp .bth-howto__wrap {
        grid-template-columns: 1fr !important;
        gap: 1.6rem !important;
    }

    .am-pdp .bth-pq__title,
    .am-pdp .bth-howto__title { font-size: 1.8rem !important; }

    /* ¿Para quién es? a una columna en mobile */
    .am-pdp .bth-pq__body ul { grid-template-columns: 1fr !important; gap: 0.5rem !important; }

    .am-pdp .bth-howto__media { aspect-ratio: 16 / 10 !important; }
    .am-pdp .bth-howto__play  { width: 56px !important; height: 56px !important; }

    /* Iconos: 3 columnas compactas */
    .am-pdp .bth-certifs {
        grid-template-columns: repeat(3, 1fr) !important;
        margin-top: 1.2rem !important;
        padding-top: 1rem !important;
    }

}


/* ══════════════════════════════════════════
   SECCIÓN · RESULTADOS
══════════════════════════════════════════ */
.am-pdp .bth-results {
    width: 100% !important;
    padding: 4.5rem 0 !important;
}
.am-pdp .bth-results__wrap {
    max-width: var(--maxw) !important;
    margin: 0 auto !important;
    padding: 0 2.2rem !important;
    display: grid !important;
    grid-template-columns: 1fr 0.85fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
}
.am-pdp .bth-results__wrap.is-single { grid-template-columns: 1fr !important; }

.am-pdp .bth-badge {
    display: inline-block !important;
    background: var(--ink) !important;
    color: var(--paper) !important;
    font-family: var(--sans) !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    padding: 0.45rem 0.9rem !important;
    margin-bottom: 2rem !important;
}
.am-pdp .bth-results__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
}
.am-pdp .bth-result__title {
    font-family: var(--serif) !important;
    font-size: 2.4rem !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin: 0 0 0.3rem !important;
    letter-spacing: -0.015em !important;
}
.am-pdp .bth-result__desc {
    font-family: var(--sans) !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    color: var(--ink-60) !important;
    margin: 0 !important;
    max-width: 46ch !important;
}
.am-pdp .bth-results__img {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: var(--paper-2) !important;
}
.am-pdp .bth-results__img img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
}


/* ══════════════════════════════════════════
   SECCIÓN · PREGUNTAS FRECUENTES
══════════════════════════════════════════ */
.am-pdp .bth-faq {
    width: 100% !important;
    padding: 0 0 4.5rem !important;
}
.am-pdp .bth-faq__wrap {
    max-width: var(--maxw) !important;
    margin: 0 auto !important;
    padding: 0 2.2rem !important;
    display: grid !important;
    grid-template-columns: 0.85fr 1fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
}
.am-pdp .bth-faq__wrap.is-single { grid-template-columns: 1fr !important; }
.am-pdp .bth-faq__img {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: var(--paper-2) !important;
}
.am-pdp .bth-faq__img img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
}
.am-pdp .bth-faq__title {
    font-family: var(--serif) !important;
    font-size: 2.4rem !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    margin: 0 0 1.6rem !important;
}
.am-pdp .bth-faq__acc { margin-top: 0 !important; }
.am-pdp .bth-faq__acc .v1-acc__head { font-size: 0.9rem !important; }


/* ══════════════════════════════════════════
   SECCIÓN · BANNER FINAL
══════════════════════════════════════════ */
.am-pdp .bth-banner {
    width: 100% !important;
    padding: 0 0 4.5rem !important;
}
.am-pdp .bth-banner__wrap {
    max-width: var(--maxw) !important;
    margin: 0 auto !important;
    padding: 0 2.2rem !important;
}
.am-pdp .bth-banner__wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* ══════════════════════════════════════════
   RESPONSIVE de las secciones nuevas
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .am-pdp .bth-results__wrap,
    .am-pdp .bth-ba__wrap,
    .am-pdp .bth-faq__wrap { gap: 2.2rem !important; }
    .am-pdp .bth-result__title,
    .am-pdp .bth-faq__title { font-size: 2rem !important; }
}

@media (max-width: 720px) {
    .am-pdp .bth-results { padding: 2.6rem 0 !important; }
    .am-pdp .bth-faq,
    .am-pdp .bth-banner  { padding: 0 0 2.6rem !important; }

    .am-pdp .bth-results__wrap,
    .am-pdp .bth-ba__wrap,
    .am-pdp .bth-faq__wrap {
        grid-template-columns: 1fr !important;
        gap: 1.8rem !important;
    }

    .am-pdp .bth-badge { margin-bottom: 1.4rem !important; }
    .am-pdp .bth-result__title { font-size: 1.85rem !important; }
    .am-pdp .bth-result__desc  { font-size: 0.86rem !important; }
    .am-pdp .bth-results__list { gap: 1.2rem !important; }
    .am-pdp .bth-faq__title    { font-size: 1.8rem !important; }

    /* La imagen de resultados va primero en mobile */
    .am-pdp .bth-results__img { order: -1 !important; aspect-ratio: 16 / 10 !important; }

    /* Comparador más alto para que se aprecie */
    .am-pdp .bth-compare { aspect-ratio: 3 / 4 !important; }
    .am-pdp .bth-compare__handle { width: 36px !important; height: 36px !important; }

    .am-pdp .bth-faq__img { aspect-ratio: 16 / 10 !important; }
}


/* ── Fallback: embed que no es de YouTube (Vimeo, etc.) ── */
.am-pdp .bth-howto__media--raw {
    background: transparent !important;
    aspect-ratio: auto !important;
}
.am-pdp .bth-howto__media--raw iframe,
.am-pdp .bth-howto__media--raw embed,
.am-pdp .bth-howto__media--raw video {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    border: none !important;
    display: block !important;
}


/* ══════════════════════════════════════════════════════════════════
   AJUSTES v2 — alineación con el PDF
══════════════════════════════════════════════════════════════════ */

/* ── 1. Alineación: el hero no tiene padding lateral, así que las
      secciones tampoco deben tenerlo. Antes se veían "encogidas". ── */
.am-pdp .bth-results__wrap,
.am-pdp .bth-ba__wrap,
.am-pdp .bth-howto__wrap,
.am-pdp .bth-faq__wrap,
.am-pdp .bth-banner__wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── 2. Línea divisoria arriba de cada sección (como en el PDF) ── */
.am-pdp .bth-results,
.am-pdp .bth-ba,
.am-pdp .bth-howto,
.am-pdp .bth-faq,
.am-pdp .bth-banner {
    position: relative !important;
}
.am-pdp .bth-results::before,
.am-pdp .bth-ba::before,
.am-pdp .bth-howto::before,
.am-pdp .bth-faq::before,
.am-pdp .bth-banner::before {
    content: '' !important;
    display: block !important;
    max-width: var(--maxw) !important;
    margin: 0 auto 3rem !important;
    border-top: 1px solid var(--line) !important;
}
/* La primera (Resultados) ya trae su propio respiro tras el hero */
.am-pdp .bth-results { padding-top: 0 !important; }
.am-pdp .bth-results::before { margin-top: 1rem !important; }

/* Ritmo vertical uniforme entre secciones */
.am-pdp .bth-ba,
.am-pdp .bth-howto,
.am-pdp .bth-faq,
.am-pdp .bth-banner { padding-top: 0 !important; }

/* ── 3. Beneficios clave: sin doble línea bajo Addi ── */
.am-pdp .bth-benefits {
    border-top: 1px solid var(--line) !important;
    margin-top: 1.4rem !important;
}

/* ── 4. Iconos bajo la galería: sin borde duplicado ── */
.am-pdp .bth-certifs {
    border-top: 1px solid var(--line) !important;
    margin-top: 1.6rem !important;
}

@media (max-width: 720px) {
    /* En mobile sí hace falta el padding lateral */
    .am-pdp .bth-results__wrap,
    .am-pdp .bth-ba__wrap,
    .am-pdp .bth-howto__wrap,
    .am-pdp .bth-faq__wrap,
    .am-pdp .bth-banner__wrap {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .am-pdp .bth-results::before,
    .am-pdp .bth-ba::before,
    .am-pdp .bth-howto::before,
    .am-pdp .bth-faq::before,
    .am-pdp .bth-banner::before {
        margin: 0 1rem 1.8rem !important;
    }
}


/* ══════════════════════════════════════════════════════════════════
   ICONOS DE BENEFICIOS — bloque único y definitivo
   Sustituye cualquier regla anterior de .bth-certif*
══════════════════════════════════════════════════════════════════ */

/* Las columnas se ajustan al número real de iconos (--certif-count
   lo inyecta el PHP) → ocupan todo el ancho sin huecos laterales */
.am-pdp .bth-certifs {
    grid-template-columns: repeat(var(--certif-count, 5), 1fr) !important;
    gap: 0.4rem !important;
}

/* Círculo contenedor */
.am-pdp .bth-certif__icon {
    width: 100px !important;
    height: 100px !important;
    max-width: 100% !important;
    aspect-ratio: 1 !important;
    overflow: hidden !important;
}

/* La imagen llena el círculo — sin padding, sin medidas fijas.
   ⚠ No poner width/height en px aquí: al combinarse con padding y
   box-sizing:border-box el área de contenido se vuelve negativa
   y la imagen desaparece (quedaba solo el círculo gris). */
.am-pdp .bth-certif__icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    object-fit: contain !important;
    display: block !important;
}

.am-pdp .bth-certif__txt {
    font-size: 0.64rem !important;
    line-height: 1.3 !important;
}

@media (max-width: 1024px) {
    .am-pdp .bth-certifs {
        grid-template-columns: repeat(min(var(--certif-count, 4), 4), 1fr) !important;
    }
    .am-pdp .bth-certif__icon { width: 80px !important; height: 80px !important; }
}

@media (max-width: 720px) {
    .am-pdp .bth-certifs {
        grid-template-columns: repeat(min(var(--certif-count, 3), 3), 1fr) !important;
        gap: 0.6rem !important;
    }
    .am-pdp .bth-certif__icon { width: 68px !important; height: 68px !important; }
    /* La imagen sigue al 100% — hereda de la regla base */
    .am-pdp .bth-certif__txt { font-size: 0.58rem !important; }
}


/* ══════════════════════════════════════════════════════════════════
   COMPARADOR — arrastre táctil
══════════════════════════════════════════════════════════════════ */

/* pan-y: el gesto vertical sigue haciendo scroll de la página,
   el horizontal lo captura el comparador */
.am-pdp .bth-compare {
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* El input range ya no intercepta el toque: en móvil obligaba a
   acertar justo en el thumb. Queda solo para teclado y a11y. */
.am-pdp .bth-compare__range {
    pointer-events: none !important;
}

/* Feedback al arrastrar */
.am-pdp .bth-compare.is-dragging { cursor: grabbing !important; }
.am-pdp .bth-compare.is-dragging .bth-compare__handle {
    transform: translate(-50%, -50%) scale(1.08) !important;
}
.am-pdp .bth-compare__handle {
    transition: transform 0.15s ease !important;
}

/* Zona de agarre más generosa en móvil */
@media (max-width: 720px) {
    .am-pdp .bth-compare__handle {
        width: 44px !important;
        height: 44px !important;
    }
    .am-pdp .bth-compare__divider { width: 3px !important; }
}


/* ══════════════════════════════════════════════════════════════════
   AJUSTES v4 — tipografía y nuevas secciones
══════════════════════════════════════════════════════════════════ */

/* ── 1. Beneficios clave + acordeones del hero → 16px ── */
.am-pdp .bth-benefits__title {
    font-size: 16px !important;
}
.am-pdp .bth-benefits__body li,
.am-pdp .bth-benefits__body p {
    font-size: 16px !important;
    line-height: 1.5 !important;
}
/* El check se alinea con la nueva altura de línea */
.am-pdp .bth-benefits__body li::before {
    top: 0.42em !important;
}

/* Acordeones del hero: título y contenido */
.am-pdp .v1-acc__head {
    font-size: 16px !important;
}
.am-pdp .v1-acc__body,
.am-pdp .v1-acc__body p,
.am-pdp .v1-acc__body li {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* ── 3. Badge negro (Resultados de laboratorio / Preguntas Frecuentes)
      Mantiene fondo negro y padding, solo sube el tamaño de letra ── */
.am-pdp .bth-badge {
    font-size: 35px !important;
    letter-spacing: 0.06em !important;
    text-transform: none !important;
    font-family: var(--serif) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    padding: 0.4rem 1rem !important;
}
.am-pdp .bth-result__desc {
    font-size: 17px !important;
    line-height: 1.55 !important;
}

/* ── 4. ¿Para quién es? → 17px ── */
.am-pdp .bth-pq__body,
.am-pdp .bth-pq__body p,
.am-pdp .bth-pq__body li,
.am-pdp .bth-pq__body ul li {
    font-size: 17px !important;
    line-height: 1.6 !important;
}
.am-pdp .bth-pq__body li::before {
    top: 0.6em !important;
}

/* ── 5. "Preguntas Frecuentes" usa el mismo badge que Resultados ── */
.am-pdp .bth-faq .bth-badge { margin-bottom: 1.6rem !important; }

/* ── 6. Desktop: el badge de la columna derecha.
        Mobile: el que va antes de la imagen ── */
.am-pdp .bth-badge--mobile  { display: none !important; }
.am-pdp .bth-badge--desktop { display: inline-block !important; }

/* ── 7. Acordeón del FAQ → 17px ── */
.am-pdp .bth-faq__acc .v1-acc__head {
    font-size: 17px !important;
}
.am-pdp .bth-faq__acc .v1-acc__body,
.am-pdp .bth-faq__acc .v1-acc__body p,
.am-pdp .bth-faq__acc .v1-acc__body li {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/* ── Acordeón "Míralo en acción" dentro de la landing ── */
.am-pdp .v1-acc__item--videos.is-open .v1-acc__body {
    max-height: 1400px !important;
    overflow: visible !important;
    padding-bottom: 1.2rem !important;
}


@media (max-width: 1024px) {
    .am-pdp .bth-badge { font-size: 30px !important; }
}

@media (max-width: 720px) {
    /* 6. El badge del FAQ va ARRIBA de la imagen en mobile */
    .am-pdp .bth-badge--mobile {
        display: inline-block !important;
        margin: 0 0 1.2rem !important;
    }
    .am-pdp .bth-badge--desktop { display: none !important; }

    .am-pdp .bth-badge { font-size: 26px !important; padding: 0.35rem 0.8rem !important; }

    /* Tipografías se mantienen legibles en mobile */
    .am-pdp .bth-result__desc { font-size: 16px !important; }
    .am-pdp .bth-pq__body,
    .am-pdp .bth-pq__body p,
    .am-pdp .bth-pq__body li { font-size: 16px !important; }
    .am-pdp .bth-faq__acc .v1-acc__head,
    .am-pdp .bth-faq__acc .v1-acc__body,
    .am-pdp .bth-faq__acc .v1-acc__body p,
    .am-pdp .bth-faq__acc .v1-acc__body li { font-size: 16px !important; }
}


/* ══════════════════════════════════════════════════════════════════
   VIDEO "¿CÓMO SE USA?" — soporta varios orígenes
   El campo ACF es tipo URL: puede traer YouTube, Vimeo o un
   archivo self-hosted (.mp4, .webm…). El PHP detecta cuál es.
══════════════════════════════════════════════════════════════════ */

/* ── Video self-hosted: reproductor nativo ── */
.am-pdp .bth-howto__media--file {
    background: var(--ink) !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
}
.am-pdp .bth-howto__video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    background: var(--ink) !important;
    border: none !important;
    outline: none !important;
}
/* Los controles nativos necesitan que el video no esté recortado
   en los bordes inferiores */
.am-pdp .bth-howto__media--file .bth-howto__video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0,0,0,0.55)) !important;
}

/* ── Vimeo / iframe genérico ── */
.am-pdp .bth-howto__media > .bth-howto__frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 1 !important;
}

/* ── Embed HTML ya armado ── */
.am-pdp .bth-howto__media--raw {
    background: transparent !important;
    aspect-ratio: auto !important;
}
.am-pdp .bth-howto__media--raw iframe,
.am-pdp .bth-howto__media--raw video,
.am-pdp .bth-howto__media--raw embed {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    border: none !important;
    display: block !important;
}
/* Si llegó texto plano en vez de HTML, que no se vea la URL cruda */
.am-pdp .bth-howto__media--raw { font-size: 0 !important; }
.am-pdp .bth-howto__media--raw iframe,
.am-pdp .bth-howto__media--raw video,
.am-pdp .bth-howto__media--raw embed { font-size: 1rem !important; }

@media (max-width: 720px) {
    .am-pdp .bth-howto__media--file { aspect-ratio: 16 / 10 !important; }
}


/* ── ¿Cómo se usa? — texto a 17px ── */
.am-pdp .bth-howto__body,
.am-pdp .bth-howto__body p,
.am-pdp .bth-howto__body li,
.am-pdp .bth-howto__body ol li,
.am-pdp .bth-howto__body ul li {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

@media (max-width: 720px) {
    .am-pdp .bth-howto__body,
    .am-pdp .bth-howto__body p,
    .am-pdp .bth-howto__body li { font-size: 16px !important; }
}


/* ══════════════════════════════════════════════════════════════════
   SLIDER "MÍRALO EN ACCIÓN" — videos self-hosted
   El repetidor 'videos' puede traer YouTube, TikTok o archivos
   .mp4/.webm subidos a Medios. Estas reglas son para los archivos.
══════════════════════════════════════════════════════════════════ */
.am-pdp .am-vc__thumb--file {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--ink) !important;
    cursor: pointer !important;
    display: block !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}
.am-pdp .am-vc__video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    background: var(--ink) !important;
}
/* La miniatura no es interactiva: el clic lo captura la card */
.am-pdp .am-vc__thumb--file .am-vc__video { pointer-events: none !important; }
.am-pdp .am-vc__thumb--file .am-vc__play {
    transition: transform 0.18s ease !important;
}
.am-pdp .am-vc__thumb--file:hover .am-vc__play svg { transform: scale(1.1) !important; }


/* ══════════════════════════════════════════
   MODAL de video self-hosted (9:16)
   Hereda .am-vmodal de sp-product.css
══════════════════════════════════════════ */
.bth-vmodal__body {
    width: min(420px, 92vw) !important;
    aspect-ratio: 9 / 16 !important;
    max-height: 88vh !important;
    background: #000 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.bth-vmodal__video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    background: #000 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 480px) {
    .bth-vmodal__body { width: 94vw !important; }
}


/* ══════════════════════════════════════════
   Botón cerrar del modal self-hosted
   La ✕ se dibuja con dos barras (::before/::after).
   No usa SVG: el tema lo pisaba y quedaba invisible.
══════════════════════════════════════════ */
.bth-vmodal { z-index: 100000 !important; }
.bth-vmodal .am-vmodal__body { z-index: 1 !important; }

.bth-vmodal__close {
    position: fixed !important;
    top: 1.2rem !important;
    right: 1.4rem !important;
    z-index: 100001 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255,255,255,0.18) !important;
    cursor: pointer !important;
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
    transition: background 0.18s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.bth-vmodal__close:hover { background: rgba(255,255,255,0.34) !important; }

/* Las dos barras de la ✕ */
.bth-vmodal__close::before,
.bth-vmodal__close::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.bth-vmodal__close::before { transform: translate(-50%, -50%) rotate(45deg)  !important; }
.bth-vmodal__close::after  { transform: translate(-50%, -50%) rotate(-45deg) !important; }

/* Por si el tema inyecta algo dentro del botón */
.bth-vmodal__close svg,
.bth-vmodal__close img { display: none !important; }

@media (max-width: 480px) {
    .bth-vmodal__close {
        top: 0.8rem !important;
        right: 0.8rem !important;
        width: 40px !important;
        height: 40px !important;
    }
    .bth-vmodal__close::before,
    .bth-vmodal__close::after { width: 18px !important; }
}