/*
Theme Name: MTG Engine
Theme URI: https://mitiendagratis.com
Author: antoniocarpio.com
Author URI: https://antoniocarpio.com
Description: Engine base de MTG Commerce. Los skins se eligen desde MTG Templates.
Version: 1.0.0
Text Domain: mtg-engine
*/

:root{
  --mtg-primary:#16a34a;
  --mtg-primary-dark:#15803d;
  --mtg-text:#111827;
  --mtg-muted:#6b7280;
  --mtg-bg:#ffffff;
  --mtg-soft:#f8fafc;
  --mtg-border:#e5e7eb;
  --mtg-radius:18px;
  --mtg-shadow:0 10px 30px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html{margin:0;padding:0}
body{
  margin:0;
  padding:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--mtg-text);
  background:#fff;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
}
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--mtg-border);
}
.site-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:76px;
}
.site-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  font-size:22px;
}
.site-brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--mtg-primary),#22c55e);
}
.site-nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.site-nav a{
  font-size:15px;
  color:var(--mtg-text);
}
.site-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:var(--mtg-primary);
  color:#fff;
  font-weight:700;
}
.site-cta:hover{background:var(--mtg-primary-dark)}

.hero{
  padding:56px 0 30px;
  background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:30px;
  align-items:center;
}
.hero-copy h1{
  font-size:54px;
  line-height:1.02;
  margin:0 0 16px;
}
.hero-copy p{
  margin:0 0 22px;
  font-size:18px;
  line-height:1.6;
  color:var(--mtg-muted);
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
}
.btn-primary{
  background:var(--mtg-primary);
  color:#fff;
}
.btn-primary:hover{background:var(--mtg-primary-dark)}
.btn-secondary{
  background:#fff;
  color:var(--mtg-text);
  border-color:var(--mtg-border);
}
.hero-card{
  background:#fff;
  border:1px solid var(--mtg-border);
  border-radius:28px;
  box-shadow:var(--mtg-shadow);
  padding:18px;
}
.hero-card img{
  border-radius:22px;
  aspect-ratio:4/4;
  object-fit:cover;
}

.section{
  padding:58px 0;
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin-bottom:24px;
}
.section-head h2{
  margin:0;
  font-size:36px;
}
.section-head p{
  margin:6px 0 0;
  color:var(--mtg-muted);
}

.grid-cats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.cat-card{
  background:#fff;
  border:1px solid var(--mtg-border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--mtg-shadow);
}
.cat-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.cat-card-body{
  padding:16px;
}
.cat-card h3{
  margin:0 0 6px;
  font-size:20px;
}
.cat-card p{
  margin:0;
  color:var(--mtg-muted);
  font-size:14px;
}

.grid-products{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.product-card{
  background:#fff;
  border:1px solid var(--mtg-border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--mtg-shadow);
}
.product-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.product-card-body{
  padding:16px;
}
.product-card h3{
  margin:0 0 8px;
  font-size:18px;
}
.product-card .price{
  font-size:20px;
  font-weight:800;
  margin-bottom:12px;
}
.product-card .actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:#ecfdf5;
  color:#166534;
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
}

.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.step-card{
  background:#fff;
  border:1px solid var(--mtg-border);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--mtg-shadow);
}
.step-num{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#dcfce7;
  color:#166534;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  margin-bottom:14px;
}
.step-card h3{
  margin:0 0 8px;
}
.step-card p{
  margin:0;
  color:var(--mtg-muted);
  line-height:1.6;
}

