:root{
    --tm1-bg:#ffffff;
    --tm1-text:#111111;
    --tm1-soft:#667085;
    --tm1-line:#e5e7eb;
    --tm1-card:#ffffff;
    --tm1-dark:#080808;
    --tm1-accent:#d7b58d;
}

body.mtg-template-tm1{
    margin:0;
    background:var(--tm1-bg);
    color:var(--tm1-text);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body.mtg-template-tm1 *,
body.mtg-template-tm1 *::before,
body.mtg-template-tm1 *::after{
    box-sizing:border-box;
}

body.mtg-template-tm1 .tm1-home{
    width:100%;
    overflow:hidden;
    background:#fff;
}

body.mtg-template-tm1 .tm1-shell{
    width:90%;
    max-width:1600px;
    margin:0 auto;
}

body.mtg-template-tm1 .tm1-section{
    padding:86px 0;
}

body.mtg-template-tm1 h1,
body.mtg-template-tm1 h2,
body.mtg-template-tm1 h3,
body.mtg-template-tm1 p{
    margin-top:0;
}

body.mtg-template-tm1 h1,
body.mtg-template-tm1 h2,
body.mtg-template-tm1 h3{
    color:var(--tm1-text);
    letter-spacing:-.045em;
}

body.mtg-template-tm1 .tm1-kicker,
body.mtg-template-tm1 .tm1-heading__eyebrow{
    display:inline-flex;
    margin-bottom:18px;
    font-size:12px;
    line-height:1;
    font-weight:900;
    letter-spacing:.15em;
    text-transform:uppercase;
}

body.mtg-template-tm1 .tm1-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:56px;
    padding:0 30px;
    border:1px solid var(--tm1-dark);
    text-decoration:none;
    font-size:13px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
    transition:transform .2s ease,box-shadow .2s ease;
}

body.mtg-template-tm1 .tm1-btn:hover{
    transform:translateY(-2px);
}

body.mtg-template-tm1 .tm1-btn--dark{
    background:var(--tm1-dark);
    color:#fff;
}

body.mtg-template-tm1 .tm1-btn--light{
    background:#fff;
    color:var(--tm1-dark);
}

body.mtg-template-tm1 .tm1-heading{
    margin-bottom:42px;
}

body.mtg-template-tm1 .tm1-heading--center{
    max-width:850px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}

body.mtg-template-tm1 .tm1-heading h2{
    margin-bottom:14px;
    font-size:clamp(36px,5vw,70px);
    line-height:1;
}

body.mtg-template-tm1 .tm1-heading p{
    margin-bottom:0;
    color:var(--tm1-soft);
    font-size:18px;
    line-height:1.75;
}

body.mtg-template-tm1 .tm1-heading__line{
    display:block;
    width:76px;
    height:2px;
    margin-bottom:22px;
    background:var(--tm1-dark);
}


/* HERO */

body.mtg-template-tm1 .tm1-hero{
    padding:34px 0 64px;
}

body.mtg-template-tm1 .tm1-hero__grid{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:center;
    gap:54px;
    min-height:660px;
    padding:58px;
    border-radius:34px;
    background:#f4f1ed;
}

body.mtg-template-tm1 .tm1-hero__copy{
    max-width:650px;
}

body.mtg-template-tm1 .tm1-hero__title{
    margin-bottom:24px;
    font-size:clamp(54px,6vw,96px);
    line-height:.94;
    font-weight:900;
}

body.mtg-template-tm1 .tm1-hero__text{
    max-width:600px;
    margin-bottom:0;
    color:#4b5563;
    font-size:19px;
    line-height:1.75;
}

body.mtg-template-tm1 .tm1-hero__actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:30px;
}

body.mtg-template-tm1 .tm1-hero__features{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:38px;
    padding-top:28px;
    border-top:1px solid rgba(17,17,17,.12);
}

body.mtg-template-tm1 .tm1-hero__feature strong,
body.mtg-template-tm1 .tm1-hero__feature span{
    display:block;
}

body.mtg-template-tm1 .tm1-hero__feature strong{
    margin-bottom:5px;
    font-size:13px;
    text-transform:uppercase;
}

