:root{
  --tm1-bg:#ffffff;
  --tm1-text:#111111;
  --tm1-soft:#667085;
  --tm1-line:#e5e7eb;
  --tm1-card:#ffffff;
  --tm1-black:#000000;
}

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

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

body.mtg-template-tm1 .site,
body.mtg-template-tm1 .site-main,
body.mtg-template-tm1 .content-area,
body.mtg-template-tm1 .site-content{
  background:#ffffff !important;
}

body.mtg-template-tm1 .site-header,
body.mtg-template-tm1 header.site-header,
body.mtg-template-tm1 .mtg-header,
body.mtg-template-tm1 .mtg-home-header{
  background:#ffffff !important;
  border-bottom:1px solid #f0f0f0;
  box-shadow:none !important;
}

body.mtg-template-tm1 .site-header a,
body.mtg-template-tm1 .mtg-header a,
body.mtg-template-tm1 .mtg-home-header a{
  color:#111111 !important;
}

body.mtg-template-tm1 .tm1-shell{
  width:min(1180px,92%);
  margin:0 auto;
}

body.mtg-template-tm1 .tm1-sec{
  padding:72px 0;
}

body.mtg-template-tm1 .tm1-head--center{
  text-align:center;
  max-width:860px;
  margin:0 auto 34px;
}
body.mtg-template-tm1 .tm1-head--center h2{
  font-size:58px;
  line-height:1.02;
  margin:0 0 12px;
}
body.mtg-template-tm1 .tm1-head--center p{
  font-size:18px;
  line-height:1.8;
  color:var(--tm1-soft);
  margin:0;
}
body.mtg-template-tm1 .tm1-head__mini-line{
  width:72px;
  height:1px;
  background:#777;
  margin:14px auto 18px;
}

body.mtg-template-tm1 .tm1-head--split{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin:0 0 34px;
}
body.mtg-template-tm1 .tm1-head--split h2{
  font-size:74px;
  line-height:1.02;
  margin:0 0 12px;
}
body.mtg-template-tm1 .tm1-head--split p{
  max-width:620px;
  font-size:18px;
  line-height:1.8;
  color:var(--tm1-soft);
  margin:0;
}
body.mtg-template-tm1 .tm1-head__line{
  width:100px;
  height:1px;
  background:#777;
  flex:0 0 auto;
  margin-bottom:16px;
}

body.mtg-template-tm1 .tm1-home{
  background:#ffffff;
}


body.mtg-template-tm1 .tm1-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 34px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid #000;
}
body.mtg-template-tm1 .tm1-btn--dark{background:#000;color:#fff}
body.mtg-template-tm1 .tm1-btn--light{background:#fff;color:#111}


body.mtg-template-tm1 .tm1-cats__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
body.mtg-template-tm1 .tm1-cat-card{
  position:relative;
  display:block;
  min-height:460px;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  background:#ddd;
}
body.mtg-template-tm1 .tm1-cat-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
body.mtg-template-tm1 .tm1-cat-card:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:120px;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}
body.mtg-template-tm1 .tm1-cat-card span{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:2;
  font-size:18px;
}

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{
  background:#fff;
  border:1px solid #ececec;
}
body.mtg-template-tm1 .tm1-product-card__link{
  display:block;
  text-decoration:none;
  color:inherit;
}
body.mtg-template-tm1 .tm1-product-card__media{
  aspect-ratio:1/1.15;
  background:#f8f8f8;
  padding:22px;
}
body.mtg-template-tm1 .tm1-product-card__media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
body.mtg-template-tm1 .tm1-product-card__body{
  padding:18px 18px 16px;
  text-align:center;
}
body.mtg-template-tm1 .tm1-product-card__cat{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#98a2b3;
  margin:0 0 10px;
}
body.mtg-template-tm1 .tm1-product-card__title{
  font-size:22px;
  line-height:1.3;
  margin:0 0 12px;
}
body.mtg-template-tm1 .tm1-product-card__price{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 16px;
}
body.mtg-template-tm1 .tm1-product-card__price strong{
  font-size:28px;
}
body.mtg-template-tm1 .tm1-product-card__price span{
  color:#98a2b3;
  text-decoration:line-through;
  font-size:15px;
}
body.mtg-template-tm1 .tm1-product-card__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  background:#000;
  color:#fff;
  font-size:13px;
  letter-spacing:.05em;
}