.cta-banner{
  background:linear-gradient(135deg,#14532d,#16a34a);
  color:#fff;
  border-radius:28px;
  padding:34px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.cta-banner h2{
  margin:0 0 8px;
  font-size:34px;
}
.cta-banner p{
  margin:0;
  opacity:.92;
}
.cta-banner .btn-secondary{
  background:#fff;
}

.site-footer{
  padding:30px 0 50px;
  border-top:1px solid var(--mtg-border);
  background:#fff;
}
.site-footer p{
  margin:0;
  color:var(--mtg-muted);
}

@media (max-width: 1024px){
  .hero-grid,
  .grid-cats,
  .grid-products,
  .steps{
    grid-template-columns:repeat(2,1fr);
  }
}
@media (max-width: 767px){
  .site-header-inner{
    min-height:68px;
  }
  .site-nav{
    display:none;
  }
  .hero-copy h1{
    font-size:38px;
  }
  .hero-grid,
  .grid-cats,
  .grid-products,
  .steps{
    grid-template-columns:1fr;
  }
  .cta-banner{
    flex-direction:column;
    align-items:flex-start;
  }
}

.hero-engine{
  background:linear-gradient(135deg,#166534 0%,#16a34a 100%);
  color:#fff;
  padding:60px 0;
}
.hero-engine .hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:30px;
  align-items:center;
}
.hero-engine h1{
  font-size:52px;
  line-height:1.04;
  margin:0 0 14px;
}
.hero-engine p{
  margin:0 0 20px;
  font-size:18px;
  color:#dcfce7;
}
.hero-image img{
  width:100%;
  border-radius:24px;
  aspect-ratio:4/3;
  object-fit:cover;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.section-title{
  font-size:34px;
  margin:0 0 24px;
}

.grid-cats-modern{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.cat-modern{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.cat-modern img{
  width:100%;
  height:180px;
  object-fit:cover;
}
.cat-modern h3{
  margin:0;
  padding:16px;
  text-align:center;
  font-size:20px;
}

.grid-products-modern{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.product-modern{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.product-modern img{
  width:100%;
  border-radius:14px;
  aspect-ratio:1/1;
  object-fit:cover;
  margin-bottom:12px;
}
.product-modern h3{
  margin:0 0 8px;
  font-size:18px;
}
.product-modern .price{
  font-size:22px;
  font-weight:800;
  margin:0 0 12px;
}
.btn-engine-wa{
  background:#25D366;
  color:#fff;
  padding:11px 14px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  width:100%;
}
.btn-engine-wa:hover{
  background:#1faa52;
}

.cta-engine-contact{
  background:linear-gradient(135deg,#166534 0%,#16a34a 100%);
  color:#fff;
  text-align:center;
  padding:44px 0;
}
.cta-engine-contact h2{
  font-size:38px;
  margin:0 0 18px;
}

@media (max-width:1024px){
  .hero-engine .hero-grid,
  .grid-cats-modern,
  .grid-products-modern{
    grid-template-columns:repeat(2,1fr);
  }
}
@media (max-width:767px){
  .hero-engine .hero-grid,
  .grid-cats-modern,
  .grid-products-modern{
    grid-template-columns:1fr;
  }
  .hero-engine h1{
    font-size:36px;
  }
}

.center{
  text-align:center;
}

.hero-engine{
  padding:34px 0 26px;
  background:#ffffff;
}
.hero-engine-box{
  background:linear-gradient(135deg,#1f7a53 0%,#3aa56d 100%);
  color:#fff;
  border-radius:28px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  min-height:420px;
  position:relative;
}
.hero-engine-box:before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 10% 20%, rgba(255,255,255,.08) 0, transparent 30%);
  pointer-events:none;
}
.hero-engine-copy{
  padding:42px;
  position:relative;
  z-index:2;
}
.hero-engine-copy h1{
  margin:0 0 14px;
  font-size:58px;
  line-height:1.02;
  color:#fff;
}
.hero-engine-copy p{
  margin:0 0 22px;
  color:#eafff2;
  font-size:18px;
  max-width:560px;
}
.hero-mini{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
}
.hero-engine-image{
  height:100%;
  display:flex;
  align-items:end;
  justify-content:center;
  padding:22px 22px 0 0;
}
.hero-engine-image img{
  width:100%;
  max-width:560px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:22px 22px 0 0;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
}

.cat-modern{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.cat-modern img{
  width:100%;
  height:180px;
  object-fit:cover;
}
.cat-modern-body{
  padding:16px;
  text-align:center;
}
.cat-modern-body h3{
  margin:0 0 8px;
  font-size:20px;
}
.mini-link{
  font-size:13px;
  color:#16a34a;
  font-weight:700;
}

.product-modern{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}
.product-modern img{
  width:100%;
  border-radius:14px;
  aspect-ratio:1/1;
  object-fit:cover;
  margin-bottom:12px;
}
.product-modern-body h3{
  margin:0 0 8px;
  font-size:18px;
}
.product-modern .price{
  font-size:22px;
  font-weight:800;
  margin:0 0 12px;
}
.product-modern-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.btn-small{
  padding:10px 12px;
  font-size:13px;
}
.btn-engine-wa{
  background:#25D366;
  color:#fff;
}
.btn-engine-wa:hover{
  background:#1faa52;
  color:#fff;
}

@media (max-width:1024px){
  .hero-engine-box{
    grid-template-columns:1fr;
  }
  .hero-engine-copy h1{
    font-size:42px;
  }
  .hero-engine-image{
    padding:0 22px 22px;
  }
}

@media (max-width:767px){
  .hero-engine-copy{
    padding:28px;
  }
  .hero-engine-copy h1{
    font-size:34px;
  }
}

.container-wide{
  width:min(1440px,calc(100% - 48px));
  margin:0 auto;
}

.site-header .container{
  width:min(1440px,calc(100% - 48px));
}

.hero-engine{
  padding:28px 24px 18px;
  background:#ffffff;
}

.hero-engine-shell{
  width:min(1440px,100%);
  margin:0 auto;
  min-height:520px;
  border-radius:34px;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  background:linear-gradient(135deg,#1f7a53 0%,#35a76d 100%);
  box-shadow:0 18px 50px rgba(0,0,0,.10);
}

.hero-engine-copy{
  padding:58px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-mini{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:13px;
  font-weight:700;
  margin-bottom:20px;
}

.hero-engine-copy h1{
  margin:0 0 16px;
  font-size:72px;
  line-height:0.98;
  color:#fff;
  letter-spacing:-1.5px;
}

.hero-engine-copy p{
  margin:0 0 24px;
  color:#eafff2;
  font-size:21px;
  line-height:1.45;
  max-width:620px;
}

.hero-engine-image{
  position:relative;
  min-height:520px;
  background:linear-gradient(180deg,#f7f7f5 0%,#f1f1ee 100%);
}

.hero-engine-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

/* guía recomendada para cliente */
.hero-engine-image:after{
  content:"Hero recomendado: 1600x900 px";
  position:absolute;
  right:18px;
  bottom:18px;
  background:rgba(255,255,255,.82);
  color:#111827;
  font-size:12px;
  font-weight:700;
  padding:8px 10px;
  border-radius:999px;
  backdrop-filter:blur(6px);
}

.section{
  padding:52px 0;
}

.section-title{
  font-size:44px;
  margin:0 0 28px;
  line-height:1.08;
}

.grid-cats-modern{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.cat-modern{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.cat-modern img{
  width:100%;
  height:260px;
  object-fit:cover;
}

.cat-modern-body{
  padding:18px;
  text-align:center;
}

.cat-modern-body h3{
  margin:0 0 8px;
  font-size:22px;
}

.grid-products-modern{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.product-modern{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.product-modern img{
  width:100%;
  border-radius:16px;
  aspect-ratio:1/1;
  object-fit:cover;
  margin-bottom:14px;
}

.product-modern-body h3{
  margin:0 0 8px;
  font-size:20px;
}

.product-modern .price{
  font-size:24px;
  font-weight:800;
  margin:0 0 14px;
}

.product-modern-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn-small{
  padding:10px 14px;
  font-size:13px;
}

.cta-engine-contact{
  background:linear-gradient(135deg,#166534 0%,#16a34a 100%);
  color:#fff;
  text-align:center;
  padding:52px 0;
  margin-top:10px;
}

.cta-engine-contact h2{
  font-size:42px;
  margin:0 0 18px;
}

@media (max-width:1200px){
  .hero-engine-shell{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .hero-engine-image{
    min-height:420px;
  }

  .hero-engine-copy h1{
    font-size:54px;
  }

  .grid-cats-modern,
  .grid-products-modern{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:767px){
  .container-wide,
  .site-header .container{
    width:min(100%,calc(100% - 24px));
  }

  .hero-engine{
    padding:16px 12px 8px;
  }

  .hero-engine-copy{
    padding:28px 24px;
  }

  .hero-engine-copy h1{
    font-size:38px;
  }

  .hero-engine-copy p{
    font-size:16px;
  }

  .hero-engine-image{
    min-height:280px;
  }

  .grid-cats-modern,
  .grid-products-modern{
    grid-template-columns:1fr;
  }

  .section-title{
    font-size:32px;
  }

  .cta-engine-contact h2{
    font-size:30px;
  }
}



/* MTG HERO 90 */
.container-wide{
  width:90%;
  max-width:90%;
  margin:0 auto;
}
.site-header .container,
.container{
  width:90%;
  max-width:90%;
  margin:0 auto;
}

.hero-engine{
  padding:24px 0 10px;
  background:#ffffff;
}

.hero-only-image .hero-engine-shell{
  width:90%;
  margin:0 auto;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.08);
  background:#f3f4f6;
}

.hero-only-image .hero-engine-shell img{
  width:100%;
  height:clamp(320px, 42vw, 620px);
  display:block;
  object-fit:cover;
  object-position:center center;
}

.section{
  padding:44px 0;
}

.section-title{
  font-size:40px;
  margin:0 0 24px;
  line-height:1.08;
}

.grid-cats-modern{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.grid-products-modern{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.cat-modern img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.product-modern img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}

.cta-engine-contact{
  padding:46px 0;
}

.cta-engine-contact h2{
  font-size:38px;
  margin:0 0 16px;
}

@media (max-width: 1200px){
  .grid-cats-modern,
  .grid-products-modern{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 767px){
  .container-wide,
  .site-header .container,
  .container{
    width:94%;
    max-width:94%;
  }

  .hero-only-image .hero-engine-shell{
    width:94%;
  }

  .grid-cats-modern,
  .grid-products-modern{
    grid-template-columns:1fr;
  }

  .section-title{
    font-size:30px;
  }

  .cta-engine-contact h2{
    font-size:28px;
  }
}


/* HERO FULL OVERRIDE */
.hero.hero-engine.hero-only-image{
  padding: 24px 0 14px !important;
}

.hero.hero-engine.hero-only-image .hero-engine-shell{
  width: 90% !important;
  max-width: 1680px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
  grid-template-columns: 1fr !important;
  background: transparent !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.12) !important;
}

.hero.hero-engine.hero-only-image .hero-engine-shell img{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 30px !important;
}

@media (max-width: 768px){
  .hero.hero-engine.hero-only-image .hero-engine-shell{
    width: 94% !important;
    border-radius: 20px !important;
  }

  .hero.hero-engine.hero-only-image .hero-engine-shell img{
    border-radius: 20px !important;
  }
}

/* ===== MTG WHATSAPP RESTORE ===== */
:root{
  --mtg-green:#16c05d;
  --mtg-green-dark:#0d9f4b;
  --mtg-green-soft:#eafaf0;
  --mtg-text:#0f172a;
  --mtg-muted:#475569;
  --mtg-line:#e5e7eb;
}

body{
  background:
    radial-gradient(circle at top right, rgba(22,192,93,.10), transparent 26%),
    linear-gradient(180deg, #f7fff9 0%, #ffffff 22%, #ffffff 100%) !important;
}

.hero-engine-home{
  padding: 24px 0 14px !important;
}

.hero-engine-home__wrap{
  width: 90%;
  max-width: 1680px;
  margin: 0 auto;
}

.hero-engine-home__media{
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(22,192,93,.16), 0 18px 40px rgba(15,23,42,.08);
  background: #dff7e8;
  border: 1px solid rgba(22,192,93,.14);
}

.hero-engine-home__media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section{
  padding: 34px 0;
}

.section-title{
  color: var(--mtg-text);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}

.section-title.center{
  text-align: center;
}

#categorias .container,
#productos .container{
  width: 90%;
  max-width: 1680px;
  margin: 0 auto;
}

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

.cat-item{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border-radius: 22px;
  background: linear-gradient(180deg,#ffffff 0%, #f5fff8 100%);
  border: 1px solid rgba(22,192,93,.14);
  box-shadow: 0 12px 30px rgba(22,192,93,.08);
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
  transition: .18s ease;
}

.cat-item:hover{
  transform: translateY(-3px);
  border-color: rgba(22,192,93,.28);
  box-shadow: 0 18px 34px rgba(22,192,93,.14);
}

.section-products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 22px !important;
}

.section-products ul.products li.product{
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(22,192,93,.12) !important;
  box-shadow: 0 14px 34px rgba(22,192,93,.08) !important;
}

.section-products ul.products li.product a img{
  margin: 0 !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.section-products ul.products li.product .woocommerce-loop-product__title{
  color: #0f172a !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  padding: 18px 18px 8px !important;
  margin: 0 !important;
}

.section-products ul.products li.product .price{
  color: var(--mtg-green-dark) !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  padding: 0 18px 14px !important;
}

.section-products ul.products li.product .button{
  display: block !important;
  margin: 0 18px 18px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg,var(--mtg-green) 0%, var(--mtg-green-dark) 100%) !important;
  color: #fff !important;
  text-align: center !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
}

@media (max-width: 1024px){
  .cats-grid,
  .section-products ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .hero-engine-home__wrap,
  #categorias .container,
  #productos .container{
    width: 94%;
  }

  .hero-engine-home__media{
    border-radius: 20px;
  }

  .cats-grid,
  .section-products ul.products{
    grid-template-columns: 1fr !important;
  }

  .section-title{
    font-size: 34px;
  }
}

/* ===== MOCKUP COMPACT FIX ===== */
.hero-engine-home{
  padding: 18px 0 8px !important;
}

.hero-engine-home__wrap{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.hero-engine-home__media{
  max-width: 1180px !important;
  margin: 0 auto !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 32px rgba(15,23,42,.08), 0 10px 24px rgba(22,192,93,.10) !important;
}

.hero-engine-home__media img{
  width: 100% !important;
  aspect-ratio: 16 / 7.6 !important;
  object-fit: cover !important;
  display: block !important;
}

.section{
  padding: 20px 0 !important;
}

#categorias .container,
#productos .container{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.section-title{
  font-size: clamp(20px, 2.4vw, 34px) !important;
  margin: 0 0 14px !important;
  line-height: 1.08 !important;
}

.cats-grid{
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 12px !important;
}

.cat-item{
  min-height: 68px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  box-shadow: 0 8px 18px rgba(22,192,93,.06) !important;
}

.section-products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
}

.section-products ul.products li.product{
  border-radius: 16px !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06) !important;
}

.section-products ul.products li.product a img{
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.section-products ul.products li.product .woocommerce-loop-product__title{
  font-size: 15px !important;
  line-height: 1.2 !important;
  padding: 12px 12px 6px !important;
  min-height: 42px !important;
}

.section-products ul.products li.product .price{
  font-size: 18px !important;
  padding: 0 12px 10px !important;
}

.section-products ul.products li.product .button{
  margin: 0 12px 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

@media (max-width: 1024px){
  .hero-engine-home__wrap,
  #categorias .container,
  #productos .container{
    max-width: 94% !important;
  }

  .section-products ul.products,
  .cats-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .hero-engine-home__media img{
    aspect-ratio: 16 / 10 !important;
  }

  .section-products ul.products,
  .cats-grid{
    grid-template-columns: 1fr !important;
  }
}

/* ===== FIX GRID WOOCOMMERCE ===== */
.section-products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
}

.section-products ul.products::before,
.section-products ul.products::after{
  display: none !important;
  content: none !important;
}

.section-products ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.section-products ul.products li.product:nth-child(4n+1),
.section-products ul.products li.product.first,
.section-products ul.products li.product.last,
.woocommerce ul.products li.product:nth-child(4n+1),
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last{
  clear: none !important;
}

.section-products ul.products li.product a.woocommerce-LoopProduct-link{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.section-products ul.products li.product .button{
  margin-top: auto !important;
}

@media (max-width: 1024px){
  .section-products ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .section-products ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* ===== RECENT + FOOTER CTA ===== */
.section-recent{
  padding-top: 8px !important;
}

.mtg-footer-cta{
  padding: 28px 0 18px;
}

.mtg-footer-cta__wrap{
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg,#16c05d 0%,#11a84f 55%,#0d8d43 100%);
  box-shadow: 0 18px 40px rgba(22,192,93,.18);
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mtg-footer-cta__copy h2{
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.mtg-footer-cta__copy p{
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 16px;
}

.mtg-footer-cta__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  background: #fff;
  color: #11984a;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  text-align: center;
}

.site-footer-centered{
  padding: 18px 0 28px;
}

.site-footer-centered__inner{
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 767px){
  .mtg-footer-cta__wrap{
    width: 94%;
    padding: 24px 18px;
    flex-direction: column;
    text-align: center;
  }

  .site-footer-centered__inner{
    width: 94%;
  }
}

/* ===== RECIEN AÑADIDOS COMPACTO ===== */
.section-recent .container{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.section-recent ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
}

.section-recent ul.products::before,
.section-recent ul.products::after{
  display: none !important;
  content: none !important;
}

.section-recent ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(22,192,93,.12) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06) !important;
}

.section-recent ul.products li.product a.woocommerce-LoopProduct-link{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.section-recent ul.products li.product a img{
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.section-recent ul.products li.product .woocommerce-loop-product__title{
  font-size: 15px !important;
  line-height: 1.2 !important;
  padding: 12px 12px 6px !important;
  min-height: 42px !important;
  margin: 0 !important;
}

.section-recent ul.products li.product .price{
  font-size: 18px !important;
  padding: 0 12px 10px !important;
  color: #0d9f4b !important;
  font-weight: 900 !important;
}

.section-recent ul.products li.product .button{
  margin: 0 12px 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  margin-top: auto !important;
}

@media (max-width: 1024px){
  .section-recent ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .section-recent ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* ===== MTG WHATSAPP BRAND GLOBAL ===== */
:root{
  --wa-green:#16c05d;
  --wa-green-dark:#0e9e49;
  --wa-green-soft:#ecfbf2;
  --wa-line:#dff3e6;
  --wa-text:#0f172a;
  --wa-muted:#475569;
  --wa-shadow:0 14px 34px rgba(22,192,93,.10);
}

body{
  background:
    radial-gradient(circle at top right, rgba(22,192,93,.08), transparent 26%),
    linear-gradient(180deg,#f7fff9 0%,#ffffff 24%,#ffffff 100%) !important;
  color: var(--wa-text) !important;
}

.site-header,
header.site-header{
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--wa-line) !important;
}

.site-header .container,
.site-header-inner,
header.site-header .container{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.site-header a,
header.site-header a{
  color: var(--wa-text) !important;
}

.site-header .menu a:hover,
header.site-header .menu a:hover{
  color: var(--wa-green-dark) !important;
}

button,
.button,
.btn,
input[type="submit"],
input[type="button"],
a.button,
.add_to_cart_button,
.single_add_to_cart_button{
  background: linear-gradient(135deg,var(--wa-green) 0%,var(--wa-green-dark) 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(22,192,93,.14) !important;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover{
  filter: brightness(.96) !important;
  transform: translateY(-1px);
}

/* cards generales */
.section-products ul.products li.product,
.section-recent ul.products li.product,
.woocommerce ul.products li.product{
  border: 1px solid var(--wa-line) !important;
  box-shadow: var(--wa-shadow) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.woocommerce ul.products li.product .price,
.section-products ul.products li.product .price,
.section-recent ul.products li.product .price{
  color: var(--wa-green-dark) !important;
  font-weight: 900 !important;
}

/* ===== SINGLE PRODUCT WHATSAPP BRAND ===== */
.single-product .site-main,
.single-product .content-area,
.single-product .woocommerce{
  width: 90% !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product div.product{
  display: grid !important;
  grid-template-columns: minmax(0,1.02fr) minmax(320px,.98fr) !important;
  gap: 28px !important;
  align-items: start !important;
  padding: 10px 0 28px !important;
}

.single-product div.product div.images,
.single-product div.product div.summary{
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product div.product div.images{
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 24px !important;
  padding: 18px !important;
  box-shadow: var(--wa-shadow) !important;
}

.single-product div.product div.images img{
  border-radius: 18px !important;
}

.single-product div.product div.summary{
  background: linear-gradient(180deg,#ffffff 0%,#f8fff9 100%) !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: var(--wa-shadow) !important;
}

.single-product .product_title{
  font-size: clamp(28px,3vw,44px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.03em !important;
  margin-bottom: 10px !important;
  color: var(--wa-text) !important;
}

.single-product div.product p.price,
.single-product div.product span.price{
  color: var(--wa-green-dark) !important;
  font-size: clamp(28px,2.6vw,40px) !important;
  font-weight: 900 !important;
  margin-bottom: 12px !important;
}

.single-product .woocommerce-product-details__short-description{
  color: var(--wa-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin-bottom: 18px !important;
}

.single-product form.cart{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}

.single-product form.cart .quantity .qty{
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1px solid var(--wa-line) !important;
  padding: 0 12px !important;
}

.single-product .product_meta{
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--wa-line) !important;
  color: var(--wa-muted) !important;
}

.single-product .woocommerce-tabs{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto 28px !important;
}

.single-product .woocommerce-tabs ul.tabs{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

.single-product .woocommerce-tabs ul.tabs::before{
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li{
  border: 1px solid var(--wa-line) !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a{
  display: block !important;
  padding: 10px 16px !important;
  color: var(--wa-text) !important;
}

.single-product .woocommerce-tabs .panel{
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 22px !important;
  padding: 22px !important;
  box-shadow: var(--wa-shadow) !important;
}

.single-product .related.products,
.single-product .upsells.products{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto 34px !important;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2{
  text-align: center !important;
  font-size: clamp(24px,2.5vw,36px) !important;
  margin-bottom: 16px !important;
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 14px !important;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after,
.single-product .upsells.products ul.products::before,
.single-product .upsells.products ul.products::after{
  display: none !important;
  content: none !important;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
}

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

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .single-product .site-main,
  .single-product .content-area,
  .single-product .woocommerce,
  .single-product .woocommerce-tabs,
  .single-product .related.products,
  .single-product .upsells.products{
    width: 94% !important;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* ===== SINGLE PRODUCT FULL WIDTH + RELATED BELOW ===== */
.single-product .site-main,
.single-product .content-area,
.single-product .woocommerce{
  width: 90% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product div.product{
  display: grid !important;
  grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr) !important;
  gap: 32px !important;
  align-items: start !important;
  padding: 12px 0 24px !important;
}

.single-product div.product div.images,
.single-product div.product div.summary{
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product div.product div.images{
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 24px !important;
  padding: 18px !important;
  box-shadow: var(--wa-shadow) !important;
}

.single-product div.product div.images img{
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
}

.single-product div.product div.summary{
  background: linear-gradient(180deg,#ffffff 0%,#f8fff9 100%) !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 24px !important;
  padding: 26px !important;
  box-shadow: var(--wa-shadow) !important;
  min-height: 100% !important;
}

.single-product .woocommerce-tabs{
  width: 90% !important;
  max-width: 1440px !important;
  margin: 0 auto 28px !important;
}

.single-product .woocommerce-tabs .panel{
  width: 100% !important;
}

.single-product .related.products,
.single-product .upsells.products{
  width: 90% !important;
  max-width: 1440px !important;
  margin: 0 auto 34px !important;
  clear: both !important;
  display: block !important;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2{
  text-align: center !important;
  font-size: clamp(24px,2.4vw,38px) !important;
  margin: 0 0 18px !important;
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after,
.single-product .upsells.products ul.products::before,
.single-product .upsells.products ul.products::after{
  display: none !important;
  content: none !important;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid var(--wa-line) !important;
  box-shadow: var(--wa-shadow) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link,
.single-product .upsells.products ul.products li.product a.woocommerce-LoopProduct-link{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.single-product .related.products ul.products li.product a img,
.single-product .upsells.products ul.products li.product a img{
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title{
  font-size: 15px !important;
  line-height: 1.2 !important;
  padding: 12px 12px 6px !important;
  min-height: 42px !important;
  margin: 0 !important;
  color: var(--wa-text) !important;
}

.single-product .related.products ul.products li.product .price,
.single-product .upsells.products ul.products li.product .price{
  font-size: 18px !important;
  padding: 0 12px 10px !important;
  color: var(--wa-green-dark) !important;
  font-weight: 900 !important;
}

.single-product .related.products ul.products li.product .button,
.single-product .upsells.products ul.products li.product .button{
  margin: 0 12px 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  margin-top: auto !important;
}

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

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .single-product .site-main,
  .single-product .content-area,
  .single-product .woocommerce,
  .single-product .woocommerce-tabs,
  .single-product .related.products,
  .single-product .upsells.products{
    width: 94% !important;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* ===== FORCE RELATED PRODUCTS BELOW ===== */
.single-product div.product{
  display: block !important;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .images,
.single-product div.product .summary{
  float: none !important;
}

.single-product div.product .images{
  width: 52% !important;
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: top !important;
}

.single-product div.product .summary{
  width: 44% !important;
  margin: 0 0 0 3% !important;
  display: inline-block !important;
  vertical-align: top !important;
}

.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products{
  clear: both !important;
  display: block !important;
  float: none !important;
  width: 90% !important;
  max-width: 1440px !important;
  margin: 28px auto 0 !important;
}

.single-product .woocommerce-tabs{
  order: 99 !important;
}

.single-product .related.products,
.single-product .upsells.products{
  order: 100 !important;
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  width: 100% !important;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 1024px){
  .single-product div.product .images,
  .single-product div.product .summary{
    width: 100% !important;
    margin: 0 0 20px !important;
    display: block !important;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .single-product .woocommerce-tabs,
  .single-product .related.products,
  .single-product .upsells.products{
    width: 94% !important;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* ===== RESTORE SINGLE PRODUCT TOP / KEEP RELATED BELOW ===== */
.single-product div.product{
  display: grid !important;
  grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr) !important;
  gap: 32px !important;
  align-items: start !important;
  padding: 12px 0 24px !important;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .images{
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
  grid-column: 1 !important;
}

.single-product div.product .summary{
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
  grid-column: 2 !important;
}

.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products{
  grid-column: 1 / -1 !important;
  width: 90% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  clear: both !important;
  float: none !important;
  display: block !important;
}

.single-product .woocommerce-tabs{
  margin-top: 8px !important;
  margin-bottom: 24px !important;
}

.single-product .related.products,
.single-product .upsells.products{
  margin-top: 0 !important;
  margin-bottom: 34px !important;
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
}

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

  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .images,
  .single-product div.product .summary{
    grid-column: auto !important;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .single-product .woocommerce-tabs,
  .single-product .related.products,
  .single-product .upsells.products{
    width: 94% !important;
  }

  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* ===== MTG HEADER REAL ===== */
.mtg-topbar{
  width: 90%;
  max-width: 1380px;
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand{
  font-size: 24px;
  font-weight: 900;
  color: var(--wa-text);
  letter-spacing: -.02em;
}

.mtg-main-nav{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mtg-main-nav a{
  color: var(--wa-text);
  font-weight: 700;
}

.mtg-cart-link{
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--wa-line);
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}

.mtg-cart-link__count{
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mtg-wa-top-btn{
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,var(--wa-green) 0%,var(--wa-green-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(22,192,93,.14);
}

.mtg-whatsapp-product-btn{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  margin-top: 10px !important;
  background: linear-gradient(135deg,var(--wa-green) 0%,var(--wa-green-dark) 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(22,192,93,.14);
}

@media (max-width: 1024px){
  .mtg-topbar{
    width: 94%;
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .mtg-main-nav{
    width: 100%;
    gap: 10px;
  }
}

@media (max-width: 767px){
  .mtg-main-nav{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mtg-wa-top-btn,
  .mtg-cart-link{
    justify-content: center;
  }
}

/* ===== SINGLE PRODUCT COMPACT IMAGE + WA INLINE ===== */
.single-product .site-main,
.single-product .content-area,
.single-product .woocommerce{
  width: 90% !important;
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product div.product{
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr) !important;
  gap: 26px !important;
  align-items: start !important;
  padding: 10px 0 24px !important;
}

.single-product div.product div.images{
  max-width: 860px !important;
}

.single-product div.product div.images,
.single-product div.product .woocommerce-product-gallery{
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  border-radius: 24px !important;
  padding: 14px !important;
  box-shadow: var(--wa-shadow) !important;
}

.single-product div.product div.images img,
.single-product div.product .woocommerce-product-gallery img{
  width: 100% !important;
  max-height: 760px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

/* carrito + whatsapp inline */
.single-product form.cart{
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
}

.single-product form.cart .quantity{
  margin: 0 !important;
}

.single-product form.cart .single_add_to_cart_button{
  margin: 0 !important;
}

.single-product .mtg-whatsapp-product-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  margin: 0 0 0 8px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* ocultar texto repetido debajo */
.single-product .summary > p:not(.price):not(.stock):not(.woocommerce-product-details__short-description):not(.form-row),
.single-product .summary .product_meta + p{
  display: none !important;
}

/* mantener descripcion/meta visibles */
.single-product .summary .woocommerce-product-details__short-description,
.single-product .summary .product_meta{
  display: block !important;
}

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

  .single-product div.product div.images{
    max-width: none !important;
  }

  .single-product div.product div.images img,
  .single-product div.product .woocommerce-product-gallery img{
    max-height: none !important;
  }

  .single-product .mtg-whatsapp-product-btn{
    margin: 8px 0 0 0 !important;
  }
}

/* ===== SHOP CATEGORIES COMPACT ===== */
.post-type-archive-product .cats-grid,
.tax-product_cat .cats-grid,
.woocommerce-page .cats-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 12px !important;
}

.post-type-archive-product .cat-item,
.tax-product_cat .cat-item,
.woocommerce-page .cat-item{
  min-height: 68px !important;
  padding: 14px 12px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  box-shadow: 0 8px 18px rgba(22,192,93,.06) !important;
}

.post-type-archive-product #categorias .container,
.tax-product_cat #categorias .container,
.woocommerce-page #categorias .container{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.post-type-archive-product #categorias .section-title,
.tax-product_cat #categorias .section-title,
.woocommerce-page #categorias .section-title{
  font-size: clamp(20px, 2.2vw, 32px) !important;
  margin: 0 0 14px !important;
}

@media (max-width: 1024px){
  .post-type-archive-product .cats-grid,
  .tax-product_cat .cats-grid,
  .woocommerce-page .cats-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .post-type-archive-product .cats-grid,
  .tax-product_cat .cats-grid,
  .woocommerce-page .cats-grid{
    grid-template-columns: 1fr !important;
  }
}

/* ===== SHOP REAL CATEGORIES + SHOP COMPACT ===== */
.mtg-shop-cats{
  padding: 8px 0 20px !important;
}

.mtg-shop-cats .container,
.section-shop-main .container,
.shop-hero .container{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

.mtg-shop-cats .cats-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 12px !important;
}

.mtg-shop-cats .cat-item{
  min-height: 68px !important;
  padding: 14px 12px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg,#ffffff 0%, #f5fff8 100%) !important;
  border: 1px solid rgba(22,192,93,.14) !important;
  box-shadow: 0 8px 18px rgba(22,192,93,.06) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.section-shop-main ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
}

.section-shop-main ul.products::before,
.section-shop-main ul.products::after{
  display: none !important;
  content: none !important;
}

.section-shop-main ul.products li.product{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(22,192,93,.12) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06) !important;
}

.section-shop-main ul.products li.product a img{
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.section-shop-main ul.products li.product .woocommerce-loop-product__title{
  font-size: 15px !important;
  line-height: 1.2 !important;
  padding: 12px 12px 6px !important;
  min-height: 42px !important;
  margin: 0 !important;
}

.section-shop-main ul.products li.product .price{
  font-size: 18px !important;
  padding: 0 12px 10px !important;
  color: #0d9f4b !important;
  font-weight: 900 !important;
}

.section-shop-main ul.products li.product .button{
  margin: 0 12px 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  margin-top: auto !important;
}

@media (max-width: 1024px){
  .mtg-shop-cats .cats-grid,
  .section-shop-main ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 767px){
  .mtg-shop-cats .container,
  .section-shop-main .container,
  .shop-hero .container{
    width: 94% !important;
  }

  .mtg-shop-cats .cats-grid,
  .section-shop-main ul.products{
    grid-template-columns: 1fr !important;
  }
}

/* RESTORE TOP WHATSAPP BUTTON */
.mtg-main-nav{
  justify-content: flex-end !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.mtg-wa-top-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg,var(--wa-green) 0%,var(--wa-green-dark) 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(22,192,93,.14) !important;
  white-space: nowrap !important;
}

/* FORCE TOP WHATSAPP BUTTON */
.mtg-topbar{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  min-height: 78px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.mtg-main-nav{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.mtg-wa-top-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg,var(--wa-green) 0%,var(--wa-green-dark) 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 24px rgba(22,192,93,.14) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 1024px){
  .mtg-topbar{
    width: 94% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px 0 !important;
  }
}

/* HEADER: RESTORE WHATSAPP BUTTON */
.mtg-topbar{
  width: 90% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  min-height: 78px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.mtg-main-nav{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.mtg-main-nav > a{
  display: inline-flex !important;
  align-items: center !important;
}

.mtg-cart-link{
  min-height: 46px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #fff !important;
  border: 1px solid var(--wa-line) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.04) !important;
}

.mtg-cart-link__count{
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--wa-green) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.mtg-wa-top-btn{
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg,var(--wa-green) 0%,var(--wa-green-dark) 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(22,192,93,.14) !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mtg-wa-top-btn__icon{
  font-size: 15px !important;
  line-height: 1 !important;
}

@media (max-width: 1024px){
  .mtg-topbar{
    width: 94% !important;
    min-height: auto !important;
    padding: 14px 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .mtg-main-nav{
    width: 100% !important;
  }
}

/* LOGO HEADER */
.site-brand{
  display: inline-flex !important;
  align-items: center !important;
  min-height: 52px !important;
}

.mtg-site-logo{
  display: block !important;
  max-width: 240px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 767px){
  .mtg-site-logo{
    max-width: 180px !important;
    max-height: 60px !important;
  }
}

/* CUSTOM DOMAIN INSTRUCTIONS BOX */
.mtg-domain-instructions-box{
  background:#fff;
  border:1px solid #dfe8e3;
  border-left:4px solid #16c05d;
  border-radius:12px;
  padding:16px 18px;
  white-space:pre-line;
  line-height:1.65;
  color:#334155;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}

/* CUSTOM DOMAIN GUIDE IMPROVED */
.mtg-domain-instructions-box{
  background: linear-gradient(180deg,#ffffff 0%,#f7fff9 100%);
  border: 1px solid #dfe8e3;
  border-left: 6px solid #16c05d;
  border-radius: 16px;
  padding: 20px 22px;
  white-space: pre-line;
  line-height: 1.75;
  color: #334155;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  font-size: 14px;
}

.mtg-domain-instructions-box strong{
  color: #0f172a;
  font-size: 15px;
}

.mtg-domain-instructions-box code{
  background: #ecfdf5;
  color: #166534;
  padding: 2px 6px;
  border-radius: 6px;
}

.mtg-domain-instructions-box br + br{
  line-height: 2.1;
}

/* DOMAIN GUIDE BOX */
.mtg-domain-guide-box{
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%);
  border:1px solid #dfe8e3;
  border-left:6px solid #16c05d;
  border-radius:16px;
  padding:22px;
  margin:12px 0 20px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.mtg-domain-guide-box h2{
  margin:0 0 16px;
  font-size:24px;
  line-height:1.1;
  color:#0f172a;
}
.mtg-domain-guide-card{
  background:#fff;
  border:1px solid #e5efe8;
  border-radius:14px;
  padding:16px 18px;
  margin:0 0 14px;
}
.mtg-domain-guide-card--primary{
  border-left:5px solid #16c05d;
  background:#f8fff9;
}
.mtg-domain-guide-card--tip{
  border-left:5px solid #0ea5e9;
  background:#f7fcff;
}
.mtg-domain-guide-card h3{
  margin:0 0 10px;
  font-size:18px;
  color:#0f172a;
}
.mtg-domain-guide-card p,
.mtg-domain-guide-card li{
  font-size:14px;
  line-height:1.7;
  color:#334155;
}
.mtg-domain-guide-card ol{
  margin:0;
  padding-left:20px;
}
.mtg-domain-guide-card code{
  background:#ecfdf5;
  color:#166534;
  padding:2px 6px;
  border-radius:6px;
}

/* HIDE TOP GUIDE, KEEP BOTTOM GUIDE */
.mtg-domain-guide-notice{
  display:none !important;
}
.mtg-domain-guide-box--bottom{
  margin:24px 0 20px !important;
}

/* HIDE TOP DOMAIN GUIDE DEFINITIVELY */
.notice.mtg-domain-guide-notice,
div.notice.mtg-domain-guide-notice,
.wrap > .notice.mtg-domain-guide-notice,
.wrap > div.notice.mtg-domain-guide-notice{
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* DOMAIN INSTRUCTION PRESETS */
.mtg-domain-preset-box{
  background:#fff;
  border:1px solid #dfe8e3;
  border-radius:12px;
  padding:14px 16px;
  margin:0 0 14px;
}

.mtg-domain-preset-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 16px;
  margin-top:10px;
}

.mtg-domain-preset-item{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  line-height:1.5;
}

.mtg-domain-preset-item input{
  margin-top:3px;
}

@media (max-width: 900px){
  .mtg-domain-preset-grid{
    grid-template-columns:1fr;
  }
}

/* DOMAIN SUPPORT CTA */
.mtg-domain-support-cta{
  margin: 24px 0 18px !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(22,192,93,.18) !important;
  background: linear-gradient(135deg,#16c05d 0%,#11a84f 55%,#0d8d43 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(22,192,93,.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.mtg-domain-support-cta__text{
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.mtg-domain-support-cta__text strong{
  font-size: 18px !important;
  line-height: 1.1 !important;
  color: #fff !important;
}

.mtg-domain-support-cta__text span{
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,.96) !important;
}

.mtg-domain-support-cta__btn{
  min-height: 48px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  color: #11984a !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
  white-space: nowrap !important;
}

.mtg-domain-support-cta__or{
  width: 100% !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.92) !important;
  margin-top: -4px !important;
}

@media (max-width: 782px){
  .mtg-domain-support-cta{
    padding: 16px !important;
  }

  .mtg-domain-support-cta__btn{
    width: 100% !important;
  }
}


/* ===== HERO 50/50 : subir imagen lado derecho ===== */
.hero-50-50{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:start !important;
  gap:40px;
}

.hero-media{
  display:flex;
  justify-content:center;
  align-items:flex-start !important;
}

.hero-media img{
  display:block;
  max-width:100%;
  height:auto;
  transform:translateY(-20px);
}