body.mtg-template-tm1 .tm1-hero__feature span{
    color:var(--tm1-soft);
    font-size:13px;
    line-height:1.45;
}

body.mtg-template-tm1 .tm1-hero__media{
    min-width:0;
}

body.mtg-template-tm1 .tm1-hero__media img{
    display:block;
    width:100%;
    max-height:650px;
    object-fit:cover;
    border-radius:26px;
}

body.mtg-template-tm1 .tm1-hero__placeholder{
    min-height:590px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:26px;
    background:linear-gradient(135deg,#ded6cc,#f8f5f1);
}

body.mtg-template-tm1 .tm1-hero__placeholder span{
    font-size:76px;
    font-weight:950;
}

body.mtg-template-tm1 .tm1-hero__placeholder strong{
    font-size:22px;
    text-transform:uppercase;
    letter-spacing:.18em;
}


/* CATEGORÍAS */

body.mtg-template-tm1 .tm1-categories__grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

body.mtg-template-tm1 .tm1-category-card{
    position:relative;
    min-height:500px;
    display:block;
    overflow:hidden;
    background:#e5e7eb;
    color:#fff;
    text-decoration:none;
}

body.mtg-template-tm1 .tm1-category-card img,
body.mtg-template-tm1 .tm1-category-card__placeholder{
    width:100%;
    height:100%;
    min-height:500px;
}

body.mtg-template-tm1 .tm1-category-card img{
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

body.mtg-template-tm1 .tm1-category-card:hover img{
    transform:scale(1.035);
}

body.mtg-template-tm1 .tm1-category-card__placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(145deg,#e5e1dc,#c8beb3);
    color:#111;
    font-size:72px;
    font-weight:900;
}

body.mtg-template-tm1 .tm1-category-card__overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.70) 100%);
}

body.mtg-template-tm1 .tm1-category-card strong{
    position:absolute;
    left:24px;
    right:24px;
    bottom:24px;
    z-index:2;
    font-size:25px;
}


/* PRODUCTOS */

body.mtg-template-tm1 .tm1-featured{
    background:#fafafa;
}

body.mtg-template-tm1 .tm1-products-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

body.mtg-template-tm1 .tm1-product-card{
    min-width:0;
    overflow:hidden;
    border:1px solid #ececec;
    background:#fff;
    transition:transform .2s ease,box-shadow .2s ease;
}

body.mtg-template-tm1 .tm1-product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 50px rgba(17,17,17,.08);
}

body.mtg-template-tm1 .tm1-product-card__link{
    display:block;
    color:inherit;
    text-decoration:none;
}

body.mtg-template-tm1 .tm1-product-card__media{
    aspect-ratio:1/1.15;
    padding:22px;
    background:#f5f5f5;
}

body.mtg-template-tm1 .tm1-product-card__media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

body.mtg-template-tm1 .tm1-product-card__placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ebe7e2;
    font-size:68px;
    font-weight:900;
}

body.mtg-template-tm1 .tm1-product-card__body{
    padding:20px;
    text-align:center;
}

body.mtg-template-tm1 .tm1-product-card__eyebrow{
    display:block;
    margin-bottom:9px;
    color:#98a2b3;
    font-size:10px;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
}

body.mtg-template-tm1 .tm1-product-card__title{
    min-height:52px;
    margin-bottom:14px;
    font-size:21px;
    line-height:1.25;
}

body.mtg-template-tm1 .tm1-product-card__price{
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:16px;
}

body.mtg-template-tm1 .tm1-product-card__price strong{
    font-size:23px;
}

body.mtg-template-tm1 .tm1-product-card__price span{
    color:#98a2b3;
    text-decoration:line-through;
}