body.mtg-template-tm1 .tm1-band{
  background:#000;
  color:#fff;
  padding:44px 0;
}
body.mtg-template-tm1 .tm1-band__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}
body.mtg-template-tm1 .tm1-band__item{
  text-align:center;
}
body.mtg-template-tm1 .tm1-band__item h3{
  font-size:18px;
  color:#fff;
  margin:0 0 8px;
}
body.mtg-template-tm1 .tm1-band__item p{
  margin:0;
  font-size:14px;
  color:rgba(255,255,255,.72);
  line-height:1.7;
}

body.mtg-template-tm1 .tm1-brands__row{
  display:flex;
  justify-content:center;
  gap:42px;
  flex-wrap:wrap;
  color:#8b8b8b;
  font-size:34px;
  font-weight:600;
}

body.mtg-template-tm1 .tm1-newsletter{
  background:#060606;
  color:#fff;
  padding:66px 0 74px;
}
body.mtg-template-tm1 .tm1-head--light h2,
body.mtg-template-tm1 .tm1-head--light p{
  color:#fff;
}
body.mtg-template-tm1 .tm1-newsletter__form{
  display:flex;
  justify-content:center;
  gap:0;
  max-width:520px;
  margin:0 auto;
}
body.mtg-template-tm1 .tm1-newsletter__form input{
  flex:1;
  min-height:58px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.15);
  background:#1c1c1c;
  color:#fff;
}
body.mtg-template-tm1 .tm1-newsletter__form button{
  min-width:140px;
  min-height:58px;
  border:0;
  background:#17c183;
  color:#000;
  font-weight:700;
}

body.mtg-template-tm1 .tm1-journal__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
body.mtg-template-tm1 .tm1-journal-card__img{
  display:block;
  aspect-ratio:1.25/1;
  overflow:hidden;
  background:#ddd;
}
body.mtg-template-tm1 .tm1-journal-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
body.mtg-template-tm1 .tm1-journal-card__body{
  padding:16px 0 0;
}
body.mtg-template-tm1 .tm1-journal-card__date{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#98a2b3;
  margin:0 0 10px;
}
body.mtg-template-tm1 .tm1-journal-card h3{
  font-size:30px;
  line-height:1.2;
  margin:0 0 10px;
}
body.mtg-template-tm1 .tm1-journal-card h3 a{
  color:#111;
  text-decoration:none;
}
body.mtg-template-tm1 .tm1-journal-card p{
  margin:0 0 14px;
  color:var(--tm1-soft);
  line-height:1.8;
  font-size:15px;
}
body.mtg-template-tm1 .tm1-journal-card__more{
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#111;
  text-decoration:none;
}

body.mtg-template-tm1 .tm1-footer-cta__grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:44px;
  align-items:start;
}
body.mtg-template-tm1 .tm1-footer-cta__copy h2{
  font-size:72px;
  line-height:1.02;
  margin:0 0 18px;
}
body.mtg-template-tm1 .tm1-footer-cta__copy p{
  font-size:19px;
  line-height:1.85;
  color:var(--tm1-soft);
  margin:0;
}
body.mtg-template-tm1 .tm1-footer-cta__points{
  display:grid;
  gap:18px;
}
body.mtg-template-tm1 .tm1-point{
  min-height:72px;
  display:flex;
  align-items:center;
  padding:0 24px;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:24px;
  font-size:18px;
  color:#4b5563;
}

body.mtg-template-tm1 .tm1-shop-shell,
body.mtg-template-tm1 .tm1-single-shell{
  background:#ffffff;
  padding:42px 0;
}

