/* FACTORÍA DE TINTA — HERRAMIENTAS EN PRODUCTO v4.1.3
   Solo controla el panel de herramientas y sus ajustes visuales en la ficha.
   No modifica cabecera, menú, galería, checkout ni Mi Cuenta.
*/
.fdt-product-tools,
.fdt-product-tools *{box-sizing:border-box}

.fdt-product-tools{width:100%;margin:0;padding:0;color:#111;font-family:inherit;line-height:normal}

/* =========================================================
   CABECERA DEL BLOQUE — blindada frente a estilos globales
   ========================================================= */
.fdt-product-tools .fdt-tools-header{display:block!important;position:static!important;float:none!important;clear:both!important;width:100%!important;height:auto!important;min-height:0!important;margin:0 0 14px!important;padding:0!important;transform:none!important;overflow:visible!important;text-align:left!important}
.fdt-product-tools .fdt-tools-kicker{display:block!important;position:static!important;margin:0 0 4px!important;padding:0!important;color:#e30613!important;font-family:inherit!important;font-size:9px!important;line-height:1.1!important;font-weight:900!important;letter-spacing:1.1px!important;text-transform:uppercase!important;transform:none!important}
.fdt-product-tools .fdt-tools-header h2{display:block!important;position:static!important;float:none!important;width:100%!important;height:auto!important;min-height:0!important;margin:0 0 6px!important;padding:0!important;color:#111!important;background:none!important;border:0!important;font-family:inherit!important;font-size:22px!important;line-height:1.08!important;font-weight:900!important;letter-spacing:-.35px!important;text-transform:none!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow:visible!important;transform:none!important;text-shadow:none!important}
.fdt-product-tools .fdt-tools-header h2 span{display:inline!important;color:#e30613!important;font:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-transform:none!important}
.fdt-product-tools .fdt-tools-header p{display:block!important;position:static!important;margin:0!important;padding:0!important;color:#6f6f6f!important;font-family:inherit!important;font-size:10px!important;line-height:1.45!important;max-width:310px!important;transform:none!important}

/* =========================================================
   GENERADOR + REVISIÓN — más visibles y coherentes entre sí
   ========================================================= */
.fdt-tool-links{display:grid;gap:9px;margin:0}
.fdt-tool-link{display:flex;align-items:center;gap:11px;min-width:0;padding:11px 11px;border:1px solid #dedede;border-radius:11px;background:#fff;color:#111!important;text-decoration:none!important;box-shadow:0 2px 9px rgba(0,0,0,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.fdt-tool-link:hover{transform:translateY(-1px);border-color:#e30613;background:#fff;box-shadow:0 8px 20px rgba(227,6,19,.11)}
.fdt-link-icon{width:40px;height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#e30613;color:#fff;font-size:18px;line-height:1;font-weight:900}
.fdt-icon-dark{background:#111}
.fdt-link-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.fdt-link-copy strong{display:block;color:#111!important;font-family:inherit!important;font-size:12px!important;line-height:1.15!important;font-weight:850!important;letter-spacing:0!important;text-transform:none!important;white-space:normal!important}
.fdt-link-copy small{display:block;color:#777!important;font-family:inherit!important;font-size:9px!important;line-height:1.3!important;font-weight:400!important;letter-spacing:0!important;text-transform:none!important}
.fdt-link-arrow{flex:0 0 auto;color:#e30613;font-size:18px;line-height:1;font-weight:900}

/* =========================================================
   BLOQUE REAL DEL CONFIGURADOR — se recoloca aquí por JS
   ========================================================= */
.fdt-design-slot{margin:10px 0 0}
.fdt-design-slot:empty{display:none}
.fdt-design-slot>.ft-design-choice{margin:0!important;width:100%!important;padding:12px!important;border:1px solid #e0e0e0!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 14px rgba(0,0,0,.045)!important}
.fdt-design-slot>.ft-print-upload{margin:8px 0 0!important;width:100%!important}
.fdt-design-slot .ft-design-choice-title{font-size:12px!important;line-height:1.2!important;margin:0 0 4px!important;font-weight:900!important;color:#111!important}
.fdt-design-slot .ft-design-choice-help{font-size:9px!important;line-height:1.35!important;margin:0 0 9px!important;color:#777!important}
.fdt-design-slot .ft-design-options{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
.fdt-design-slot .ft-design-option{min-height:58px!important;padding:9px!important;border-radius:8px!important;font-size:9px!important;line-height:1.25!important}
.fdt-design-slot .ft-design-option small{font-size:8px!important}
.fdt-design-slot .ft-design-service-note{font-size:8.5px!important}

/* =========================================================
   COMPRA CON CONFIANZA
   ========================================================= */
.fdt-confidence{margin-top:10px;padding:11px;border-radius:10px;background:#f7f7f7}
.fdt-confidence-title{margin:0 0 6px;color:#e30613;font-size:8px;line-height:1.1;font-weight:900;letter-spacing:.8px}
.fdt-confidence-item{display:flex;align-items:center;gap:7px;padding:4px 0}
.fdt-confidence-icon{width:24px;height:24px;flex:0 0 24px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#111;color:#fff;font-size:10px;font-weight:900}
.fdt-confidence-item span:last-child{min-width:0;display:flex;flex-direction:column;gap:1px}
.fdt-confidence-item strong{color:#111;font-size:9px;line-height:1.2;font-weight:800}
.fdt-confidence-item small{color:#777;font-size:8px;line-height:1.2}
.fdt-contact-button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:7px;padding:8px 9px;border:1px solid #e30613;border-radius:8px;background:#fff;color:#e30613!important;font-size:9px;line-height:1.2;font-weight:900;text-decoration:none!important;transition:all .18s ease}
.fdt-contact-button:hover{background:#e30613;color:#fff!important}

.fdt-tools-claim{margin-top:10px;padding:13px 14px;border-radius:10px;background:#111;color:#fff;overflow:hidden;position:relative}
.fdt-tools-claim:after{content:"";position:absolute;right:-20px;bottom:-30px;width:90px;height:90px;border-radius:50%;background:#e30613;opacity:.9}
.fdt-tools-claim strong{display:block;position:relative;z-index:1;font-size:17px;line-height:.98;font-weight:900;letter-spacing:-.4px}
.fdt-tools-claim span{display:block;position:relative;z-index:1;margin-top:7px;max-width:180px;font-size:8.5px;line-height:1.35;color:#ddd}

/* =========================================================
   AJUSTES DE LA FICHA — solicitados para precio, carrito,
   descripción corta y separación del bloque Klarna.
   Solo en producto y sin tocar el resto del sitio.
   ========================================================= */
body.single-product div.product > .summary > .price,
body.single-product div.product > .summary p.price{color:#2e7d32!important;margin-bottom:9px!important;line-height:1.2!important}
body.single-product div.product > .summary > .price .woocommerce-Price-amount,
body.single-product div.product > .summary p.price .woocommerce-Price-amount,
body.single-product div.product > .summary > .price .amount{color:#2e7d32!important}

body.single-product div.product > .summary .single_add_to_cart_button,
body.single-product div.product > .summary button.single_add_to_cart_button,
body.single-product div.product > .summary .single_add_to_cart_button.button{border-radius:9px!important;overflow:hidden!important}

body.single-product div.product > .summary .woocommerce-product-details__short-description{margin-top:17px!important;margin-bottom:15px!important;color:#555!important;font-size:13px!important;line-height:1.55!important}
body.single-product div.product > .summary .woocommerce-product-details__short-description p{font-size:13px!important;line-height:1.55!important;margin-bottom:8px!important}

/* Aire adicional para el mensaje de Klarna, cuando WooCommerce/Klarna lo inserta. */
body.single-product div.product > .summary [id*="klarna"],
body.single-product div.product > .summary [class*="klarna"],
body.single-product div.product > .summary .klarna-placement{margin-top:6px!important;margin-bottom:8px!important}

@media (min-width:1100px){
    body.single-product div.product>.summary{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:24px!important;min-width:0!important;box-sizing:border-box!important}
    body.single-product div.product>.summary>.fdt-summary-main{flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
    body.single-product div.product>.summary>.fdt-product-tools{flex:0 0 320px!important;width:320px!important;max-width:320px!important;margin:0!important;position:relative!important;align-self:flex-start!important;z-index:2!important;box-sizing:border-box!important;overflow:visible!important}
    body.single-product div.product>.summary>.fdt-summary-main>*{max-width:100%!important;box-sizing:border-box!important}
}

@media (min-width:768px) and (max-width:1099px){
    .fdt-product-tools{width:100%;max-width:100%;margin:22px 0}
}

@media (max-width:767px){
    body.single-product div.product>.summary>.fdt-summary-main{display:block!important;width:100%!important;max-width:none!important}
    body.single-product div.product>.summary>.fdt-product-tools{display:block!important;position:relative!important;left:auto!important;top:auto!important;order:999!important;flex:0 0 100%!important;width:100%!important;max-width:none!important;margin:18px 0 20px!important;z-index:1!important}
    .fdt-product-tools .fdt-tools-header h2{font-size:21px!important}
    .fdt-design-slot .ft-design-options{grid-template-columns:1fr!important}
    body.single-product div.product > .summary .woocommerce-product-details__short-description,
    body.single-product div.product > .summary .woocommerce-product-details__short-description p{font-size:12.5px!important}
}


/* =========================================================
   V4.1.4 — AJUSTES VISUALES SOLICITADOS
   IMPORTANTE: solo tamaño/espaciado. Se conservan todas las
   herramientas existentes y el bloque real del configurador.
   ========================================================= */

/* Título → precio: dejar aire suficiente. */
body.single-product div.product > .summary > .product_title,
body.single-product div.product > .summary > h1.product_title {
    margin-bottom: 16px !important;
}

body.single-product div.product > .summary > .price,
body.single-product div.product > .summary p.price {
    margin-top: 12px !important;
    margin-bottom: 14px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

/* Klarna: claramente separado del precio y de la descripción. */
body.single-product div.product > .summary .ft-klarna-spaced,
body.single-product div.product > .summary [id*="klarna"],
body.single-product div.product > .summary [class*="klarna"],
body.single-product div.product > .summary .klarna-placement {
    margin-top: 9px !important;
    margin-bottom: 18px !important;
}

/* Descripción corta: más grande y cómoda antes del configurador. */
body.single-product div.product > .summary .woocommerce-product-details__short-description {
    margin-top: 5px !important;
    margin-bottom: 28px !important;
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

body.single-product div.product > .summary .woocommerce-product-details__short-description p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
}

/* Si el configurador añade su título "Configura tu producto",
   mantenerlo protagonista y separado de la descripción. */
body.single-product .ft-configura-producto-title {
    display: block !important;
    margin-top: 5px !important;
    margin-bottom: 11px !important;
    color: #111 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

/* =========================================================
   HERRAMIENTAS PARA TU DISEÑO
   ========================================================= */
.fdt-product-tools .fdt-tools-header {
    margin-bottom: 17px !important;
}

.fdt-product-tools .fdt-tools-kicker {
    font-size: 10px !important;
    margin-bottom: 5px !important;
}

.fdt-product-tools .fdt-tools-header h2 {
    font-size: 25px !important;
    line-height: 1.05 !important;
    margin-bottom: 8px !important;
}

.fdt-product-tools .fdt-tools-header p {
    max-width: 100% !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
}

.fdt-product-tools .fdt-tool-links {
    gap: 11px !important;
}

.fdt-product-tools .fdt-tool-link {
    min-height: 65px !important;
    padding: 13px 13px !important;
    gap: 12px !important;
    border-radius: 11px !important;
}

.fdt-product-tools .fdt-link-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    font-size: 20px !important;
    border-radius: 10px !important;
}

.fdt-product-tools .fdt-link-copy {
    gap: 4px !important;
}

.fdt-product-tools .fdt-link-copy strong {
    font-size: 13.5px !important;
    line-height: 1.2 !important;
}

.fdt-product-tools .fdt-link-copy small {
    font-size: 10px !important;
    line-height: 1.35 !important;
}

.fdt-product-tools .fdt-link-arrow {
    font-size: 20px !important;
}

/* =========================================================
   ¿TIENES EL DISEÑO PREPARADO?
   El bloque es el real del configurador: no se duplica.
   ========================================================= */
.fdt-product-tools .fdt-design-slot {
    margin-top: 14px !important;
}

.fdt-product-tools .fdt-design-slot > .ft-design-choice {
    padding: 16px !important;
    border-radius: 11px !important;
}

.fdt-product-tools .fdt-design-slot .ft-design-choice-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
}

.fdt-product-tools .fdt-design-slot .ft-design-choice-help {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 11px !important;
}

.fdt-product-tools .fdt-design-slot .ft-design-options {
    gap: 9px !important;
}

.fdt-product-tools .fdt-design-slot .ft-design-option {
    min-height: 70px !important;
    padding: 11px !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

.fdt-product-tools .fdt-design-slot .ft-design-option small {
    font-size: 9px !important;
    line-height: 1.3 !important;
}

.fdt-product-tools .fdt-design-slot .ft-design-service-note {
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

.fdt-product-tools .fdt-design-slot > .ft-print-upload {
    margin-top: 10px !important;
    padding: 13px !important;
}

/* =========================================================
   COMPRA CON CONFIANZA — TODO MÁS GRANDE
   ========================================================= */
.fdt-product-tools .fdt-confidence {
    margin-top: 15px !important;
    padding: 16px !important;
    border-radius: 11px !important;
}

.fdt-product-tools .fdt-confidence-title {
    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    margin-bottom: 9px !important;
}

.fdt-product-tools .fdt-confidence-item {
    gap: 9px !important;
    padding: 6px 0 !important;
    min-height: 38px !important;
}

.fdt-product-tools .fdt-confidence-icon {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
    font-size: 12px !important;
}

.fdt-product-tools .fdt-confidence-item span:last-child {
    gap: 2px !important;
}

.fdt-product-tools .fdt-confidence-item strong {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
}

.fdt-product-tools .fdt-confidence-item small {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
}

/* Contactar ahora: mismo lenguaje visual que los botones rojos de la web. */
.fdt-product-tools .fdt-contact-button {
    min-height: 39px !important;
    margin-top: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid #e30613 !important;
    border-radius: 7px !important;
    background: #e30613 !important;
    color: #fff !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .15px !important;
}

.fdt-product-tools .fdt-contact-button:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

/* =========================================================
   TU IDEA, EN BUENAS MANOS — MÁS GRANDE
   ========================================================= */
.fdt-product-tools .fdt-tools-claim {
    margin-top: 14px !important;
    padding: 18px 17px !important;
    min-height: 94px !important;
    border-radius: 11px !important;
}

.fdt-product-tools .fdt-tools-claim strong {
    font-size: 21px !important;
    line-height: .98 !important;
    letter-spacing: -.45px !important;
}

.fdt-product-tools .fdt-tools-claim span {
    margin-top: 8px !important;
    max-width: 205px !important;
    font-size: 9.5px !important;
    line-height: 1.4 !important;
}

/* Más aire antes de productos relacionados, sin modificar su contenido. */
@media (min-width:1100px) {
    body.single-product div.product > .summary > .fdt-product-tools {
        flex-basis: 330px !important;
        width: 330px !important;
        max-width: 330px !important;
    }
}

@media (max-width:767px) {
    body.single-product div.product > .summary > .price,
    body.single-product div.product > .summary p.price {
        margin-top: 10px !important;
        margin-bottom: 13px !important;
    }

    body.single-product div.product > .summary .woocommerce-product-details__short-description,
    body.single-product div.product > .summary .woocommerce-product-details__short-description p {
        font-size: 14px !important;
        line-height: 1.65 !important;
        margin-bottom: 23px !important;
    }

    .fdt-product-tools .fdt-tools-header h2 {
        font-size: 23px !important;
    }

    .fdt-product-tools .fdt-link-copy strong {
        font-size: 13px !important;
    }

    .fdt-product-tools .fdt-confidence {
        padding: 15px !important;
    }

    .fdt-product-tools .fdt-tools-claim strong {
        font-size: 20px !important;
    }
}


/* =========================================================
   FACTORÍA DE TINTA v4.1.5 — AJUSTES FINALES
   Basado directamente en v4.1.4.
   Solo presentación de la ficha de producto.
   ========================================================= */

/* PRECIO: rojo Factoría y más aire respecto al título. */
body.single-product div.product > .summary > .product_title,
body.single-product div.product > .summary > h1.product_title {
    margin-bottom: 20px !important;
}
body.single-product div.product > .summary > .price,
body.single-product div.product > .summary p.price {
    color: #e30613 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}
body.single-product div.product > .summary > .price *,
body.single-product div.product > .summary p.price *,
body.single-product div.product > .summary > .price .amount,
body.single-product div.product > .summary p.price .amount,
body.single-product div.product > .summary > .price .woocommerce-Price-amount,
body.single-product div.product > .summary p.price .woocommerce-Price-amount {
    color: #e30613 !important;
}

/* Klarna: separado del precio y también de la descripción. */
body.single-product div.product > .summary [id*="klarna"],
body.single-product div.product > .summary [class*="klarna"],
body.single-product div.product > .summary .klarna-placement,
body.single-product div.product > .summary .ft-klarna-spaced {
    margin-top: 11px !important;
    margin-bottom: 21px !important;
}

/* Descripción corta: más grande, sin quedar pegada al bloque anterior. */
body.single-product div.product > .summary .woocommerce-product-details__short-description {
    margin-top: 0 !important;
    margin-bottom: 27px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
body.single-product div.product > .summary .woocommerce-product-details__short-description p {
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* CONFIGURA TU PRODUCTO: el JS lo inserta justo antes del selector. */
body.single-product .fdt-summary-main > .ft-configura-producto-title {
    display: block !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
}

/* ICONOS SVG — limpios, sin símbolos de texto. */
.fdt-product-tools .fdt-link-icon svg,
.fdt-product-tools .fdt-confidence-icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.fdt-product-tools .fdt-link-icon {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
    border-radius: 12px !important;
}
.fdt-product-tools .fdt-link-icon.fdt-icon-dark {
    background: #111 !important;
}
.fdt-product-tools .fdt-tool-link {
    min-height: 69px !important;
    padding: 13px 14px !important;
}
.fdt-product-tools .fdt-link-copy strong {
    font-size: 14px !important;
}
.fdt-product-tools .fdt-link-copy small {
    font-size: 10.5px !important;
}

/* COMPRA CON CONFIANZA — más grande y con iconos más claros. */
.fdt-product-tools .fdt-confidence {
    margin-top: 19px !important;
    padding: 18px 16px !important;
}
.fdt-product-tools .fdt-confidence-title {
    font-size: 13px !important;
    margin-bottom: 11px !important;
}
.fdt-product-tools .fdt-confidence-item {
    min-height: 42px !important;
    gap: 10px !important;
    padding: 7px 0 !important;
}
.fdt-product-tools .fdt-confidence-icon {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    font-size: 0 !important;
}
.fdt-product-tools .fdt-confidence-icon svg {
    width: 17px !important;
    height: 17px !important;
}
.fdt-product-tools .fdt-confidence-item strong {
    font-size: 12px !important;
}
.fdt-product-tools .fdt-confidence-item small {
    font-size: 10px !important;
}

/* CONTACTAR AHORA — rojo como los CTA de la web. */
.fdt-product-tools .fdt-contact-button {
    min-height: 42px !important;
    margin-top: 12px !important;
    padding: 11px 13px !important;
    background: #e30613 !important;
    border-color: #e30613 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 11px !important;
}
.fdt-product-tools .fdt-contact-button:hover {
    background: #111 !important;
    border-color: #111 !important;
}

/* TU IDEA, EN BUENAS MANOS — más protagonista. */
.fdt-product-tools .fdt-tools-claim {
    margin-top: 17px !important;
    min-height: 112px !important;
    padding: 21px 19px !important;
    border-radius: 12px !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.10) !important;
}
.fdt-product-tools .fdt-tools-claim strong {
    font-size: 25px !important;
    line-height: .98 !important;
    letter-spacing: -.55px !important;
}
.fdt-product-tools .fdt-tools-claim span {
    margin-top: 10px !important;
    max-width: 220px !important;
    font-size: 10.5px !important;
    line-height: 1.4 !important;
}

/* DISEÑO PREPARADO — un poco más protagonista sin cambiar su funcionamiento. */
.fdt-product-tools .fdt-design-slot > .ft-design-choice {
    padding: 18px !important;
}
.fdt-product-tools .fdt-design-slot .ft-design-choice-title {
    font-size: 16px !important;
}
.fdt-product-tools .fdt-design-slot .ft-design-choice-help {
    font-size: 11px !important;
}

/* Móvil */
@media (max-width: 767px) {
    body.single-product div.product > .summary > .product_title,
    body.single-product div.product > .summary > h1.product_title {
        margin-bottom: 17px !important;
    }
    body.single-product div.product > .summary > .price,
    body.single-product div.product > .summary p.price {
        font-size: 15px !important;
        margin-bottom: 14px !important;
    }
    body.single-product div.product > .summary .woocommerce-product-details__short-description,
    body.single-product div.product > .summary .woocommerce-product-details__short-description p {
        font-size: 14px !important;
        line-height: 1.65 !important;
        margin-bottom: 23px !important;
    }
    body.single-product .fdt-summary-main > .ft-configura-producto-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    .fdt-product-tools .fdt-tools-claim strong {
        font-size: 23px !important;
    }
}


/* =========================================================
   FACTORÍA DE TINTA v4.1.6 — CORRECCIÓN FINAL DE JERARQUÍA
   Basado en v4.1.5 sin tocar cabecera, menú, galería ni checkout.
   El JS envuelve el contenido del summary en .fdt-summary-main;
   estos selectores trabajan dentro de ese contenedor real.
   ========================================================= */

/* PRECIO — "Desde" y cantidades siempre en rojo Factoría. */
body.single-product div.product > .summary .fdt-summary-main > .price,
body.single-product div.product > .summary .fdt-summary-main > p.price,
body.single-product div.product > .summary .fdt-summary-main .price {
    color: #e30613 !important;
    margin-top: 4px !important;
    margin-bottom: 18px !important;
    padding-top: 0 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

body.single-product div.product > .summary .fdt-summary-main .price,
body.single-product div.product > .summary .fdt-summary-main .price *,
body.single-product div.product > .summary .fdt-summary-main .price .amount,
body.single-product div.product > .summary .fdt-summary-main .price .woocommerce-Price-amount,
body.single-product div.product > .summary .fdt-summary-main .price .price-from,
body.single-product div.product > .summary .fdt-summary-main .price small,
body.single-product div.product > .summary .fdt-summary-main .price span {
    color: #e30613 !important;
}

/* TÍTULO → PRECIO: separación visual clara. */
body.single-product div.product > .summary .fdt-summary-main > .product_title,
body.single-product div.product > .summary .fdt-summary-main > h1.product_title {
    margin-bottom: 16px !important;
}

/* KLARNA — bloque independiente, nunca pegado al precio. */
body.single-product div.product > .summary .fdt-summary-main [id*="klarna"],
body.single-product div.product > .summary .fdt-summary-main [class*="klarna"],
body.single-product div.product > .summary .fdt-summary-main .klarna-placement,
body.single-product div.product > .summary .fdt-summary-main .ft-klarna-spaced {
    display: block !important;
    clear: both !important;
    margin-top: 10px !important;
    margin-bottom: 22px !important;
}

/* Si Klarna aparece justo después del precio, forzamos aire real. */
body.single-product div.product > .summary .fdt-summary-main > .price + [id*="klarna"],
body.single-product div.product > .summary .fdt-summary-main > .price + [class*="klarna"],
body.single-product div.product > .summary .fdt-summary-main > p.price + [id*="klarna"],
body.single-product div.product > .summary .fdt-summary-main > p.price + [class*="klarna"] {
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

/* DESCRIPCIÓN CORTA — más grande y con mejor lectura. */
body.single-product div.product > .summary .fdt-summary-main .woocommerce-product-details__short-description,
body.single-product div.product > .summary .fdt-summary-main .woocommerce-product-details__short-description p {
    color: #555 !important;
    font-size: 16px !important;
    line-height: 1.72 !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
}

/* CONFIGURA TU PRODUCTO — más visible. */
body.single-product .fdt-summary-main > .ft-configura-producto-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin: 0 0 15px !important;
}

/* =========================================================
   HERRAMIENTAS — iconografía y tipografía coherentes
   ========================================================= */
.fdt-product-tools .fdt-tools-header {
    margin-bottom: 19px !important;
}
.fdt-product-tools .fdt-tools-kicker {
    font-size: 11px !important;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
}
.fdt-product-tools .fdt-tools-header h2 {
    font-size: 27px !important;
    line-height: 1.04 !important;
    margin-bottom: 9px !important;
}
.fdt-product-tools .fdt-tools-header p {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}

.fdt-product-tools .fdt-tool-links {
    gap: 12px !important;
}
.fdt-product-tools .fdt-tool-link {
    min-height: 74px !important;
    padding: 14px 15px !important;
    gap: 13px !important;
    border-radius: 12px !important;
}
.fdt-product-tools .fdt-link-icon {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
    border-radius: 12px !important;
}
.fdt-product-tools .fdt-link-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 1.9 !important;
}
.fdt-product-tools .fdt-link-copy {
    gap: 5px !important;
}
.fdt-product-tools .fdt-link-copy strong {
    font-size: 15px !important;
    line-height: 1.18 !important;
}
.fdt-product-tools .fdt-link-copy small {
    font-size: 11px !important;
    line-height: 1.4 !important;
}
.fdt-product-tools .fdt-link-arrow {
    font-size: 21px !important;
}

/* =========================================================
   DISEÑO PREPARADO — texto más legible
   ========================================================= */
.fdt-product-tools .fdt-design-slot {
    margin-top: 16px !important;
}
.fdt-product-tools .fdt-design-slot > .ft-design-choice {
    padding: 19px !important;
    border-radius: 12px !important;
}
.fdt-product-tools .fdt-design-slot .ft-design-choice-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
}
.fdt-product-tools .fdt-design-slot .ft-design-choice-help {
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
}
.fdt-product-tools .fdt-design-slot .ft-design-option {
    min-height: 74px !important;
    padding: 12px !important;
    font-size: 11px !important;
}
.fdt-product-tools .fdt-design-slot .ft-design-option small {
    font-size: 9.5px !important;
}

/* =========================================================
   COMPRA CON CONFIANZA — mucho más visible
   ========================================================= */
.fdt-product-tools .fdt-confidence {
    margin-top: 20px !important;
    padding: 20px 18px !important;
    border-radius: 13px !important;
}
.fdt-product-tools .fdt-confidence-title {
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: 1.05px !important;
    margin-bottom: 12px !important;
}
.fdt-product-tools .fdt-confidence-item {
    min-height: 46px !important;
    gap: 11px !important;
    padding: 8px 0 !important;
}
.fdt-product-tools .fdt-confidence-icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 50% !important;
}
.fdt-product-tools .fdt-confidence-icon svg {
    width: 19px !important;
    height: 19px !important;
    stroke-width: 1.8 !important;
}
.fdt-product-tools .fdt-confidence-item strong {
    font-size: 13px !important;
    line-height: 1.25 !important;
}
.fdt-product-tools .fdt-confidence-item small {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}
.fdt-product-tools .fdt-contact-button {
    min-height: 45px !important;
    margin-top: 13px !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

/* =========================================================
   TU IDEA, EN BUENAS MANOS — más grande
   ========================================================= */
.fdt-product-tools .fdt-tools-claim {
    margin-top: 18px !important;
    min-height: 118px !important;
    padding: 22px 20px !important;
}
.fdt-product-tools .fdt-tools-claim strong {
    font-size: 27px !important;
    line-height: .98 !important;
}
.fdt-product-tools .fdt-tools-claim span {
    margin-top: 11px !important;
    max-width: 225px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

/* MÓVIL — mantiene la misma jerarquía sin desbordar. */
@media (max-width: 767px) {
    body.single-product div.product > .summary .fdt-summary-main .price {
        font-size: 16px !important;
        margin-top: 3px !important;
        margin-bottom: 16px !important;
    }
    body.single-product div.product > .summary .fdt-summary-main .woocommerce-product-details__short-description,
    body.single-product div.product > .summary .fdt-summary-main .woocommerce-product-details__short-description p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        margin-bottom: 24px !important;
    }
    body.single-product .fdt-summary-main > .ft-configura-producto-title {
        font-size: 21px !important;
    }
    .fdt-product-tools .fdt-tools-header h2 {
        font-size: 25px !important;
    }
    .fdt-product-tools .fdt-link-copy strong {
        font-size: 14px !important;
    }
    .fdt-product-tools .fdt-link-copy small {
        font-size: 10.5px !important;
    }
    .fdt-product-tools .fdt-confidence {
        padding: 18px !important;
    }
    .fdt-product-tools .fdt-confidence-title {
        font-size: 13px !important;
    }
    .fdt-product-tools .fdt-confidence-item strong {
        font-size: 12.5px !important;
    }
    .fdt-product-tools .fdt-confidence-item small {
        font-size: 10px !important;
    }
}


/* =========================================================
   FACTORÍA DE TINTA v4.1.7 — PRECIO + JERARQUÍA FINAL
   Último bloque intencionadamente al final para ganar a cualquier
   regla anterior del plugin o de la ficha de producto.
   ========================================================= */

/* PRECIO "DESDE" — SIEMPRE ROJO, NUNCA VERDE. */
html body.single-product div.product > .summary .fdt-summary-main .price,
html body.single-product div.product > .summary .fdt-summary-main p.price,
html body.single-product div.product > .summary .fdt-summary-main .price *,
html body.single-product div.product > .summary .fdt-summary-main p.price *,
html body.single-product div.product > .summary .fdt-summary-main .price .amount,
html body.single-product div.product > .summary .fdt-summary-main .price .woocommerce-Price-amount,
html body.single-product div.product > .summary .fdt-summary-main .price .price-from {
    color: #e30613 !important;
}

/* También cubre el precio si algún elemento de la ficha queda fuera
   del wrapper creado por JS. */
html body.single-product div.product > .summary > .price,
html body.single-product div.product > .summary > p.price,
html body.single-product div.product > .summary > .price *,
html body.single-product div.product > .summary > p.price *,
html body.single-product div.product > .summary > .price .amount,
html body.single-product div.product > .summary > p.price .woocommerce-Price-amount {
    color: #e30613 !important;
}

/* Separación limpia: título → precio → Klarna. */
html body.single-product div.product > .summary .fdt-summary-main > h1.product_title,
html body.single-product div.product > .summary .fdt-summary-main > .product_title {
    margin-bottom: 18px !important;
}

html body.single-product div.product > .summary .fdt-summary-main .price,
html body.single-product div.product > .summary .fdt-summary-main p.price {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}

/* Klarna separado del precio y de la descripción. */
html body.single-product div.product > .summary .fdt-summary-main [id*="klarna"],
html body.single-product div.product > .summary .fdt-summary-main [class*="klarna"],
html body.single-product div.product > .summary .fdt-summary-main .klarna-placement,
html body.single-product div.product > .summary .fdt-summary-main .ft-klarna-spaced,
html body.single-product div.product > .summary [id*="klarna"],
html body.single-product div.product > .summary [class*="klarna"],
html body.single-product div.product > .summary .klarna-placement,
html body.single-product div.product > .summary .ft-klarna-spaced {
    display: block !important;
    clear: both !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
}

/* Descripción: más legible y claramente separada de Klarna. */
html body.single-product div.product > .summary .fdt-summary-main .woocommerce-product-details__short-description,
html body.single-product div.product > .summary .fdt-summary-main .woocommerce-product-details__short-description p {
    font-size: 16px !important;
    line-height: 1.72 !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
}

/* COMPRA CON CONFIANZA — más grande. */
html body.single-product .fdt-product-tools .fdt-confidence {
    padding: 21px 19px !important;
}
html body.single-product .fdt-product-tools .fdt-confidence-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
    margin-bottom: 13px !important;
}
html body.single-product .fdt-product-tools .fdt-confidence-item {
    min-height: 49px !important;
    gap: 12px !important;
    padding: 9px 0 !important;
}
html body.single-product .fdt-product-tools .fdt-confidence-icon {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
}
html body.single-product .fdt-product-tools .fdt-confidence-icon svg {
    width: 20px !important;
    height: 20px !important;
}
html body.single-product .fdt-product-tools .fdt-confidence-item strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
}
html body.single-product .fdt-product-tools .fdt-confidence-item small {
    font-size: 12px !important;
    line-height: 1.4 !important;
}
html body.single-product .fdt-product-tools .fdt-contact-button {
    min-height: 47px !important;
    margin-top: 14px !important;
    font-size: 13px !important;
}

/* TU IDEA, EN BUENAS MANOS — protagonista. */
html body.single-product .fdt-product-tools .fdt-tools-claim {
    min-height: 132px !important;
    padding: 24px 21px !important;
}
html body.single-product .fdt-product-tools .fdt-tools-claim strong {
    font-size: 31px !important;
    line-height: .98 !important;
    letter-spacing: -.6px !important;
}
html body.single-product .fdt-product-tools .fdt-tools-claim span {
    margin-top: 13px !important;
    max-width: 245px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* AVISO "PRECIO ACTUALIZADO". */
html body.single-product .fdt-price-updated {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 10px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: #2e7d32 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    transition: opacity .25s ease !important;
}
html body.single-product .fdt-price-updated.is-hiding {
    opacity: 0 !important;
}

@media (max-width: 767px) {
    html body.single-product div.product > .summary .fdt-summary-main .price,
    html body.single-product div.product > .summary .fdt-summary-main p.price {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    html body.single-product .fdt-product-tools .fdt-confidence-title {
        font-size: 14px !important;
    }
    html body.single-product .fdt-product-tools .fdt-confidence-item strong {
        font-size: 13px !important;
    }
    html body.single-product .fdt-product-tools .fdt-confidence-item small {
        font-size: 11px !important;
    }
    html body.single-product .fdt-product-tools .fdt-tools-claim strong {
        font-size: 27px !important;
    }
    html body.single-product .fdt-product-tools .fdt-tools-claim span {
        font-size: 12px !important;
    }

    html body.single-product .fdt-price-updated {
        margin-left: 7px !important;
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
   v4.1.11 — SOLO AJUSTE KLARNA
   Esta capa no modifica selector, subida de archivos, herramientas,
   tamaños generales ni estructura del configurador.
   ========================================================= */
html body.single-product div.product > .summary .fdt-klarna-only-fix,
html body.single-product div.product > .summary .fdt-klarna-only-fix * {
    box-sizing: border-box !important;
}

/* Separación visual del bloque Klarna sin mover ni reconstruir su contenido. */
html body.single-product div.product > .summary .fdt-klarna-only-fix {
    display: block !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    clear: both !important;
}

/* Si Stripe/Klarna monta un bloque interno, mantenemos el espacio sin tocar su tipografía. */
html body.single-product div.product > .summary .fdt-klarna-only-fix iframe,
html body.single-product div.product > .summary .fdt-klarna-only-fix > div {
    max-width: 100% !important;
}

/* v4.1.15 — OCULTAR SOLO EL PRECIO BASE “Desde … IVA excl.”
   No afecta al precio de las variaciones ni al resto del configurador. */
body.single-product div.product > .summary .fdt-summary-main > .price,
body.single-product div.product > .summary .fdt-summary-main > p.price,
body.single-product div.product > .summary > .price,
body.single-product div.product > .summary > p.price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}
