/*
 * STORE_PRODUCT_BLOCKS_SHOPIFY_V1
 * Layout editorial tipo Shopify para los bloques configurables del producto.
 * No modifica carrito, precio, stock ni checkout.
 */

.shopify-product-content,
.shopify-product-content *{
    box-sizing:border-box;
}

.shopify-product-content{
    width:min(1380px,calc(100% - 44px));
    margin:38px auto 72px;
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:28px;
    align-items:start;
}

/* Descripción y ficha técnica que ya existen en producto.php */
.shopify-product-content > .single-description{
    grid-column:1 / -1;
    width:100%;
    margin:0 !important;
    padding:44px clamp(24px,5vw,72px) !important;
    border:0 !important;
    border-radius:10px !important;
    background:#faf7f5 !important;
    box-shadow:none !important;
}

.shopify-product-content > .single-description[data-product-technical-specs]{
    background:#ffffff !important;
    border:1px solid #ece8e5 !important;
}

.shopify-product-content > .single-description .single-description-kicker{
    display:block;
    margin-bottom:10px;
    color:#9a5d48;
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.shopify-product-content > .single-description h2{
    margin:0;
    color:#1f2937;
    font-size:clamp(28px,3.2vw,46px);
    line-height:1.08;
    letter-spacing:-.03em;
}

.shopify-product-content > .single-description .single-description-text{
    max-width:780px;
    margin:14px auto 0;
    color:#5f6368;
    font-size:15px;
    line-height:1.75;
    text-align:center;
}

.shopify-product-content > .single-description:not([data-product-technical-specs]){
    text-align:center;
}

/* El wrapper no debe limitar a los bloques individuales. */
.shopify-product-content .product-editorial{
    display:contents;
}

/* Cada módulo se comporta como una sección real de landing. */
.shopify-product-content .product-editorial-block{
    --shopify-block-inner:1220px;
    grid-column:1 / -1;
    width:100%;
    min-width:0;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden;
    border:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:var(--block-radius,10px) !important;
    background:var(--block-bg,#ffffff) !important;
    color:var(--block-text,#1f2937) !important;
    box-shadow:none !important;
}

.shopify-product-content .product-editorial-block[data-block-width="standard"]{
    --shopify-block-inner:980px;
}

.shopify-product-content .product-editorial-block[data-block-width="wide"]{
    --shopify-block-inner:1220px;
}

.shopify-product-content .product-editorial-block[data-block-width="full"]{
    --shopify-block-inner:1340px;
}

.shopify-product-content .product-editorial-inner{
    width:min(
        var(--shopify-block-inner),
        calc(100% - 48px)
    ) !important;
    max-width:none !important;
    margin:0 auto !important;
    padding:clamp(38px,5vw,72px) 0 !important;
}

.shopify-product-content .product-editorial-block h2{
    margin:0;
    color:var(--block-text,#1f2937) !important;
    font-size:clamp(30px,3.6vw,50px) !important;
    line-height:1.05 !important;
    letter-spacing:-.035em !important;
}

.shopify-product-content .product-editorial-block h3{
    color:var(--block-text,#1f2937) !important;
}

.shopify-product-content .product-editorial-block p,
.shopify-product-content .product-editorial-block li{
    color:var(--block-muted,#5f6368) !important;
    font-size:15px !important;
    line-height:1.7 !important;
}

.shopify-product-content .product-story-kicker,
.shopify-product-content .product-before-after-kicker,
.shopify-product-content .product-steps-kicker,
.shopify-product-content .product-testimonials-kicker,
.shopify-product-content .product-warranty-kicker,
.shopify-product-content .product-benefits-heading > span,
.shopify-product-content .product-faq-head > span,
.shopify-product-content .product-final-cta > span{
    display:block;
    margin-bottom:10px;
    color:var(--block-accent,#9a5d48) !important;
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

/* ==========================================================
   IMAGEN + TEXTO
   ========================================================== */

.shopify-product-content .product-story,
.shopify-product-content .product-story.reverse{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:clamp(28px,5vw,72px) !important;
    align-items:center;
    width:100%;
}

.shopify-product-content .product-story-media{
    order:0;
    width:100%;
    min-width:0;
    aspect-ratio:1 / 1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:0 !important;
    border-radius:calc(var(--block-radius,10px) - 2px);
    background:var(--block-card,#ffffff) !important;
    box-shadow:none !important;
}

.shopify-product-content .product-story-media img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
    border-radius:0 !important;
}

.shopify-product-content .product-story-content{
    order:1;
    width:100% !important;
    min-width:0;
    max-width:560px !important;
}

.shopify-product-content .product-story-content p{
    margin:16px 0 0 !important;
}

.shopify-product-content .product-story.reverse .product-story-media{
    order:2;
}

.shopify-product-content .product-story.reverse .product-story-content{
    order:1;
    justify-self:end;
}

.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-story{
    grid-template-columns:1fr !important;
    text-align:center;
}

.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-story-media{
    max-width:760px;
    margin:0 auto;
}

.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-story-content{
    max-width:760px !important;
    margin:0 auto;
    justify-self:center !important;
}

/* ==========================================================
   BENEFICIOS
   ========================================================== */

.shopify-product-content .product-benefits-heading{
    width:min(760px,100%);
    margin:0 auto 32px !important;
    text-align:center !important;
}

.shopify-product-content .product-benefits-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
    width:100%;
}

.shopify-product-content .product-benefit{
    min-width:0;
    min-height:0 !important;
    padding:24px !important;
    border:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
    background:var(--block-card,#ffffff) !important;
    box-shadow:none !important;
}

.shopify-product-content .product-benefit-icon{
    display:grid;
    place-items:center;
    width:40px !important;
    height:40px !important;
    margin:0 0 16px !important;
    border-radius:50% !important;
    background:color-mix(
        in srgb,
        var(--block-accent,#9a5d48) 12%,
        transparent
    ) !important;
    color:var(--block-accent,#9a5d48) !important;
    font-size:18px !important;
}

.shopify-product-content .product-benefit h3{
    margin:0;
    font-size:17px !important;
}

.shopify-product-content .product-benefit p{
    margin:8px 0 0 !important;
    font-size:13px !important;
}

/* ==========================================================
   ESTADISTICAS
   ========================================================== */

.shopify-product-content .product-stats-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
}

.shopify-product-content .product-stat{
    min-width:0;
    padding:28px 16px !important;
    text-align:center;
    border:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
    background:var(--block-card,#ffffff) !important;
}

.shopify-product-content .product-stat strong{
    display:block;
    color:var(--block-accent,#9a5d48) !important;
    font-size:clamp(30px,4vw,50px) !important;
    line-height:1 !important;
}

.shopify-product-content .product-stat span{
    display:block;
    margin-top:8px !important;
    color:var(--block-muted,#5f6368) !important;
    font-size:12px;
}

/* ==========================================================
   ANTES / DESPUES
   ========================================================== */

.shopify-product-content .product-before-after-head{
    width:min(760px,100%);
    margin:0 auto 30px !important;
    text-align:center !important;
}

.shopify-product-content .product-before-after-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px !important;
}

.shopify-product-content .product-before-after-card{
    position:relative;
    width:100%;
    min-width:0;
    aspect-ratio:4 / 5;
    overflow:hidden;
    border:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
    background:var(--block-card,#fff) !important;
}

.shopify-product-content .product-before-after-card img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}

/* ==========================================================
   PASOS
   ========================================================== */

.shopify-product-content .product-steps-head{
    width:min(760px,100%);
    margin:0 auto 30px !important;
    text-align:center;
}

.shopify-product-content .product-steps-list{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
    border:0 !important;
}

.shopify-product-content .product-step{
    display:block !important;
    min-width:0;
    min-height:0 !important;
    padding:24px !important;
    border:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
    background:var(--block-card,#fff) !important;
}

.shopify-product-content .product-step-number{
    display:grid;
    place-items:center;
    width:38px !important;
    height:38px !important;
    margin:0 0 16px;
    border-radius:50%;
    background:var(--block-accent,#9a5d48) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:900;
}

/* ==========================================================
   TESTIMONIOS
   ========================================================== */

.shopify-product-content .product-testimonials-head{
    width:min(760px,100%);
    margin:0 auto 30px !important;
    text-align:center !important;
}

.shopify-product-content .product-testimonials-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
}

.shopify-product-content .product-testimonial-card{
    min-width:0;
    min-height:0 !important;
    padding:26px !important;
    border:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
    background:var(--block-card,#fff) !important;
    box-shadow:none !important;
}

.shopify-product-content .product-testimonial-quote{
    color:var(--block-accent,#9a5d48) !important;
    font-size:40px !important;
}

/* ==========================================================
   GARANTIA
   ========================================================== */

.shopify-product-content .product-warranty-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(320px,.85fr) !important;
    gap:clamp(28px,5vw,72px) !important;
    align-items:center;
    width:100%;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.shopify-product-content .product-warranty-media{
    width:100%;
    aspect-ratio:1 / 1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:0 !important;
    border-radius:calc(var(--block-radius,10px) - 2px);
    background:var(--block-card,#fff);
}

.shopify-product-content .product-warranty-media img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}

.shopify-product-content .product-warranty-badge{
    display:inline-flex;
    margin-top:18px;
    padding:10px 14px;
    border-radius:999px;
    background:var(--block-accent,#9a5d48) !important;
    color:#fff !important;
    font-size:12px;
}

/* ==========================================================
   FAQ
   ========================================================== */

.shopify-product-content .product-faq{
    width:min(980px,100%) !important;
    margin:0 auto !important;
    padding:0 !important;
}

.shopify-product-content .product-faq-head{
    margin:0 0 24px !important;
    text-align:center;
}

.shopify-product-content .product-faq-item{
    border:0 !important;
    border-top:1px solid var(--block-border,#e7e5e4) !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.shopify-product-content .product-faq-item:last-child{
    border-bottom:1px solid var(--block-border,#e7e5e4) !important;
}

.shopify-product-content .product-faq-item summary{
    padding:18px 36px 18px 0 !important;
}

/* ==========================================================
   CTA FINAL
   ========================================================== */

.shopify-product-content .product-final-cta .product-editorial-inner{
    text-align:center;
}

.shopify-product-content .product-final-cta p{
    width:min(680px,100%);
    margin:14px auto 0 !important;
}

.shopify-product-content .product-final-cta a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    margin-top:22px !important;
    padding:0 28px;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
    background:var(--block-button-bg,#111) !important;
    color:var(--block-button-text,#fff) !important;
    text-decoration:none;
    font-weight:850;
}

/* ==========================================================
   VIDEO
   ========================================================== */

.shopify-product-content .product-video{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(24px,4vw,48px) !important;
    background:var(--block-bg,#000) !important;
}

.shopify-product-content .product-video video{
    display:block !important;
    width:min(980px,100%) !important;
    height:auto !important;
    max-height:720px;
    aspect-ratio:16 / 9;
    object-fit:contain !important;
    background:#000;
    border-radius:calc(var(--block-radius,10px) - 2px) !important;
}

/* ==========================================================
   COMPOSICIONES DEL CONFIGURADOR
   ========================================================== */

.shopify-product-content
.product-editorial-block[data-block-layout="cards"]
.product-benefits-grid,
.shopify-product-content
.product-editorial-block[data-block-layout="cards"]
.product-testimonials-grid,
.shopify-product-content
.product-editorial-block[data-block-layout="cards"]
.product-steps-list{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-editorial-inner{
    text-align:center;
}

.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-benefits-heading,
.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-steps-head,
.shopify-product-content
.product-editorial-block[data-block-layout="centered"]
.product-testimonials-head{
    text-align:center !important;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media(max-width:980px){

    .shopify-product-content{
        width:min(760px,calc(100% - 32px));
        grid-template-columns:1fr;
        gap:22px;
        margin-top:28px;
    }

    .shopify-product-content > .single-description,
    .shopify-product-content .product-editorial-block{
        grid-column:1;
    }

    .shopify-product-content .product-editorial-inner{
        width:calc(100% - 36px) !important;
        padding:38px 0 !important;
    }

    .shopify-product-content .product-story,
    .shopify-product-content .product-story.reverse{
        grid-template-columns:1fr !important;
        gap:24px !important;
    }

    .shopify-product-content .product-story-media,
    .shopify-product-content .product-story.reverse .product-story-media{
        order:0;
    }

    .shopify-product-content .product-story-content,
    .shopify-product-content .product-story.reverse .product-story-content{
        order:1;
        max-width:none !important;
        justify-self:stretch !important;
    }

    .shopify-product-content .product-benefits-grid,
    .shopify-product-content .product-steps-list,
    .shopify-product-content .product-testimonials-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .shopify-product-content .product-stats-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .shopify-product-content .product-warranty-card{
        grid-template-columns:1fr !important;
    }
}

/* ==========================================================
   MOVIL
   ========================================================== */

@media(max-width:640px){

    .shopify-product-content{
        width:calc(100% - 22px);
        margin:22px auto 46px;
        gap:16px;
    }

    .shopify-product-content > .single-description{
        padding:28px 18px !important;
        border-radius:8px !important;
    }

    .shopify-product-content > .single-description h2,
    .shopify-product-content .product-editorial-block h2{
        font-size:clamp(25px,8vw,34px) !important;
    }

    .shopify-product-content > .single-description .single-description-text{
        font-size:14px;
        text-align:left;
    }

    .shopify-product-content > .single-description:not([data-product-technical-specs]){
        text-align:left;
    }

    .shopify-product-content .product-editorial-block{
        border-radius:8px !important;
    }

    .shopify-product-content .product-editorial-inner{
        width:calc(100% - 30px) !important;
        padding:30px 0 !important;
    }

    .shopify-product-content .product-benefits-grid,
    .shopify-product-content .product-steps-list,
    .shopify-product-content .product-testimonials-grid{
        grid-template-columns:1fr !important;
        gap:10px !important;
    }

    .shopify-product-content .product-benefit,
    .shopify-product-content .product-step,
    .shopify-product-content .product-testimonial-card{
        padding:18px !important;
    }

    .shopify-product-content .product-before-after-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }

    .shopify-product-content .product-stats-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }

    .shopify-product-content .product-warranty-card{
        gap:22px !important;
    }

    .shopify-product-content .product-video{
        padding:14px !important;
    }

    .shopify-product-content .product-video video{
        aspect-ratio:auto;
        max-height:70vh;
    }

    /* Ficha técnica: evita columnas imposibles en celulares estrechos. */
    .shopify-product-content
    .single-description[data-product-technical-specs]
    dl{
        grid-template-columns:minmax(105px,.8fr) minmax(0,1.4fr) !important;
        font-size:12px;
    }

    .shopify-product-content
    .single-description[data-product-technical-specs]
    dt{
        padding:10px 8px 10px 0 !important;
    }

    .shopify-product-content
    .single-description[data-product-technical-specs]
    dd{
        padding:10px 0 10px 8px !important;
    }
}

/* ==========================================================
   STORE_PRODUCT_SHOPIFY_SAFETY_V2
   Mantiene intacta la cabecera de producto:
   galeria izquierda + buybox derecha + similares debajo.
   También evita SVG comerciales gigantes si la hoja canónica
   anterior del servidor estaba desactualizada.
   ========================================================== */

@media (min-width:821px){
    .single-product{
        grid-template-columns:
            minmax(0,.95fr)
            minmax(420px,1.05fr) !important;
        grid-template-rows:auto auto;
        column-gap:14px !important;
        row-gap:14px !important;
        align-items:start;
    }

    .single-gallery{
        grid-column:1 !important;
        grid-row:1 !important;
        position:relative !important;
        top:auto !important;
        max-height:none !important;
        align-self:start;
    }

    .single-right-rail{
        grid-column:2 !important;
        grid-row:1 / span 2 !important;
        width:100% !important;
        max-width:none !important;
        min-width:0;
        justify-self:stretch !important;
        margin-left:0 !important;
        transform:none !important;
    }

    .single-similar-products{
        grid-column:1 !important;
        grid-row:2 !important;
        width:100%;
        min-width:0;
        align-self:start;
    }
}

@media (max-width:820px){
    .single-product{
        grid-template-columns:1fr !important;
        grid-template-rows:auto !important;
    }

    .single-gallery{
        grid-column:1 !important;
        grid-row:1 !important;
    }

    .single-right-rail{
        grid-column:1 !important;
        grid-row:2 !important;
        width:100% !important;
        max-width:none !important;
    }

    .single-similar-products{
        grid-column:1 !important;
        grid-row:3 !important;
    }
}

.single-commercial-benefits{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:14px 0 16px;
}

.single-commercial-benefit{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    padding:10px 11px;
    border:1px solid #dcefe3;
    border-radius:10px;
    background:#f2fbf5;
    color:#166534;
}

.single-commercial-benefit-icon{
    display:grid;
    place-items:center;
    flex:0 0 28px;
    width:28px;
    height:28px;
    color:#16a34a;
}

.single-commercial-benefit-icon svg{
    display:block;
    width:22px !important;
    height:22px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.single-commercial-benefit strong{
    min-width:0;
    font-size:11px;
    font-weight:800;
    line-height:1.35;
}

@media(max-width:520px){
    .single-commercial-benefits{
        grid-template-columns:1fr;
    }
}