body.mtg-template-tm1 .tm1-product-card__button{
    display:flex;
    min-height:48px;
    align-items:center;
    justify-content:center;
    background:#111;
    color:#fff;
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

body.mtg-template-tm1 .tm1-empty{
    padding:50px;
    border:1px dashed #d0d5dd;
    text-align:center;
}


/* BANNER */

body.mtg-template-tm1 .tm1-banner__grid{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:center;
    gap:50px;
    padding:54px;
    border-radius:30px;
    background:#111;
    color:#fff;
}

body.mtg-template-tm1 .tm1-banner__copy h2{
    margin-bottom:18px;
    color:#fff;
    font-size:clamp(40px,5vw,76px);
    line-height:.98;
}

body.mtg-template-tm1 .tm1-banner__copy p{
    max-width:630px;
    margin-bottom:28px;
    color:rgba(255,255,255,.70);
    font-size:18px;
    line-height:1.7;
}

body.mtg-template-tm1 .tm1-banner__copy .tm1-kicker{
    color:var(--tm1-accent);
}

body.mtg-template-tm1 .tm1-banner__copy .tm1-btn{
    border-color:#fff;
    background:#fff;
    color:#111;
}

body.mtg-template-tm1 .tm1-banner__media img,
body.mtg-template-tm1 .tm1-banner__placeholder{
    display:block;
    width:100%;
    min-height:420px;
    border-radius:22px;
}

body.mtg-template-tm1 .tm1-banner__media img{
    max-height:540px;
    object-fit:cover;
}

body.mtg-template-tm1 .tm1-banner__placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#413b35,#d7b58d);
    font-size:28px;
    font-weight:900;
    text-transform:uppercase;
}


/* BENEFICIOS */

body.mtg-template-tm1 .tm1-benefits{
    padding:52px 0;
    background:#111;
    color:#fff;
}

body.mtg-template-tm1 .tm1-benefits__grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}

body.mtg-template-tm1 .tm1-benefit{
    display:flex;
    align-items:center;
    gap:16px;
}

body.mtg-template-tm1 .tm1-benefit__icon{
    flex:0 0 54px;
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.18);
    border-radius:50%;
    color:var(--tm1-accent);
    font-weight:900;
}

body.mtg-template-tm1 .tm1-benefit h3{
    margin-bottom:5px;
    color:#fff;
    font-size:17px;
    letter-spacing:-.02em;
}

body.mtg-template-tm1 .tm1-benefit p{
    margin-bottom:0;
    color:rgba(255,255,255,.65);
    font-size:13px;
    line-height:1.5;
}


/* MARCAS */

body.mtg-template-tm1 .tm1-brands__grid{
    display:grid;
    grid-template-columns:repeat(var(--tm1-brand-columns,4),minmax(0,1fr));
    gap:16px;
}

body.mtg-template-tm1 .tm1-brand-card{
    min-height:150px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:20px;
    border:1px solid #ececec;
    background:#fff;
    color:#111;
    text-align:center;
    text-decoration:none;
}

body.mtg-template-tm1 .tm1-brand-card img{
    display:block;
    width:100%;
    max-width:160px;
    height:70px;
    object-fit:contain;
}

body.mtg-template-tm1 .tm1-brand-card__initial{
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#111;
    color:#fff;
    font-size:27px;
    font-weight:900;
}


/* TESTIMONIOS */

body.mtg-template-tm1 .tm1-testimonials{
    background:#fafafa;
}

body.mtg-template-tm1 .tm1-testimonials__grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
}

body.mtg-template-tm1 .tm1-testimonial{
    padding:28px;
    border:1px solid #ececec;
    background:#fff;
}

body.mtg-template-tm1 .tm1-testimonial__top{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
}

body.mtg-template-tm1 .tm1-testimonial__top img,
body.mtg-template-tm1 .tm1-testimonial__avatar{
    width:58px;
    height:58px;
    flex:0 0 58px;
    border-radius:50%;
}

body.mtg-template-tm1 .tm1-testimonial__top img{
    object-fit:cover;
}

body.mtg-template-tm1 .tm1-testimonial__avatar{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111;
    color:#fff;
    font-size:22px;
    font-weight:900;
}

body.mtg-template-tm1 .tm1-testimonial__top strong,
body.mtg-template-tm1 .tm1-stars{
    display:block;
}

body.mtg-template-tm1 .tm1-stars{
    margin-top:5px;
    color:#d39b25;
    letter-spacing:.08em;
}

body.mtg-template-tm1 .tm1-testimonial p{
    margin-bottom:0;
    color:#475467;
    font-size:15px;
    line-height:1.75;
}


