:root{--mgc-green:#173e2b;--mgc-pink:#d9416c;--mgc-cream:#fffaf6;--mgc-border:#ead6ce;--mgc-gold:#b87a28;--mgc-ink:#17372b}
body.mgcat-active{background:#fffdf9}
body.mgcat-active .woocommerce-products-header{display:none!important}
body.mgcat-active .site-main,body.mgcat-active .content-area,body.mgcat-active main{max-width:none!important;width:100%!important}
.mgcat-shell{max-width:1360px;margin:0 auto;padding:0 24px;box-sizing:border-box}
.mgcat-hero{position:relative;margin:26px 0 22px;border-radius:20px;overflow:hidden;min-height:280px;background:#173e2b}
.mgcat-hero-img{display:block;width:100%;height:clamp(280px,28vw,430px);object-fit:cover}
.mgcat-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,36,28,.72),rgba(12,36,28,.12) 60%,rgba(12,36,28,.05))}
.mgcat-hero-copy{position:absolute;left:clamp(24px,5vw,70px);top:50%;transform:translateY(-50%);max-width:640px;color:#fff}.mgcat-hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,4vw,64px);line-height:1;margin:0 0 14px}.mgcat-hero-copy p{font-size:clamp(16px,1.4vw,20px);line-height:1.5;margin:0;max-width:620px}
.mgcat-simple-hero{margin:30px 0 22px;padding:32px;border:1px solid var(--mgc-border);border-radius:20px;background:linear-gradient(135deg,#fff8f5,#fffdf9)}
.mgcat-simple-hero span,.mgcat-products-head span{font-size:12px;letter-spacing:.22em;font-weight:800;color:var(--mgc-gold)}.mgcat-simple-hero h1,.mgcat-products-head h2{font-family:Georgia,'Times New Roman',serif;color:var(--mgc-ink);font-size:clamp(32px,3vw,46px);margin:7px 0}.mgcat-simple-hero p,.mgcat-products-head p{margin:0;color:#66756d}
.mgcat-nav-wrap{margin:0 0 28px}.mgcat-nav-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mgcat-nav-card{display:grid;grid-template-columns:52px minmax(0,1fr) 22px;gap:10px;align-items:center;min-height:88px;padding:14px;border:1px solid var(--mgc-border);border-radius:16px;background:#fff8f5;color:#263e34!important;text-decoration:none!important;transition:.2s ease}.mgcat-nav-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(68,42,33,.08)}.mgcat-nav-card.is-active{background:linear-gradient(135deg,#173e2b,#2e6044);color:#fff!important;border-color:#173e2b}.mgcat-nav-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#fff;font-size:25px}.mgcat-nav-copy strong{display:block;font-size:14px;line-height:1.2}.mgcat-nav-copy small{display:block;margin-top:4px;color:inherit;opacity:.75;line-height:1.25}.mgcat-nav-card b{color:var(--mgc-pink);font-size:20px}.mgcat-nav-card.is-active b{color:#fff}
.mgcat-media-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1.25fr);gap:28px;align-items:center;padding:28px;border:1px solid var(--mgc-border);border-radius:22px;background:#fff7f4;margin:28px 0}.mgcat-media-copy h3{font-family:Georgia,'Times New Roman',serif;margin:0 0 12px;font-size:clamp(28px,3vw,42px);line-height:1.05;color:var(--mgc-ink)}.mgcat-media-copy p{font-size:17px;line-height:1.55;margin:0 0 18px;color:#53635b}.mgcat-video-box{aspect-ratio:16/9;background:#000;border-radius:18px;overflow:hidden}.mgcat-video-box video{width:100%;height:100%;display:block;object-fit:contain;background:#000}.mgcat-btn{display:inline-flex;gap:12px;align-items:center;padding:11px 18px;border-radius:999px;background:var(--mgc-green);color:#fff!important;text-decoration:none!important;font-weight:800}
.mgcat-products-head{border-top:1px solid #eaded8;padding-top:16px;margin:30px 0 16px}.mgcat-products{max-width:1360px;margin:0 auto 46px;padding:0 24px;box-sizing:border-box}.mgcat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mgcat-product-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 43%;min-height:310px;background:linear-gradient(180deg,#fffdfb,#fff5f2);border:1px solid var(--mgc-border);border-radius:18px;overflow:hidden;box-shadow:0 8px 22px rgba(69,44,34,.05)}.mgcat-copy{grid-column:1;grid-row:1;padding:58px 22px 22px;display:flex;flex-direction:column;align-items:flex-start;z-index:2}.mgcat-img-link{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;background:#fff}.mgcat-img{width:100%;height:100%;object-fit:contain;min-height:310px}.mgcat-badge{position:absolute;left:20px;top:18px;padding:7px 11px;border-radius:999px;background:#f8cddd;color:#b52d58;font-size:11px;font-weight:800;z-index:4}.mgcat-face{position:absolute;right:15px;top:14px;width:48px!important;height:48px!important;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 3px 9px rgba(0,0,0,.15);z-index:5}.mgcat-copy h3{font-family:Georgia,'Times New Roman',serif;font-size:30px;line-height:1.02;margin:0 0 9px;color:var(--mgc-ink)}.mgcat-copy h3 a{color:inherit!important;text-decoration:none!important}.mgcat-price{color:var(--mgc-pink);font-size:22px;font-weight:800;margin-bottom:12px}.mgcat-copy p{font-size:14px;line-height:1.45;color:#53635b;margin:0 0 18px;max-width:95%}
body.mgcat-active ul.products,body.mgcat-active .wc-block-product-template,body.mgcat-active .wp-block-woocommerce-product-template,body.mgcat-active .wc-block-grid__products,body.mgcat-active .woocommerce-result-count,body.mgcat-active .woocommerce-ordering,body.mgcat-active .woocommerce-pagination{display:none!important}
@media(max-width:1000px){.mgcat-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mgcat-grid{grid-template-columns:1fr}.mgcat-product-card{grid-template-columns:minmax(0,1fr) 42%}}
@media(max-width:760px){.mgcat-shell,.mgcat-products{padding:0 14px}.mgcat-hero{min-height:240px}.mgcat-hero-img{height:320px}.mgcat-hero-overlay{background:linear-gradient(90deg,rgba(12,36,28,.76),rgba(12,36,28,.28))}.mgcat-hero-copy{left:22px;right:22px;max-width:none}.mgcat-nav-grid{grid-template-columns:1fr}.mgcat-media-card{grid-template-columns:1fr;padding:18px}.mgcat-product-card{grid-template-columns:1fr;min-height:0}.mgcat-copy{grid-column:1;grid-row:2;padding:20px}.mgcat-img-link{grid-column:1;grid-row:1}.mgcat-img{min-height:0;aspect-ratio:4/3}.mgcat-face{width:44px!important;height:44px!important}.mgcat-copy h3{font-size:26px}}

/* ===== v1.3 — Hero premium del mismo tamaño visual que Inicio y Flores ===== */
body.mgcat-active .mgcat-shell{
  max-width:1360px;
  width:100%;
  margin:0 auto;
  padding:0 24px;
  overflow:visible;
}
body.mgcat-active .mgcat-hero{
  position:relative !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  width:min(calc(100vw - 24px), 2048px) !important;
  max-width:2048px !important;
  min-height:0 !important;
  aspect-ratio:2048 / 732 !important;
  margin:26px auto 30px !important;
  padding:0 !important;
  border-radius:18px !important;
  border:1px solid #ecd8d1 !important;
  overflow:hidden !important;
  background:#173e2b !important;
  box-shadow:0 10px 28px rgba(55,40,31,.05) !important;
}
body.mgcat-active .mgcat-hero-img{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
}
body.mgcat-active .mgcat-hero-overlay{
  z-index:1 !important;
  background:linear-gradient(90deg,rgba(10,34,26,.68) 0%,rgba(10,34,26,.26) 42%,rgba(10,34,26,.04) 76%) !important;
}
body.mgcat-active .mgcat-hero-copy{
  z-index:2 !important;
  left:clamp(34px,6vw,110px) !important;
  max-width:min(620px,42vw) !important;
}
body.mgcat-active .mgcat-hero-copy h1{
  font-size:clamp(42px,4.3vw,72px) !important;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}
body.mgcat-active .mgcat-hero-copy p{
  font-size:clamp(16px,1.35vw,21px) !important;
  text-shadow:0 1px 7px rgba(0,0,0,.2);
}
@media(max-width:900px){
  body.mgcat-active .mgcat-shell{padding:0 14px}
  body.mgcat-active .mgcat-hero{
    width:calc(100vw - 16px) !important;
    aspect-ratio:16 / 9 !important;
    border-radius:16px !important;
    margin-top:18px !important;
  }
  body.mgcat-active .mgcat-hero-copy{
    left:26px !important;
    right:26px !important;
    max-width:70% !important;
  }
}
@media(max-width:600px){
  body.mgcat-active .mgcat-hero{
    width:calc(100vw - 12px) !important;
    min-height:300px !important;
    aspect-ratio:auto !important;
  }
  body.mgcat-active .mgcat-hero-copy{max-width:82% !important;left:22px !important;right:18px !important}
  body.mgcat-active .mgcat-hero-copy h1{font-size:34px !important}
  body.mgcat-active .mgcat-hero-copy p{font-size:15px !important;line-height:1.4 !important}
}
\n\n/* ===== v1.4 — Ocultar de forma definitiva el archivo viejo del tema ===== */
body.mgcat-active [data-mgcat-hidden-old="1"]{display:none!important}
body.mgcat-active .woocommerce-products-header,
body.mgcat-active .woocommerce-products-header__title,
body.mgcat-active .woocommerce-products-header__title.page-title,
body.mgcat-active .term-description{display:none!important}
/* Evita espacios residuales del bloque viejo cuando el tema deja wrappers vacíos. */
body.mgcat-active main > :empty{display:none!important}

/* ===== v1.5 — Hero realmente del ancho visual de Inicio/Flores ===== */
body.mgcat-active .mgcat-shell{
  width:100% !important;
  max-width:1360px !important;
  margin:0 auto !important;
  padding:0 24px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
body.mgcat-active .mgcat-hero{
  left:auto !important;
  transform:none !important;
  width:calc(100vw - 32px) !important;
  max-width:2048px !important;
  aspect-ratio:2048 / 732 !important;
  min-height:0 !important;
  margin-top:28px !important;
  margin-right:auto !important;
  margin-bottom:34px !important;
  margin-left:max(calc((1360px - 100vw) / 2 + 16px), calc((100% - 2048px) / 2)) !important;
  border-radius:20px !important;
  overflow:hidden !important;
}
/* Breakout más fiable: en navegadores modernos centra el hero contra el viewport. */
@supports (margin-left: calc(50% - 50vw)){
  body.mgcat-active .mgcat-hero{
    margin-left:calc(50% - 50vw + 16px) !important;
    margin-right:calc(50% - 50vw + 16px) !important;
  }
}
body.mgcat-active .mgcat-hero-img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
body.mgcat-active .mgcat-hero-copy{
  left:clamp(42px,6vw,120px) !important;
  max-width:min(700px,46vw) !important;
}
body.mgcat-active .mgcat-hero-copy h1{font-size:clamp(44px,4.5vw,76px) !important;}
body.mgcat-active .mgcat-hero-copy p{font-size:clamp(16px,1.35vw,21px) !important;}
/* Restos del archivo viejo del tema: si el script los marca, no reservan espacio. */
body.mgcat-active [data-mgcat-hidden-old="1"]{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
  height:0 !important;
  overflow:hidden !important;
}
@media(max-width:900px){
  body.mgcat-active .mgcat-shell{padding:0 14px !important}
  body.mgcat-active .mgcat-hero{
    width:calc(100vw - 20px) !important;
    aspect-ratio:16 / 9 !important;
    margin-left:calc(50% - 50vw + 10px) !important;
    margin-right:calc(50% - 50vw + 10px) !important;
  }
}
@media(max-width:600px){
  body.mgcat-active .mgcat-hero{
    width:calc(100vw - 12px) !important;
    margin-left:calc(50% - 50vw + 6px) !important;
    margin-right:calc(50% - 50vw + 6px) !important;
    min-height:300px !important;
    aspect-ratio:auto !important;
  }
}

/* ===== v1.6 — Hero centrado, más arriba y videos separados ===== */
body.mgcat-active .mgcat-shell{
  width:100% !important;
  max-width:1408px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:24px !important;
  padding-right:24px !important;
  box-sizing:border-box !important;
}
body.mgcat-active .mgcat-hero{
  left:auto !important;
  right:auto !important;
  transform:none !important;
  width:100% !important;
  max-width:1360px !important;
  aspect-ratio:2048 / 732 !important;
  min-height:0 !important;
  margin:8px auto 28px !important;
  border-radius:20px !important;
  overflow:hidden !important;
}
body.mgcat-active .mgcat-hero-copy{
  left:clamp(36px,5vw,84px) !important;
  max-width:min(650px,48%) !important;
}
/* El primer video queda después de la navegación; el segundo va después de los productos. */
body.mgcat-active .mgcat-media-slot-1{
  margin-top:34px !important;
  margin-bottom:46px !important;
}
body.mgcat-active .mgcat-shell-video-two{
  margin-top:18px !important;
  margin-bottom:58px !important;
}
body.mgcat-active .mgcat-shell-video-two .mgcat-media-slot-2{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
@media(max-width:900px){
  body.mgcat-active .mgcat-shell{
    max-width:100% !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
  body.mgcat-active .mgcat-hero{
    width:100% !important;
    max-width:none !important;
    aspect-ratio:16 / 9 !important;
    margin:8px auto 24px !important;
  }
  body.mgcat-active .mgcat-media-slot-1{margin:26px 0 38px !important;}
  body.mgcat-active .mgcat-shell-video-two{margin-top:8px !important;margin-bottom:38px !important;}
}
@media(max-width:600px){
  body.mgcat-active .mgcat-hero{
    width:100% !important;
    min-height:300px !important;
    aspect-ratio:auto !important;
    border-radius:16px !important;
  }
}


/* ===== v1.7 — Hero ancho como Inicio/Flores, centrado contra el viewport ===== */
body.mgcat-active .mgcat-hero{
  position:relative !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  width:calc(100vw - 48px) !important;
  max-width:1360px !important;
  aspect-ratio:2048 / 732 !important;
  min-height:0 !important;
  margin:8px 0 28px !important;
  border-radius:20px !important;
  overflow:hidden !important;
}
body.mgcat-active .mgcat-hero-img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
@media(max-width:900px){
  body.mgcat-active .mgcat-hero{
    width:calc(100vw - 28px) !important;
    max-width:none !important;
    aspect-ratio:16 / 9 !important;
    margin:8px 0 24px !important;
  }
}
@media(max-width:600px){
  body.mgcat-active .mgcat-hero{
    width:calc(100vw - 20px) !important;
    min-height:300px !important;
    aspect-ratio:auto !important;
    border-radius:16px !important;
  }
}