body.mtg-template-tm1 .tm1-shop-head{
  text-align:center;
  margin:0 0 30px;
}
body.mtg-template-tm1 .tm1-shop-head h1{
  font-size:58px;
  line-height:1.02;
  margin:0;
}

body.mtg-template-tm1 .tm1-single-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:34px;
  align-items:start;
}
body.mtg-template-tm1 .tm1-single-media{
  background:#fff;
  border:1px solid #ececec;
}
body.mtg-template-tm1 .tm1-single-media__inner{
  aspect-ratio:.9/1;
  background:#f8f8f8;
  padding:24px;
}
body.mtg-template-tm1 .tm1-single-media__inner img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
body.mtg-template-tm1 .tm1-single-info{
  background:#fff;
  border:1px solid #ececec;
  padding:28px;
}
body.mtg-template-tm1 .tm1-single-cat{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  background:#000;
  color:#fff;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.mtg-template-tm1 .tm1-single-title{
  font-size:64px;
  line-height:1.02;
  margin:16px 0 14px;
}
body.mtg-template-tm1 .tm1-single-price{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin:0 0 16px;
}
body.mtg-template-tm1 .tm1-single-price strong{
  font-size:34px;
}
body.mtg-template-tm1 .tm1-single-price span{
  font-size:18px;
  color:#98a2b3;
  text-decoration:line-through;
}
body.mtg-template-tm1 .tm1-single-excerpt{
  color:var(--tm1-soft);
  font-size:17px;
  line-height:1.9;
  margin:0 0 18px;
}
body.mtg-template-tm1 .tm1-stock-box{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border:1px solid #ececec;
  margin:0 0 18px;
}
body.mtg-template-tm1 .tm1-single-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
body.mtg-template-tm1 .tm1-btn-primary,
body.mtg-template-tm1 .tm1-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 24px;
  font-weight:700;
  text-decoration:none;
  border:1px solid #000;
}
body.mtg-template-tm1 .tm1-btn-primary{
  background:#000;
  color:#fff;
}
body.mtg-template-tm1 .tm1-btn-secondary{
  background:#fff;
  color:#111;
}

@media (max-width:1100px){
body.mtg-template-tm1 .tm1-cats__grid,
  body.mtg-template-tm1 .tm1-products-grid,
  body.mtg-template-tm1 .tm1-band__grid,
  body.mtg-template-tm1 .tm1-journal__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:720px){
body.mtg-template-tm1 .tm1-head--split{
    display:block;
  }
  body.mtg-template-tm1 .tm1-head__line{
    display:none;
  }
  
  body.mtg-template-tm1 .tm1-journal-card h3{
    font-size:22px;
  }
  body.mtg-template-tm1 .tm1-newsletter__form{
    flex-direction:column;
    gap:10px;
  }
}

body.mtg-template-tm1 .tm1-shop-shell{
  background:#ffffff !important;
  padding:64px 0 90px;
}

body.mtg-template-tm1 .tm1-shop-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 46px;
}

body.mtg-template-tm1 .tm1-shop-head h1{
  font-size:64px;
  line-height:1;
  margin:0 0 14px;
  letter-spacing:-.05em;
}

body.mtg-template-tm1 .tm1-shop-head p{
  margin:0;
  color:#667085;
  font-size:18px;
  line-height:1.7;
}

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

body.mtg-template-tm1 .tm1-shop-card{
  background:#ffffff;
  border:1px solid #eeeeee;
  overflow:hidden;
}

body.mtg-template-tm1 .tm1-shop-card__link{
  display:block;
  text-decoration:none;
  color:#111111;
}

body.mtg-template-tm1 .tm1-shop-card__media{
  aspect-ratio:1/1.05;
  background:#f8f8f8;
  padding:22px;
}

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

body.mtg-template-tm1 .tm1-shop-card__placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f4f4f4;
  color:#111;
  font-size:68px;
  font-weight:800;
}

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

body.mtg-template-tm1 .tm1-shop-card__body h2{
  font-size:22px;
  line-height:1.25;
  margin:0 0 12px;
  letter-spacing:-.03em;
}