/* GALERÍA */

body.mtg-template-tm1 .tm1-gallery__grid{
    display:grid;
    grid-template-columns:repeat(var(--tm1-gallery-columns,3),minmax(0,1fr));
    gap:16px;
}

body.mtg-template-tm1 .tm1-gallery__item{
    display:block;
    overflow:hidden;
    background:#f2f2f2;
}

body.mtg-template-tm1 .tm1-gallery__item img{
    display:block;
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    transition:transform .3s ease;
}

body.mtg-template-tm1 .tm1-gallery__item:hover img{
    transform:scale(1.04);
}


/* NEWSLETTER */

body.mtg-template-tm1 .tm1-newsletter{
    padding:76px 0;
    background:#111;
    color:#fff;
}

body.mtg-template-tm1 .tm1-newsletter__grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,.8fr);
    align-items:center;
    gap:60px;
}

body.mtg-template-tm1 .tm1-newsletter h2{
    margin-bottom:14px;
    color:#fff;
    font-size:clamp(38px,4vw,66px);
    line-height:1;
}

body.mtg-template-tm1 .tm1-newsletter p{
    max-width:660px;
    margin-bottom:0;
    color:rgba(255,255,255,.68);
    font-size:17px;
    line-height:1.7;
}

body.mtg-template-tm1 .tm1-kicker--light{
    color:var(--tm1-accent);
}

body.mtg-template-tm1 .tm1-newsletter__form{
    display:flex;
}

body.mtg-template-tm1 .tm1-newsletter__form input{
    flex:1;
    min-width:0;
    min-height:58px;
    padding:0 18px;
    border:1px solid rgba(255,255,255,.22);
    background:#222;
    color:#fff;
}

body.mtg-template-tm1 .tm1-newsletter__form button{
    min-width:150px;
    min-height:58px;
    border:0;
    background:var(--tm1-accent);
    color:#111;
    font-weight:900;
}


/* CTA */

body.mtg-template-tm1 .tm1-cta__grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
    align-items:center;
    gap:50px;
    padding:58px;
    border:1px solid #e5e7eb;
    background:#f8f7f5;
}

body.mtg-template-tm1 .tm1-cta h2{
    margin-bottom:16px;
    font-size:clamp(38px,5vw,74px);
    line-height:1;
}

body.mtg-template-tm1 .tm1-cta p{
    max-width:760px;
    margin-bottom:0;
    color:var(--tm1-soft);
    font-size:18px;
    line-height:1.75;
}

body.mtg-template-tm1 .tm1-cta__actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:14px;
}


/* FOOTER */

body.mtg-template-tm1 .tm1-footer{
    background:#080808;
    color:#fff;
}

body.mtg-template-tm1 .tm1-footer__grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
    gap:40px;
    padding-top:62px;
    padding-bottom:62px;
}

body.mtg-template-tm1 .tm1-footer__brand{
    display:block;
    margin-bottom:14px;
    color:#fff;
    font-size:28px;
}

body.mtg-template-tm1 .tm1-footer p{
    max-width:680px;
    margin-bottom:0;
    color:rgba(255,255,255,.64);
    line-height:1.75;
}

body.mtg-template-tm1 .tm1-footer__socials{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    align-content:flex-start;
    gap:10px;
}

body.mtg-template-tm1 .tm1-footer__socials a{
    padding:11px 16px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    color:#fff;
    text-decoration:none;
}

body.mtg-template-tm1 .tm1-footer__bottom{
    padding:20px 0;
    border-top:1px solid rgba(255,255,255,.12);
    color:rgba(255,255,255,.55);
    font-size:13px;
}


/* TABLET */

@media(max-width:1100px){
    body.mtg-template-tm1 .tm1-hero__grid,
    body.mtg-template-tm1 .tm1-banner__grid{
        gap:30px;
        padding:38px;
    }

    body.mtg-template-tm1 .tm1-categories__grid,
    body.mtg-template-tm1 .tm1-products-grid,
    body.mtg-template-tm1 .tm1-benefits__grid,
    body.mtg-template-tm1 .tm1-testimonials__grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    body.mtg-template-tm1 .tm1-brands__grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    body.mtg-template-tm1 .tm1-gallery__grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}


/* MÓVIL */

@media(max-width:760px){
    body.mtg-template-tm1 .tm1-shell{
        width:94%;
    }

    body.mtg-template-tm1 .tm1-section{
        padding:58px 0;
    }

    body.mtg-template-tm1 .tm1-hero{
        padding:18px 0 40px;
    }

    body.mtg-template-tm1 .tm1-hero__grid,
    body.mtg-template-tm1 .tm1-banner__grid,
    body.mtg-template-tm1 .tm1-newsletter__grid,
    body.mtg-template-tm1 .tm1-cta__grid,
    body.mtg-template-tm1 .tm1-footer__grid{
        grid-template-columns:1fr;
    }

    body.mtg-template-tm1 .tm1-hero__grid{
        min-height:0;
        padding:22px;
        border-radius:24px;
    }

    body.mtg-template-tm1 .tm1-hero__copy{
        order:2;
    }

    body.mtg-template-tm1 .tm1-hero__media{
        order:1;
    }

    body.mtg-template-tm1 .tm1-hero__media img,
    body.mtg-template-tm1 .tm1-hero__placeholder{
        max-height:380px;
        min-height:280px;
    }

    body.mtg-template-tm1 .tm1-hero__title{
        font-size:clamp(38px,12vw,58px);
    }

    body.mtg-template-tm1 .tm1-hero__text{
        font-size:16px;
    }

    body.mtg-template-tm1 .tm1-hero__actions{
        display:grid;
        grid-template-columns:1fr;
    }

    body.mtg-template-tm1 .tm1-btn{
        width:100%;
    }

    body.mtg-template-tm1 .tm1-hero__features{
        grid-template-columns:1fr;
        gap:12px;
    }

    /*
     * Requisito general:
     * categorías y productos 2 × 2 en móvil.
     */
    body.mtg-template-tm1 .tm1-categories__grid,
    body.mtg-template-tm1 .tm1-products-grid,
    body.mtg-template-tm1 .tm1-brands__grid,
    body.mtg-template-tm1 .tm1-testimonials__grid,
    body.mtg-template-tm1 .tm1-gallery__grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px;
    }

    body.mtg-template-tm1 .tm1-category-card,
    body.mtg-template-tm1 .tm1-category-card img,
    body.mtg-template-tm1 .tm1-category-card__placeholder{
        min-height:250px;
    }

    body.mtg-template-tm1 .tm1-category-card strong{
        left:14px;
        right:14px;
        bottom:14px;
        font-size:18px;
    }

    body.mtg-template-tm1 .tm1-product-card__media{
        padding:10px;
    }

    body.mtg-template-tm1 .tm1-product-card__body{
        padding:13px 9px;
    }

    body.mtg-template-tm1 .tm1-product-card__title{
        min-height:42px;
        font-size:16px;
    }

    body.mtg-template-tm1 .tm1-product-card__price strong{
        font-size:18px;
    }

    body.mtg-template-tm1 .tm1-product-card__button{
        min-height:42px;
        font-size:10px;
    }

    body.mtg-template-tm1 .tm1-banner__grid,
    body.mtg-template-tm1 .tm1-cta__grid{
        padding:26px 20px;
    }

    body.mtg-template-tm1 .tm1-benefits__grid{
        grid-template-columns:1fr;
    }

    body.mtg-template-tm1 .tm1-newsletter__form{
        flex-direction:column;
        gap:10px;
    }

    body.mtg-template-tm1 .tm1-newsletter__form button{
        width:100%;
    }

    body.mtg-template-tm1 .tm1-cta__actions,
    body.mtg-template-tm1 .tm1-footer__socials{
        justify-content:flex-start;
    }
}

@media(max-width:390px){
    body.mtg-template-tm1 .tm1-category-card,
    body.mtg-template-tm1 .tm1-category-card img,
    body.mtg-template-tm1 .tm1-category-card__placeholder{
        min-height:220px;
    }

    body.mtg-template-tm1 .tm1-product-card__title{
        font-size:15px;
    }
}