body.mtg-template-tm1 .tm1-shop-card__price{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 16px;
}

body.mtg-template-tm1 .tm1-shop-card__price strong{
  font-size:24px;
  color:#111;
}

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

body.mtg-template-tm1 .tm1-shop-card__button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  background:#000000;
  color:#ffffff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}

body.mtg-template-tm1 .tm1-shop-pagination{
  margin:42px 0 0;
  display:flex;
  justify-content:center;
}

body.mtg-template-tm1 .tm1-shop-pagination ul{
  display:flex;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}

body.mtg-template-tm1 .tm1-shop-pagination a,
body.mtg-template-tm1 .tm1-shop-pagination span{
  display:flex;
  min-width:42px;
  min-height:42px;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  color:#111;
  text-decoration:none;
}

body.mtg-template-tm1 .tm1-shop-pagination .current{
  background:#000;
  color:#fff;
  border-color:#000;
}

body.mtg-template-tm1 .tm1-shop-empty{
  max-width:620px;
  margin:0 auto;
  text-align:center;
  padding:80px 24px;
  border:1px solid #eeeeee;
}

body.mtg-template-tm1 .tm1-shop-empty h2{
  font-size:38px;
  margin:0 0 10px;
}

body.mtg-template-tm1 .tm1-shop-empty p{
  margin:0;
  color:#667085;
}

@media (max-width:1100px){
body.mtg-template-tm1 .tm1-shop-products-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:820px){
body.mtg-template-tm1 .tm1-shop-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px){
body.mtg-template-tm1 .tm1-shop-products-grid{
    grid-template-columns:minmax(0,1fr);
  }

  body.mtg-template-tm1 .tm1-shop-head h1{
    font-size:40px;
  }
}


/* Soporte para imágenes verticales: grandes, pero sin cortar */


/* Tablet */


/* Mobile */


/* Mobile pequeño */

/* ==========================================================
   TM1 HERO ZERO REWRITE
   Única fuente CSS del hero TM1.
   Blanco limpio, imagen protagonista, sin crop agresivo.
   ========================================================== */

body.mtg-template-tm1 .tm1-home .tm1-hero,
body.mtg-template-tm1 .tm1-hero {
    width: 90% !important;
    max-width: 1360px !important;
    margin: 28px auto 46px !important;
    padding: clamp(28px, 4vw, 58px) !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 34px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    position: relative !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero::before,
body.mtg-template-tm1 .tm1-home .tm1-hero::after,
body.mtg-template-tm1 .tm1-hero::before,
body.mtg-template-tm1 .tm1-hero::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__grid,
body.mtg-template-tm1 .tm1-hero__grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(340px, 0.88fr) minmax(460px, 1.12fr) !important;
    align-items: center !important;
    gap: clamp(18px, 2.8vw, 38px) !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__copy,
body.mtg-template-tm1 .tm1-hero__copy {
    width: 100% !important;
    max-width: 560px !important;
    justify-self: end !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__badge,
body.mtg-template-tm1 .tm1-hero__badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: max-content !important;
    margin: 0 0 24px !important;
    padding: 9px 15px !important;
    border-radius: 0 !important;
    background: #020617 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__title,
body.mtg-template-tm1 .tm1-hero__title,
body.mtg-template-tm1 .tm1-home .tm1-hero__copy h1,
body.mtg-template-tm1 .tm1-hero__copy h1 {
    margin: 0 0 20px !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: clamp(44px, 5.3vw, 82px) !important;
    line-height: .98 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__text,
body.mtg-template-tm1 .tm1-hero__text,
body.mtg-template-tm1 .tm1-home .tm1-hero__text p,
body.mtg-template-tm1 .tm1-hero__text p,
body.mtg-template-tm1 .tm1-home .tm1-hero__copy p,
body.mtg-template-tm1 .tm1-hero__copy p {
    max-width: 520px !important;
    margin-top: 0 !important;
    color: #475569 !important;
    font-size: clamp(16px, 1.35vw, 20px) !important;
    line-height: 1.62 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__actions,
body.mtg-template-tm1 .tm1-hero__actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin: 28px 0 0 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__meta,
body.mtg-template-tm1 .tm1-hero__meta {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 34px 0 0 !important;
    max-width: 520px !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__meta-item,
body.mtg-template-tm1 .tm1-hero__meta-item {
    min-width: 0 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__meta-item strong,
body.mtg-template-tm1 .tm1-hero__meta-item strong {
    display: block !important;
    margin-bottom: 6px !important;
    color: #0f172a !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    letter-spacing: .025em !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__meta-item span,
body.mtg-template-tm1 .tm1-hero__meta-item span {
    display: block !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__visual,
body.mtg-template-tm1 .tm1-hero__visual {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    z-index: 1 !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__visual picture,
body.mtg-template-tm1 .tm1-hero__visual picture,
body.mtg-template-tm1 .tm1-home .tm1-hero__visual figure,
body.mtg-template-tm1 .tm1-hero__visual figure,
body.mtg-template-tm1 .tm1-home .tm1-hero__visual a,
body.mtg-template-tm1 .tm1-hero__visual a,
body.mtg-template-tm1 .tm1-home .tm1-hero__visual > div,
body.mtg-template-tm1 .tm1-hero__visual > div {
    width: 100% !important;
    max-width: 760px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body.mtg-template-tm1 .tm1-home .tm1-hero__visual img,
body.mtg-template-tm1 .tm1-hero__visual img {
    display: block !important;
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    height: auto !important;
    max-height: 680px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 26px !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Si el builder manda imagen izquierda, mantenemos imagen derecha para TM1 */
body.mtg-template-tm1 .tm1-hero--image_left .tm1-hero__copy {
    order: 1 !important;
}
body.mtg-template-tm1 .tm1-hero--image_left .tm1-hero__visual {
    order: 2 !important;
}

/* Tablet */
@media (max-width: 1100px) {
    body.mtg-template-tm1 .tm1-home .tm1-hero,
    body.mtg-template-tm1 .tm1-hero {
        width: 92% !important;
        padding: clamp(24px, 4vw, 42px) !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__grid,
    body.mtg-template-tm1 .tm1-hero__grid {
        grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr) !important;
        gap: 24px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__copy,
    body.mtg-template-tm1 .tm1-hero__copy {
        justify-self: start !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__visual img,
    body.mtg-template-tm1 .tm1-hero__visual img {
        width: min(100%, 620px) !important;
        max-height: 580px !important;
    }
}

/* Mobile */
@media (max-width: 780px) {
    body.mtg-template-tm1 .tm1-home .tm1-hero,
    body.mtg-template-tm1 .tm1-hero {
        width: 92% !important;
        margin: 18px auto 34px !important;
        padding: 24px 18px 28px !important;
        border-radius: 26px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__grid,
    body.mtg-template-tm1 .tm1-hero__grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__copy,
    body.mtg-template-tm1 .tm1-hero__copy {
        max-width: 100% !important;
        justify-self: start !important;
        text-align: left !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__title,
    body.mtg-template-tm1 .tm1-hero__title,
    body.mtg-template-tm1 .tm1-home .tm1-hero__copy h1,
    body.mtg-template-tm1 .tm1-hero__copy h1 {
        font-size: clamp(36px, 11vw, 52px) !important;
        line-height: 1 !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__text,
    body.mtg-template-tm1 .tm1-hero__text,
    body.mtg-template-tm1 .tm1-home .tm1-hero__text p,
    body.mtg-template-tm1 .tm1-hero__text p {
        max-width: 100% !important;
        font-size: 16px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__actions,
    body.mtg-template-tm1 .tm1-hero__actions {
        margin-top: 22px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__meta,
    body.mtg-template-tm1 .tm1-hero__meta {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-top: 24px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__visual,
    body.mtg-template-tm1 .tm1-hero__visual,
    body.mtg-template-tm1 .tm1-home .tm1-hero__visual picture,
    body.mtg-template-tm1 .tm1-hero__visual picture,
    body.mtg-template-tm1 .tm1-home .tm1-hero__visual figure,
    body.mtg-template-tm1 .tm1-hero__visual figure,
    body.mtg-template-tm1 .tm1-home .tm1-hero__visual a,
    body.mtg-template-tm1 .tm1-hero__visual a,
    body.mtg-template-tm1 .tm1-home .tm1-hero__visual > div,
    body.mtg-template-tm1 .tm1-hero__visual > div {
        justify-content: center !important;
        max-width: 100% !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__visual img,
    body.mtg-template-tm1 .tm1-hero__visual img {
        width: min(100%, 540px) !important;
        max-height: 500px !important;
        border-radius: 22px !important;
    }
}

@media (max-width: 480px) {
    body.mtg-template-tm1 .tm1-home .tm1-hero,
    body.mtg-template-tm1 .tm1-hero {
        width: 94% !important;
        padding: 22px 14px 24px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__badge,
    body.mtg-template-tm1 .tm1-hero__badge {
        margin-bottom: 18px !important;
    }

    body.mtg-template-tm1 .tm1-home .tm1-hero__visual img,
    body.mtg-template-tm1 .tm1-hero__visual img {
        max-height: 430px !important;
    }
}

/* ==========================================================
   TM1 FULLWIDTH 90
   Hace que TM1 use 90% real de la hoja.
   No afecta header/topbar global, checkout, cart ni plugins externos.
   END TM1 FULLWIDTH 90
   ========================================================== */

/* Base de la home TM1 */
body.mtg-template-tm1 .tm1-home {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
}

/* Cada sección principal del index debe respirar al 90% */
body.mtg-template-tm1 .tm1-home > section,
body.mtg-template-tm1 .tm1-home .tm1-section,
body.mtg-template-tm1 .tm1-hero,
body.mtg-template-tm1 .tm1-categories,
body.mtg-template-tm1 .tm1-products,
body.mtg-template-tm1 .tm1-benefits,
body.mtg-template-tm1 .tm1-brands,
body.mtg-template-tm1 .tm1-newsletter,
body.mtg-template-tm1 .tm1-cta,
body.mtg-template-tm1 .tm1-footer-visual {
    width: 90% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Contenedores internos que estaban dejando TM1 boxed */
body.mtg-template-tm1 .tm1-container,
body.mtg-template-tm1 .tm1-shell,
body.mtg-template-tm1 .tm1-wrap,
body.mtg-template-tm1 .tm1-inner,
body.mtg-template-tm1 .tm1-section__inner,
body.mtg-template-tm1 .tm1-products__inner,
body.mtg-template-tm1 .tm1-categories__inner,
body.mtg-template-tm1 .tm1-benefits__inner,
body.mtg-template-tm1 .tm1-brands__inner,
body.mtg-template-tm1 .tm1-newsletter__inner,
body.mtg-template-tm1 .tm1-cta__inner {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Hero mantiene 90%, pero sin volver a boxed */
body.mtg-template-tm1 .tm1-home .tm1-hero,
body.mtg-template-tm1 .tm1-hero {
    width: 90% !important;
    max-width: none !important;
}

/* Grillas deben usar todo el ancho disponible */
body.mtg-template-tm1 .tm1-products-grid,
body.mtg-template-tm1 .tm1-categories-grid,
body.mtg-template-tm1 .tm1-benefits-grid,
body.mtg-template-tm1 .tm1-brands__logos {
    width: 100% !important;
    max-width: none !important;
}

/* Evita que alguna sección vieja meta max-width 1180/1200/1320 */
body.mtg-template-tm1 .tm1-home [style*="max-width"] {
    max-width: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
    body.mtg-template-tm1 .tm1-home > section,
    body.mtg-template-tm1 .tm1-home .tm1-section,
    body.mtg-template-tm1 .tm1-hero,
    body.mtg-template-tm1 .tm1-categories,
    body.mtg-template-tm1 .tm1-products,
    body.mtg-template-tm1 .tm1-benefits,
    body.mtg-template-tm1 .tm1-brands,
    body.mtg-template-tm1 .tm1-newsletter,
    body.mtg-template-tm1 .tm1-cta,
    body.mtg-template-tm1 .tm1-footer-visual {
        width: 92% !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    body.mtg-template-tm1 .tm1-home > section,
    body.mtg-template-tm1 .tm1-home .tm1-section,
    body.mtg-template-tm1 .tm1-hero,
    body.mtg-template-tm1 .tm1-categories,
    body.mtg-template-tm1 .tm1-products,
    body.mtg-template-tm1 .tm1-benefits,
    body.mtg-template-tm1 .tm1-brands,
    body.mtg-template-tm1 .tm1-newsletter,
    body.mtg-template-tm1 .tm1-cta,
    body.mtg-template-tm1 .tm1-footer-visual {
        width: 94% !important;
    }
}

/* MTG TM1 RESPONSIVE HERO V1 - START */
@media (max-width: 780px){

    /*
     * TM1 responsive:
     * No tocamos categorías/productos porque ya están bien 50/50.
     * Solo compactamos giro/hero y afinamos títulos.
     */
    body.mtg-template-tm1 .tm1-home,
    body.mtg-template-tm1 .tm1-home *{
        box-sizing:border-box;
    }

    body.mtg-template-tm1 .tm1-shell{
        width:90% !important;
        max-width:430px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    body.mtg-template-tm1 .tm1-hero{
        padding:22px 0 26px !important;
        background:#ffffff !important;
        overflow:hidden !important;
    }

    body.mtg-template-tm1 .tm1-hero__grid{
        width:90% !important;
        max-width:430px !important;
        margin:0 auto !important;
        display:flex !important;
        flex-direction:column !important;
        gap:12px !important;
        align-items:stretch !important;
    }

    /*
     * Imagen del giro arriba, compacta, no gigante.
     */
    body.mtg-template-tm1 .tm1-hero__visual{
        order:0 !important;
        width:100% !important;
        min-height:0 !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
        border-radius:24px !important;
        overflow:hidden !important;
        border:1px solid rgba(15,23,42,.10) !important;
        box-shadow:0 18px 42px rgba(15,23,42,.13) !important;
        background:#f8fafc !important;
    }

    body.mtg-template-tm1 .tm1-hero__visual img{
        display:block !important;
        width:100% !important;
        height:220px !important;
        max-height:220px !important;
        object-fit:cover !important;
        object-position:center center !important;
        border-radius:24px !important;
        margin:0 !important;
        box-shadow:none !important;
    }

    /*
     * Caja de texto debajo.
     */
    body.mtg-template-tm1 .tm1-hero__copy{
        order:1 !important;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:22px 18px 18px !important;
        border-radius:24px !important;
        background:#ffffff !important;
        border:1px solid rgba(15,23,42,.10) !important;
        box-shadow:0 16px 40px rgba(15,23,42,.08) !important;
        text-align:center !important;
    }

    body.mtg-template-tm1 .tm1-hero__badge{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        min-height:30px !important;
        padding:0 13px !important;
        margin:0 auto 12px !important;
        border-radius:999px !important;
        background:#f1f5f9 !important;
        color:#0f172a !important;
        font-size:11px !important;
        line-height:1 !important;
        font-weight:900 !important;
        letter-spacing:.03em !important;
    }

    body.mtg-template-tm1 .tm1-hero__title,
    body.mtg-template-tm1 .tm1-hero__copy h1{
        max-width:340px !important;
        margin:0 auto !important;
        font-size:34px !important;
        line-height:.98 !important;
        letter-spacing:-1.2px !important;
        color:#0f172a !important;
        text-align:center !important;
    }

    body.mtg-template-tm1 .tm1-hero__text,
    body.mtg-template-tm1 .tm1-hero__text p,
    body.mtg-template-tm1 .tm1-hero__copy p{
        max-width:340px !important;
        margin:13px auto 0 !important;
        font-size:15.5px !important;
        line-height:1.45 !important;
        color:#334155 !important;
        font-weight:650 !important;
        text-align:center !important;
    }

    body.mtg-template-tm1 .tm1-hero__actions{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:10px !important;
        width:100% !important;
        max-width:340px !important;
        margin:19px auto 0 !important;
    }

    body.mtg-template-tm1 .tm1-hero__actions .tm1-btn,
    body.mtg-template-tm1 .tm1-hero__actions a{
        width:100% !important;
        min-height:48px !important;
        height:48px !important;
        border-radius:15px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 16px !important;
        font-size:14px !important;
        font-weight:950 !important;
        text-align:center !important;
    }

    body.mtg-template-tm1 .tm1-hero__actions .tm1-btn--dark{
        background:#0f172a !important;
        color:#ffffff !important;
        box-shadow:0 14px 30px rgba(15,23,42,.20) !important;
    }

    body.mtg-template-tm1 .tm1-hero__actions .tm1-btn--light{
        background:#ffffff !important;
        color:#0f172a !important;
        border:1.5px solid #0f172a !important;
        box-shadow:0 10px 22px rgba(15,23,42,.06) !important;
    }

    /*
     * Meta stats: compactas y legibles.
     */
    body.mtg-template-tm1 .tm1-hero__meta{
        display:grid !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:0 !important;
        max-width:340px !important;
        margin:16px auto 0 !important;
        padding:12px 6px !important;
        border-radius:18px !important;
        background:#f8fafc !important;
        border:1px solid rgba(15,23,42,.10) !important;
        box-shadow:none !important;
    }

    body.mtg-template-tm1 .tm1-hero__meta-item{
        padding:0 6px !important;
        text-align:center !important;
        border:0 !important;
        box-shadow:none !important;
        background:transparent !important;
    }

    body.mtg-template-tm1 .tm1-hero__meta-item + .tm1-hero__meta-item{
        border-left:1px solid rgba(15,23,42,.10) !important;
    }

    body.mtg-template-tm1 .tm1-hero__meta-item strong{
        display:block !important;
        font-size:14px !important;
        line-height:1.05 !important;
        color:#0f172a !important;
        font-weight:950 !important;
    }

    body.mtg-template-tm1 .tm1-hero__meta-item span{
        display:block !important;
        margin-top:4px !important;
        font-size:10px !important;
        line-height:1.15 !important;
        color:#64748b !important;
        font-weight:800 !important;
    }

    /*
     * Títulos generales: un poco más estirados/finos.
     */
    body.mtg-template-tm1 .tm1-head h2,
    body.mtg-template-tm1 .tm1-sec h2{
        font-size:25px !important;
        line-height:1.05 !important;
        letter-spacing:-.65px !important;
    }

    body.mtg-template-tm1 .tm1-head p{
        font-size:14px !important;
        line-height:1.45 !important;
    }

    /*
     * Marcas asociadas: mantener compactas y en 50/50 cuando existan logos.
     */
    body.mtg-template-tm1 .tm1-brands__row,
    body.mtg-template-tm1 .tm1-brands__logos{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
        align-items:center !important;
    }
}

@media (max-width: 390px){
    body.mtg-template-tm1 .tm1-hero__visual img{
        height:198px !important;
        max-height:198px !important;
    }

    body.mtg-template-tm1 .tm1-hero__title,
    body.mtg-template-tm1 .tm1-hero__copy h1{
        font-size:31px !important;
    }

    body.mtg-template-tm1 .tm1-hero__text,
    body.mtg-template-tm1 .tm1-hero__text p,
    body.mtg-template-tm1 .tm1-hero__copy p{
        font-size:14.5px !important;
    }

    body.mtg-template-tm1 .tm1-head h2,
    body.mtg-template-tm1 .tm1-sec h2{
        font-size:23px !important;
    }
}
/* MTG TM1 RESPONSIVE HERO V1 - END */
