
:root{
  --mg-green:#12331f;
  --mg-green-2:#1c4b2c;
  --mg-pink:#e93d72;
  --mg-cream:#fff8f2;
  --mg-soft:#fdebed;
  --mg-gold:#d89b35;
  --mg-ink:#153027;
}
.mg-home{
  font-family:Arial,Helvetica,sans-serif;color:var(--mg-ink);background:#fff;
  width:100vw;max-width:none;margin-left:calc(50% - 50vw);
  overflow:hidden;
}
.elementor-editor-active .mg-home,
.elementor-editor-preview .mg-home{
  width:100%;margin-left:0;max-width:none;
}

.mg-home *{box-sizing:border-box}
.mg-home a{text-decoration:none}
.mg-hero{
  position:relative; overflow:hidden; min-height:500px;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center; gap:10px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.96), rgba(255,255,255,.2) 32%, transparent 48%),
    linear-gradient(110deg,#fff7ef 0%,#fff0ed 48%,#f9d8df 100%);
  border-radius:0 0 28px 28px;
}
.mg-hero:before,.mg-hero:after{
  content:""; position:absolute; border-radius:50%; filter:blur(2px); opacity:.28; pointer-events:none;
}
.mg-hero:before{width:230px;height:230px;background:#f7b0c3;left:-60px;top:-70px}
.mg-hero:after{width:280px;height:280px;background:#f4d6a1;right:-90px;bottom:-130px}
.mg-hero-copy{
  position:relative;z-index:2;
  padding:56px 38px 56px max(32px,calc((100vw - 1180px)/2));
}
.mg-eyebrow{letter-spacing:.28em;color:#b56c2c;font-weight:700;font-size:14px;margin-bottom:8px}
.mg-hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,5.5vw,78px);line-height:.96;margin:0 0 22px;color:#14372a;max-width:680px}
.mg-hero h1::first-line{color:#14372a}
.mg-hero-copy p{font-size:20px;line-height:1.5;max-width:560px;margin:0 0 28px;color:#33473e}
.mg-hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.mg-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:999px;font-weight:700;transition:.2s ease;border:1px solid transparent}
.mg-btn:hover{transform:translateY(-1px)}
.mg-btn-dark{background:var(--mg-green);color:#fff}
.mg-btn-light{background:#fff;color:var(--mg-green);border-color:#b9c7bf}
.mg-hero-visual{
  align-self:stretch;position:relative;min-height:500px;
  display:flex;align-items:flex-end;justify-content:center;padding:10px 28px 0 10px;
}
.mg-hero-visual img{
  position:relative;z-index:1;width:min(100%,680px);max-height:485px;
  object-fit:contain;object-position:center bottom;
  filter:drop-shadow(0 16px 24px rgba(0,0,0,.14))
}
.mg-hero-note{position:absolute;z-index:2;right:36px;bottom:36px;background:rgba(18,51,31,.92);color:#fff;padding:12px 16px;border-radius:14px;font-family:Georgia,serif;font-style:italic}
.mg-benefits{display:grid;grid-template-columns:repeat(4,1fr);max-width:1180px;margin:-4px auto 0;background:#fff;border:1px solid #f0ddd7;box-shadow:0 8px 30px rgba(60,30,15,.06);border-radius:18px;overflow:hidden}
.mg-benefit-card{
  display:grid;grid-template-columns:46px 1fr 20px;grid-template-rows:auto auto;
  column-gap:12px;padding:22px 20px;border-right:1px solid #f0ddd7;
  color:var(--mg-ink);transition:.2s ease;background:#fff;
}
.mg-benefit-card:last-child{border-right:0}
.mg-benefit-card:hover{background:#fff8f2;transform:translateY(-1px)}
.mg-benefit-card span{grid-row:1/3;width:42px;height:42px;border-radius:50%;background:var(--mg-pink);color:#fff;display:flex;align-items:center;justify-content:center;font-size:21px}
.mg-benefit-card strong{font-size:16px}
.mg-benefit-card small{color:#6f6f6f;margin-top:2px}
.mg-benefit-card b{grid-column:3;grid-row:1/3;align-self:center;color:var(--mg-pink);font-size:20px}
.mg-section{max-width:1180px;margin:46px auto;padding:0 18px}
.mg-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.mg-section-head h2{font-family:Georgia,'Times New Roman',serif;font-size:34px;margin:0;color:#183326}
.mg-section-head p{margin:4px 0 0;color:#6a756f}
.mg-section-head a{color:#274d37;text-decoration:underline}
.mg-featured-grid,.mg-character-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mg-product-card{display:grid;grid-template-columns:.9fr 1.1fr;min-height:320px;background:linear-gradient(135deg,#fff7f3,#fdebed);border:1px solid #f2d7d2;border-radius:22px;overflow:hidden}
.mg-product-copy{padding:26px 10px 26px 26px;align-self:center}
.mg-badge{display:inline-block;background:#ffcad8;color:#bb2d59;font-size:12px;font-weight:800;padding:7px 10px;border-radius:999px;margin-bottom:10px}
.mg-product-card h3{font-family:Georgia,serif;font-size:29px;line-height:1.05;margin:0 0 8px}
.mg-price{font-size:28px;font-weight:800;color:#e52e63;margin:6px 0 12px}
.mg-product-copy p{color:#59635e;line-height:1.45}
.mg-product-image{display:flex;align-items:flex-end;justify-content:center;padding:14px}
.mg-product-image img{width:100%;height:300px;object-fit:contain}
.mg-character-card{min-height:250px;border-radius:22px;overflow:hidden;position:relative;padding:28px;display:flex;align-items:center;background:#fdebed}
.mg-character-card:before{content:"";position:absolute;inset:0;background-image:var(--mg-character-image);background-size:65%;background-repeat:no-repeat;background-position:left bottom;opacity:.95}
.mg-character-card>div{position:relative;z-index:2;margin-left:46%;max-width:48%}
.mg-character-b:before{background-position:right bottom}
.mg-character-b>div{margin-left:0}
.mg-character-card h3{font-family:Georgia,serif;font-size:27px;line-height:1.05;margin:0 0 8px;color:#c72559}
.mg-character-card p{color:#635e60}
.mg-occasion-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.mg-occasion-card{position:relative;display:grid;grid-template-columns:56px 1fr 24px;grid-template-rows:auto auto;gap:2px 10px;align-items:center;padding:16px;background:#fff7f3;border:1px solid #f1ded5;border-radius:16px;color:#243b31}
.mg-occasion-icon{grid-row:1/3;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:14px;font-size:28px}
.mg-occasion-card strong{font-size:15px}.mg-occasion-card small{color:#777}.mg-occasion-card b{grid-column:3;grid-row:1/3;color:var(--mg-pink)}
.mg-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.mg-review{background:#fff;border:1px solid #eaded7;border-radius:16px;padding:20px}
.mg-stars{color:#f4a000;letter-spacing:2px}
.mg-review p{color:#545d58;line-height:1.45}
.mg-whatsapp{position:fixed;right:22px;bottom:22px;background:#25D366;color:#fff;padding:13px 18px;border-radius:999px;font-weight:800;z-index:999}
@media (max-width:900px){
  .mg-hero{grid-template-columns:1fr;min-height:auto}
  .mg-hero-copy{padding:46px 24px 10px}
  .mg-hero-visual{min-height:340px;padding:0 18px}
  .mg-hero-visual img{max-height:360px}
  .mg-benefits{grid-template-columns:1fr 1fr;margin:0 14px}
  .mg-featured-grid,.mg-character-grid{grid-template-columns:1fr}
  .mg-occasion-grid{grid-template-columns:1fr 1fr}
  .mg-review-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .mg-hero h1{font-size:44px}
  .mg-hero-copy p{font-size:17px}
  .mg-benefits{grid-template-columns:1fr}
  .mg-benefits>div{border-right:0;border-bottom:1px solid #f0ddd7}
  .mg-product-card{grid-template-columns:1fr}
  .mg-product-image img{height:240px}
  .mg-character-card{min-height:320px;align-items:flex-end}
  .mg-character-card:before{background-size:100%;background-position:center top}
  .mg-character-card>div{margin-left:0;max-width:100%;background:rgba(255,255,255,.86);padding:14px;border-radius:14px}
  .mg-occasion-grid{grid-template-columns:1fr}
}

/* Elementor editor preview: evitar que estilos del editor desarmen el shortcode */
.elementor-editor-active .mg-home img,
.elementor-editor-preview .mg-home img{
  max-width:100%;
  height:auto;
}
.elementor-editor-active .mg-home h1,
.elementor-editor-active .mg-home h2,
.elementor-editor-active .mg-home h3,
.elementor-editor-preview .mg-home h1,
.elementor-editor-preview .mg-home h2,
.elementor-editor-preview .mg-home h3{
  margin-top:0;
}


/* ===== v1.2 layout hardening ===== */
.mg-home{
  position:relative !important;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin-left:-50vw !important;
  direction:ltr !important;
}
.elementor-editor-active .mg-home,
.elementor-editor-preview .mg-home{
  left:0 !important;
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
}
.mg-home .mg-hero{
  width:100% !important;
  max-width:none !important;
  min-height:480px !important;
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas:"copy visual" !important;
  align-items:stretch !important;
  overflow:hidden !important;
  border-radius:0 !important;
}
.mg-home .mg-hero-copy{
  grid-area:copy !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  text-align:left !important;
  min-width:0 !important;
  padding:56px 40px 56px max(36px, calc((100vw - 1180px)/2)) !important;
}
.mg-home .mg-hero-copy h1{
  max-width:650px !important;
  margin:0 0 18px !important;
  font-size:clamp(46px,5.2vw,76px) !important;
  line-height:.98 !important;
  text-align:left !important;
}
.mg-home .mg-hero-copy p{
  max-width:560px !important;
  font-size:19px !important;
  line-height:1.5 !important;
  margin:0 0 26px !important;
}
.mg-home .mg-hero-visual{
  grid-area:visual !important;
  position:relative !important;
  min-height:480px !important;
  padding:0 !important;
  overflow:hidden !important;
  display:block !important;
}
.mg-home .mg-hero-character-bg{
  position:absolute !important;
  inset:0 !important;
  background-size:contain !important;
  background-repeat:no-repeat !important;
  background-position:center bottom !important;
  z-index:1 !important;
}
.mg-home .mg-hero-character-img{
  display:none !important;
}
.mg-home .mg-hero-note{
  right:28px !important;
  bottom:26px !important;
  z-index:3 !important;
}
.mg-home .mg-benefits{
  max-width:1180px !important;
  width:calc(100% - 36px) !important;
  margin:0 auto !important;
  transform:translateY(-1px);
}
.mg-home .mg-benefit-card{
  min-width:0 !important;
  grid-template-columns:46px minmax(0,1fr) 18px !important;
  padding:18px 16px !important;
}
.mg-home .mg-benefit-card strong{
  display:block !important;
  white-space:normal !important;
  line-height:1.2 !important;
}
.mg-home .mg-benefit-card small{
  display:block !important;
  white-space:normal !important;
  line-height:1.3 !important;
  margin-top:4px !important;
}
.mg-home .mg-section{
  width:calc(100% - 36px) !important;
  max-width:1180px !important;
}
@media (max-width: 900px){
  .mg-home .mg-hero{
    grid-template-columns:1fr !important;
    grid-template-areas:"copy" "visual" !important;
  }
  .mg-home .mg-hero-copy{
    padding:42px 24px 20px !important;
  }
  .mg-home .mg-hero-visual{
    min-height:360px !important;
  }
  .mg-home .mg-benefits{
    grid-template-columns:1fr 1fr !important;
    width:calc(100% - 24px) !important;
  }
}
@media (max-width: 560px){
  .mg-home .mg-benefits{grid-template-columns:1fr !important;}
  .mg-home .mg-hero-copy h1{font-size:44px !important;}
}

/* ===== v1.3 visual finish to match Medellín Gardens reference ===== */
.mg-home{
  background:#fffdf9 !important;
}

/* Hero: compact banner, floral-soft background, copy left and large characters right */
.mg-home .mg-hero{
  min-height:430px !important;
  grid-template-columns:44% 56% !important;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,.96) 0 18%, transparent 33%),
    radial-gradient(circle at 91% 8%, rgba(255,182,201,.42) 0 10%, transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(255,215,222,.48) 0 12%, transparent 28%),
    linear-gradient(105deg,#fffaf4 0%,#fff2ed 44%,#f9d8df 100%) !important;
  border-bottom:1px solid #f0d7d2 !important;
}
.mg-home .mg-hero:before{
  width:340px !important;height:340px !important;
  left:-90px !important;top:-135px !important;
  background:rgba(246,178,198,.32) !important;
}
.mg-home .mg-hero:after{
  width:360px !important;height:360px !important;
  right:-120px !important;bottom:-170px !important;
  background:rgba(249,205,168,.38) !important;
}
.mg-home .mg-hero-copy{
  padding:50px 28px 46px max(42px,calc((100vw - 1240px)/2)) !important;
}
.mg-home .mg-eyebrow{
  font-size:13px !important;
  letter-spacing:.30em !important;
  margin-bottom:7px !important;
}
.mg-home .mg-hero-copy h1{
  font-size:clamp(48px,4.8vw,72px) !important;
  line-height:.92 !important;
  max-width:620px !important;
  letter-spacing:-.025em !important;
}
.mg-home .mg-hero-copy p{
  font-size:17px !important;
  line-height:1.42 !important;
  max-width:460px !important;
  color:#34463d !important;
}
.mg-home .mg-hero-actions{
  gap:12px !important;
}
.mg-home .mg-btn{
  padding:12px 20px !important;
  font-size:14px !important;
}
.mg-home .mg-hero-visual{
  min-height:430px !important;
}
.mg-home .mg-hero-character-bg{
  background-size:auto 108% !important;
  background-position:center bottom !important;
}
.mg-home .mg-hero-note{
  right:34px !important;
  bottom:28px !important;
  font-size:18px !important;
  background:rgba(18,51,31,.88) !important;
  padding:10px 14px !important;
}

/* Benefit bar: exactly 3 wide cards */
.mg-home .mg-benefits{
  grid-template-columns:repeat(3,1fr) !important;
  max-width:1240px !important;
  width:calc(100% - 48px) !important;
  border-radius:0 0 14px 14px !important;
  box-shadow:none !important;
  background:#fff7f5 !important;
  border-color:#efd7d1 !important;
}
.mg-home .mg-benefit-card{
  display:grid !important;
  grid-template-columns:50px minmax(0,1fr) !important;
  grid-template-rows:auto !important;
  align-items:center !important;
  gap:12px !important;
  padding:15px 24px !important;
  border-right:1px solid #ebcfc7 !important;
  background:#fff7f5 !important;
}
.mg-home .mg-benefit-card:last-child{border-right:0 !important;}
.mg-home .mg-benefit-card span{
  grid-row:auto !important;
  width:46px !important;height:46px !important;
  font-size:21px !important;
}
.mg-home .mg-benefit-card div{
  min-width:0 !important;
}
.mg-home .mg-benefit-card strong{
  font-size:16px !important;
  margin-bottom:2px !important;
}
.mg-home .mg-benefit-card small{
  font-size:12.5px !important;
  line-height:1.25 !important;
}
.mg-home .mg-benefit-card b{display:none !important;}

/* Sections wider and closer to the reference */
.mg-home .mg-section{
  max-width:1240px !important;
  margin:34px auto !important;
}
.mg-home .mg-section-head{
  margin-bottom:14px !important;
}
.mg-home .mg-section-head h2{
  font-size:31px !important;
}
.mg-home .mg-section-head h2:before{
  content:"❧";
  color:#d7922c;
  margin-right:10px;
  font-size:.8em;
}

/* Featured products: larger image, text block at left */
.mg-home .mg-featured-grid{
  gap:16px !important;
}
.mg-home .mg-product-card{
  grid-template-columns:42% 58% !important;
  min-height:300px !important;
  background:linear-gradient(135deg,#fff9f4 0%,#fde9e8 100%) !important;
  border-radius:16px !important;
  border-color:#efd5cf !important;
}
.mg-home .mg-product-copy{
  padding:22px 6px 22px 22px !important;
}
.mg-home .mg-product-card h3{
  font-size:29px !important;
}
.mg-home .mg-price{
  font-size:26px !important;
  color:#e62c61 !important;
}
.mg-home .mg-product-copy p{
  font-size:14px !important;
  line-height:1.35 !important;
}
.mg-home .mg-product-image{
  padding:8px 10px 0 0 !important;
  align-items:flex-end !important;
}
.mg-home .mg-product-image img{
  height:290px !important;
  object-fit:contain !important;
  object-position:center bottom !important;
}

/* Character banners: no text overlap */
.mg-home .mg-character-grid{
  gap:16px !important;
}
.mg-home .mg-character-card{
  min-height:220px !important;
  padding:22px !important;
  border-radius:16px !important;
  border:1px solid #efd4cf !important;
}
.mg-home .mg-character-card:before{
  background-size:auto 95% !important;
  opacity:1 !important;
}
.mg-home .mg-character-a:before{
  background-position:left bottom !important;
}
.mg-home .mg-character-b:before{
  background-position:right bottom !important;
}
.mg-home .mg-character-card>div{
  max-width:42% !important;
  margin-left:auto !important;
  margin-right:3% !important;
  background:rgba(255,250,247,.88) !important;
  padding:14px !important;
  border-radius:12px !important;
  backdrop-filter:blur(2px);
}
.mg-home .mg-character-b>div{
  margin-left:3% !important;
  margin-right:auto !important;
}
.mg-home .mg-character-card h3{
  font-size:25px !important;
  margin-bottom:7px !important;
}

/* Occasion cards */
.mg-home .mg-occasion-grid{
  gap:10px !important;
}
.mg-home .mg-occasion-card{
  min-height:92px !important;
  padding:14px !important;
  background:#fff8f5 !important;
}
.mg-home .mg-occasion-icon{
  width:58px !important;height:58px !important;
  font-size:30px !important;
}

/* Desktop spacing */
@media (min-width: 1100px){
  .mg-home .mg-hero-copy{
    padding-left:max(70px,calc((100vw - 1240px)/2)) !important;
  }
}
@media (max-width: 900px){
  .mg-home .mg-hero{
    grid-template-columns:1fr !important;
    min-height:auto !important;
  }
  .mg-home .mg-hero-character-bg{
    background-size:auto 100% !important;
  }
  .mg-home .mg-benefits{
    grid-template-columns:1fr !important;
    width:calc(100% - 24px) !important;
  }
  .mg-home .mg-benefit-card{
    border-right:0 !important;
    border-bottom:1px solid #ebcfc7 !important;
  }
  .mg-home .mg-product-card{
    grid-template-columns:1fr !important;
  }
}


/* ===== v1.4 fixes: different images in character banners + no text overlap ===== */
.mg-home .mg-character-card{
  display:grid !important;
  grid-template-columns:46% 54% !important;
  min-height:240px !important;
  padding:0 !important;
  align-items:stretch !important;
  background:linear-gradient(135deg,#fff7f6 0%,#f6e3e7 100%) !important;
  overflow:hidden !important;
}
.mg-home .mg-character-card:before{display:none !important;content:none !important;}
.mg-home .mg-character-card>.mg-character-figure,
.mg-home .mg-character-card>.mg-character-content{
  max-width:none !important;
  margin:0 !important;
  border-radius:0 !important;
  backdrop-filter:none !important;
}
.mg-home .mg-character-figure{
  min-height:240px !important;
  background-repeat:no-repeat !important;
  background-size:contain !important;
  background-position:left bottom !important;
}
.mg-home .mg-character-a .mg-character-figure{
  background-size:auto 88% !important;
  background-position:10px bottom !important;
}
.mg-home .mg-character-b .mg-character-figure{
  order:2 !important;
  background-size:auto 95% !important;
  background-position:right bottom !important;
}
.mg-home .mg-character-content{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  padding:26px 24px !important;
  background:transparent !important;
}
.mg-home .mg-character-b .mg-character-content{
  order:1 !important;
}
.mg-home .mg-character-content h3{
  color:#c63c63 !important;
  font-family:Georgia,serif !important;
  font-size:29px !important;
  line-height:1.03 !important;
  margin:0 0 10px !important;
  max-width:320px !important;
}
.mg-home .mg-character-content p{
  font-size:15px !important;
  line-height:1.4 !important;
  color:#5a4e52 !important;
  max-width:260px !important;
  margin:0 0 18px !important;
}
.mg-home .mg-character-content .mg-btn{
  align-self:flex-start !important;
}
@media (max-width: 900px){
  .mg-home .mg-character-card{
    grid-template-columns:1fr !important;
    min-height:auto !important;
  }
  .mg-home .mg-character-figure{
    min-height:220px !important;
    order:1 !important;
    background-position:center bottom !important;
  }
  .mg-home .mg-character-content,
  .mg-home .mg-character-b .mg-character-content{
    order:2 !important;
    padding:18px !important;
  }
}


/* ===== v1.5: image tags instead of CSS backgrounds for reliable Elementor rendering ===== */
.mg-home .mg-character-card{
  grid-template-columns:48% 52% !important;
  min-height:235px !important;
}
.mg-home .mg-character-figure{
  min-width:0 !important;
  min-height:235px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
  padding:10px 4px 0 !important;
  background:none !important;
}
.mg-home .mg-character-figure img{
  display:block !important;
  width:100% !important;
  height:225px !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  margin:0 !important;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,.08));
}
.mg-home .mg-character-a .mg-character-figure img{
  transform:scale(1.03) !important;
  transform-origin:center bottom !important;
}
.mg-home .mg-character-b .mg-character-figure img{
  transform:scale(1.01) !important;
  transform-origin:center bottom !important;
}
.mg-home .mg-character-content{
  position:relative !important;
  z-index:2 !important;
  padding:24px 22px !important;
  min-width:0 !important;
}
.mg-home .mg-character-content h3,
.mg-home .mg-character-content p,
.mg-home .mg-character-content .mg-btn{
  position:relative !important;
  z-index:3 !important;
}
@media (max-width:900px){
  .mg-home .mg-character-card{
    grid-template-columns:1fr !important;
  }
  .mg-home .mg-character-a .mg-character-figure,
  .mg-home .mg-character-b .mg-character-figure{
    order:1 !important;
    min-height:210px !important;
  }
  .mg-home .mg-character-content,
  .mg-home .mg-character-b .mg-character-content{
    order:2 !important;
  }
  .mg-home .mg-character-figure img{
    height:205px !important;
  }
}


/* ===== v1.6 hero fix: complete heads + sign/story composition ===== */
.mg-home .mg-hero{
  min-height:455px !important;
  grid-template-columns:43% 57% !important;
}
.mg-home .mg-hero-visual{
  position:relative !important;
  min-height:455px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:flex-start !important;
  padding:18px 18px 0 0 !important;
}
.mg-home .mg-hero-character-bg,
.mg-home .mg-hero-note{display:none !important;}
.mg-home .mg-hero-character-img{
  display:block !important;
  position:absolute !important;
  z-index:2 !important;
  left:-8% !important;
  bottom:0 !important;
  width:78% !important;
  height:auto !important;
  max-height:430px !important;
  object-fit:contain !important;
  object-position:left bottom !important;
  filter:drop-shadow(0 16px 22px rgba(0,0,0,.12)) !important;
}
.mg-home .mg-hero-sign-img{
  display:block !important;
  position:absolute !important;
  z-index:1 !important;
  right:0 !important;
  top:0 !important;
  width:48% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:0 !important;
}
/* light bridge so characters blend naturally with the sign panel */
.mg-home .mg-hero-visual:after{
  content:"" !important;
  position:absolute !important;
  z-index:1 !important;
  left:36% !important;
  top:0 !important;
  bottom:0 !important;
  width:28% !important;
  background:linear-gradient(90deg,rgba(249,216,223,0),rgba(249,216,223,.42),rgba(249,216,223,0)) !important;
  pointer-events:none !important;
}
@media (max-width:900px){
  .mg-home .mg-hero-visual{
    min-height:390px !important;
  }
  .mg-home .mg-hero-character-img{
    left:0 !important;
    width:72% !important;
    max-height:370px !important;
  }
  .mg-home .mg-hero-sign-img{
    width:46% !important;
  }
}
@media (max-width:560px){
  .mg-home .mg-hero-visual{
    min-height:350px !important;
  }
  .mg-home .mg-hero-character-img{
    width:86% !important;
    left:-18% !important;
    max-height:340px !important;
  }
  .mg-home .mg-hero-sign-img{
    width:52% !important;
  }
}


/* ===== v1.7 hero: remove duplicated/cropped woman from sign panel ===== */
.mg-home .mg-hero{
  grid-template-columns:44% 56% !important;
  min-height:455px !important;
}
.mg-home .mg-hero-visual{
  min-height:455px !important;
  overflow:hidden !important;
  background:linear-gradient(90deg,#f9d9df 0%,#f9d9df 68%,transparent 68%) !important;
}
.mg-home .mg-hero-character-img{
  left:-2% !important;
  bottom:0 !important;
  width:73% !important;
  max-height:438px !important;
  object-fit:contain !important;
  object-position:left bottom !important;
  z-index:3 !important;
}
.mg-home .mg-hero-sign-img{
  right:0 !important;
  top:0 !important;
  width:31% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  z-index:2 !important;
}
.mg-home .mg-hero-visual:after{
  display:none !important;
  content:none !important;
}
@media (max-width:900px){
  .mg-home .mg-hero-character-img{
    width:70% !important;
    left:0 !important;
    max-height:370px !important;
  }
  .mg-home .mg-hero-sign-img{width:32% !important;}
}
@media (max-width:560px){
  .mg-home .mg-hero-visual{min-height:350px !important;}
  .mg-home .mg-hero-character-img{
    width:74% !important;
    left:-7% !important;
    max-height:335px !important;
  }
  .mg-home .mg-hero-sign-img{width:36% !important;}
}


/* ===== v1.8 hero: ambient floral background integrated, no third image block ===== */
.mg-home .mg-hero{
  grid-template-columns:44% 56% !important;
  min-height:455px !important;
  background:linear-gradient(105deg,#fffaf4 0%,#fff2ed 44%,#f7d7de 100%) !important;
}
.mg-home .mg-hero-visual{
  position:relative !important;
  min-height:455px !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 18% 28%,rgba(255,255,255,.65),transparent 26%),
    linear-gradient(90deg,#f7d7de 0%,#f7d7de 60%,#f1cbd4 100%) !important;
}
/* The former sign photo becomes a softly blended ambient background, not a separate third panel */
.mg-home .mg-hero-visual:before{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  z-index:1 !important;
  inset:0 0 0 40% !important;
  background-image:
    linear-gradient(90deg,rgba(247,215,222,1) 0%,rgba(247,215,222,.55) 18%,rgba(247,215,222,.08) 42%,rgba(247,215,222,0) 56%),
    url('hero-sign.png') !important;
  background-repeat:no-repeat,no-repeat !important;
  background-size:100% 100%,cover !important;
  background-position:center,right center !important;
  opacity:.98 !important;
  pointer-events:none !important;
}
.mg-home .mg-hero-visual:after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  z-index:2 !important;
  inset:0 !important;
  background:
    linear-gradient(90deg,rgba(247,215,222,.92) 0%,rgba(247,215,222,.32) 24%,rgba(247,215,222,0) 54%),
    radial-gradient(circle at 94% 12%,rgba(255,255,255,.14),transparent 28%) !important;
  pointer-events:none !important;
}
.mg-home .mg-hero-character-img{
  display:block !important;
  position:absolute !important;
  z-index:3 !important;
  left:-1% !important;
  bottom:0 !important;
  width:76% !important;
  height:auto !important;
  max-height:438px !important;
  object-fit:contain !important;
  object-position:left bottom !important;
  filter:drop-shadow(0 16px 22px rgba(0,0,0,.12)) !important;
}
.mg-home .mg-hero-sign-img{display:none !important;}
@media (max-width:900px){
  .mg-home .mg-hero-visual{min-height:390px !important;}
  .mg-home .mg-hero-visual:before{inset:0 0 0 46% !important;opacity:.72 !important;}
  .mg-home .mg-hero-character-img{left:0 !important;width:78% !important;max-height:372px !important;}
}
@media (max-width:560px){
  .mg-home .mg-hero-visual{min-height:350px !important;}
  .mg-home .mg-hero-visual:before{inset:0 0 0 50% !important;opacity:.62 !important;}
  .mg-home .mg-hero-character-img{left:-8% !important;width:88% !important;max-height:338px !important;}
}


/* ===== v1.9 hero banner exact image with functional hotspots ===== */
.mg-home .mg-hero.mg-hero-banner{
  width:100% !important;
  max-width:none !important;
  display:block !important;
  min-height:auto !important;
  background:none !important;
  padding:0 !important;
  overflow:visible !important;
}
.mg-home .mg-hero-banner-wrap{
  position:relative !important;
  width:min(100%, 2048px) !important;
  margin:0 auto !important;
  line-height:0 !important;
}
.mg-home .mg-hero-banner-img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
}
.mg-home .mg-hero-hotspot{
  position:absolute !important;
  z-index:3 !important;
  display:block !important;
  border-radius:999px !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
  background:transparent !important;
}
.mg-home .mg-hero-hotspot:focus,
.mg-home .mg-hero-hotspot:hover{
  outline:2px solid rgba(20,55,42,.28) !important;
  outline-offset:2px !important;
}
/* button positions based on the approved banner art */
.mg-home .mg-hero-hotspot-primary{
  left:3.1% !important;
  top:70.8% !important;
  width:16.8% !important;
  height:10.5% !important;
}
.mg-home .mg-hero-hotspot-secondary{
  left:21.1% !important;
  top:70.8% !important;
  width:18.4% !important;
  height:10.5% !important;
}
.mg-home .screen-reader-text{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
@media (max-width: 900px){
  .mg-home .mg-hero-hotspot-primary{
    left:3.3% !important;
    top:70.5% !important;
    width:17.2% !important;
    height:11% !important;
  }
  .mg-home .mg-hero-hotspot-secondary{
    left:21.1% !important;
    top:70.5% !important;
    width:18.8% !important;
    height:11% !important;
  }
}
@media (max-width: 640px){
  .mg-home .mg-hero-hotspot-primary{
    left:3.2% !important;
    top:70.2% !important;
    width:17.8% !important;
    height:11.8% !important;
  }
  .mg-home .mg-hero-hotspot-secondary{
    left:21.5% !important;
    top:70.2% !important;
    width:19.4% !important;
    height:11.8% !important;
  }
}

/* ===== v2.1 compact centered banner ===== */
.mg-home .mg-hero.mg-hero-banner{
  width:100% !important;
  max-width:none !important;
  margin:var(--mg-hero-mt,22px) 0 var(--mg-hero-mb,0px) !important;
  padding:0 20px !important;
  box-sizing:border-box !important;
  background:#fffdf9 !important;
  overflow:visible !important;
}
.mg-home .mg-hero-banner-wrap{
  position:relative !important;
  width:100% !important;
  max-width:var(--mg-hero-max,1280px) !important;
  margin:0 auto !important;
  line-height:0 !important;
  border-radius:var(--mg-hero-radius,18px) !important;
  overflow:hidden !important;
  box-shadow:0 12px 30px rgba(30,56,44,.08) !important;
  background:#fff !important;
}
.mg-home .mg-hero-banner-img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
}
/* keep hotspots aligned to the artwork */
.mg-home .mg-hero-hotspot-primary{
  left:3.1% !important;
  top:70.8% !important;
  width:16.8% !important;
  height:10.5% !important;
}
.mg-home .mg-hero-hotspot-secondary{
  left:21.1% !important;
  top:70.8% !important;
  width:18.4% !important;
  height:10.5% !important;
}
@media (max-width:900px){
  .mg-home .mg-hero.mg-hero-banner{padding:0 14px !important;}
}
@media (max-width:560px){
  .mg-home .mg-hero.mg-hero-banner{padding:0 8px !important;}
  .mg-home .mg-hero-banner-wrap{border-radius:min(var(--mg-hero-radius,18px),14px) !important;}
}


/* ===== v2.2 definitive compact hero banner ===== */
.mg-home .mg-hero.mg-hero-banner{
  width:100% !important;
  max-width:100% !important;
  margin:var(--mg-hero-mt,22px) auto var(--mg-hero-mb,0px) !important;
  padding:0 36px !important;
  box-sizing:border-box !important;
  background:#fffdf9 !important;
  overflow:visible !important;
}
.mg-home .mg-hero-banner-wrap{
  position:relative !important;
  width:min(100%, var(--mg-hero-max,1180px)) !important;
  max-width:var(--mg-hero-max,1180px) !important;
  margin:0 auto !important;
  line-height:0 !important;
  border-radius:var(--mg-hero-radius,18px) !important;
  overflow:hidden !important;
  box-shadow:0 10px 28px rgba(30,56,44,.10) !important;
  background:#fff !important;
}
.mg-home .mg-hero-banner-img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}
@media (max-width:900px){
  .mg-home .mg-hero.mg-hero-banner{padding:0 20px !important;}
}
@media (max-width:560px){
  .mg-home .mg-hero.mg-hero-banner{padding:0 10px !important;}
}


/* ===== v2.3: alinear y compactar todo lo que está debajo del banner ===== */

/* La barra de beneficios debe medir exactamente lo mismo que el banner */
.mg-home .mg-benefits{
  width:calc(100% - 30px) !important;
  max-width:var(--mg-hero-max,1180px) !important;
  margin:-1px auto 0 !important;
  border-radius:0 0 16px 16px !important;
  overflow:hidden !important;
}

/* Beneficios más compactos y proporcionados */
.mg-home .mg-benefit-card{
  min-height:76px !important;
  padding:13px 20px !important;
  grid-template-columns:48px minmax(0,1fr) !important;
  gap:12px !important;
}
.mg-home .mg-benefit-card span{
  width:44px !important;
  height:44px !important;
  font-size:20px !important;
}
.mg-home .mg-benefit-card strong{
  font-size:15px !important;
  line-height:1.15 !important;
}
.mg-home .mg-benefit-card small{
  font-size:12px !important;
  line-height:1.2 !important;
}

/* Todas las secciones inferiores alineadas con el banner */
.mg-home .mg-section{
  width:calc(100% - 30px) !important;
  max-width:var(--mg-hero-max,1180px) !important;
  margin:30px auto !important;
  padding:0 !important;
}

/* La primera sección después de beneficios queda más cerca */
.mg-home .mg-benefits + .mg-section{
  margin-top:28px !important;
}

/* Si existe el módulo de video/media, se mantiene dentro del mismo ancho */
.mg-home .mg-home-video-section{
  width:calc(100% - 30px) !important;
  max-width:var(--mg-hero-max,1180px) !important;
  margin:28px auto 30px !important;
  padding:0 !important;
  overflow:hidden !important;
}
.mg-home .mg-home-video-section > *{
  max-width:100% !important;
  width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Encabezados inferiores un poco más contenidos */
.mg-home .mg-section-head{
  margin-bottom:13px !important;
}
.mg-home .mg-section-head h2{
  font-size:29px !important;
  line-height:1.1 !important;
}

/* Tarjetas de productos y personajes menos altas */
.mg-home .mg-product-card{
  min-height:270px !important;
}
.mg-home .mg-product-image img{
  height:255px !important;
}
.mg-home .mg-character-card{
  min-height:220px !important;
}

/* Ocasiones compactas */
.mg-home .mg-occasion-card{
  padding:13px !important;
}
.mg-home .mg-occasion-icon{
  width:46px !important;
  height:46px !important;
  font-size:24px !important;
}

/* Tablet / móvil */
@media (max-width:900px){
  .mg-home .mg-benefits,
  .mg-home .mg-section,
  .mg-home .mg-home-video-section{
    width:calc(100% - 24px) !important;
  }
  .mg-home .mg-benefits{
    margin-top:-1px !important;
  }
}
@media (max-width:560px){
  .mg-home .mg-section{
    margin:22px auto !important;
  }
  .mg-home .mg-section-head h2{
    font-size:25px !important;
  }
}


/* ===== v2.4: banner más ancho, cuerpo más contenido y videos separados ===== */

/* El banner queda deliberadamente más ancho que el resto de la página */
.mg-home .mg-hero-banner{
  width:calc(100% - 24px) !important;
  max-width:var(--mg-hero-max,1180px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Todo lo que está debajo del banner queda aproximadamente 140px más angosto */
.mg-home .mg-benefits,
.mg-home .mg-section,
.mg-home .mg-home-video-section{
  width:calc(100% - 36px) !important;
  max-width:calc(var(--mg-hero-max,1180px) - 140px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Barra de beneficios separada y proporcionada */
.mg-home .mg-benefits{
  margin-top:0 !important;
  margin-bottom:26px !important;
}

/* Todos los módulos de video/media conservan exactamente la misma caja */
.mg-home .mg-home-video-section{
  margin-top:28px !important;
  margin-bottom:30px !important;
  overflow:hidden !important;
}

/* Evita que un segundo video salga más grande que el primero */
.mg-home .mg-home-video-section video{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  max-height:330px !important;
  margin:0 auto !important;
  object-fit:cover !important;
  border-radius:16px !important;
}
.mg-home .mg-home-video-section img{
  max-width:100% !important;
  height:auto !important;
}

/* El objeto intermedio entre video 1 y video 2 es la sección de productos destacados */
.mg-home .mg-home-featured-section{
  margin-top:30px !important;
  margin-bottom:30px !important;
}

/* Productos un poco más compactos para que funcionen como pausa visual entre videos */
.mg-home .mg-home-featured-section .mg-product-card{
  min-height:245px !important;
}
.mg-home .mg-home-featured-section .mg-product-image img{
  height:230px !important;
}

/* Mantener igual tamaño visual en ambos videos */
.mg-home .mg-home-video-first,
.mg-home .mg-home-video-second{
  max-width:calc(var(--mg-hero-max,1180px) - 140px) !important;
}

@media (max-width:900px){
  .mg-home .mg-hero-banner{
    width:calc(100% - 20px) !important;
  }
  .mg-home .mg-benefits,
  .mg-home .mg-section,
  .mg-home .mg-home-video-section{
    width:calc(100% - 32px) !important;
    max-width:none !important;
  }
}

@media (max-width:560px){
  .mg-home .mg-hero-banner{
    width:calc(100% - 14px) !important;
  }
  .mg-home .mg-benefits,
  .mg-home .mg-section,
  .mg-home .mg-home-video-section{
    width:calc(100% - 22px) !important;
  }
  .mg-home .mg-home-video-section video{
    max-height:250px !important;
  }
}


/* ===== v2.5: jerarquía de ancho y separación real de videos ===== */

/* 1) Banner un poco más grande que en v2.4 */
.mg-home .mg-hero-banner{
  width:calc(100% - 18px) !important;
  max-width:calc(var(--mg-hero-max,1180px) + 110px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* 2) Cuerpo uniforme: beneficios, videos y demás objetos al mismo ancho */
.mg-home .mg-benefits,
.mg-home .mg-section,
.mg-home .mg-home-video-section{
  width:calc(100% - 36px) !important;
  max-width:calc(var(--mg-hero-max,1180px) - 70px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Evitar que MG Media imponga un ancho propio mayor */
.mg-home .mg-home-video-section,
.mg-home .mg-home-video-section > div,
.mg-home .mg-home-video-section > article,
.mg-home .mg-home-video-section > section,
.mg-home .mg-home-video-section .mg-media,
.mg-home .mg-home-video-section .mg-media-card,
.mg-home .mg-home-video-section .mg-media-wrap{
  max-width:100% !important;
  width:100% !important;
  box-sizing:border-box !important;
}

/* Ambos videos exactamente con la misma caja visual */
.mg-home .mg-home-video-section video{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:300px !important;
  max-height:300px !important;
  object-fit:cover !important;
  border-radius:16px !important;
  margin:0 auto !important;
}

/* Separación clara: video 1 -> productos -> video 2 */
.mg-home .mg-home-video-first{
  margin-top:28px !important;
  margin-bottom:34px !important;
}
.mg-home .mg-home-featured-section{
  margin-top:0 !important;
  margin-bottom:34px !important;
}
.mg-home .mg-home-video-second{
  margin-top:0 !important;
  margin-bottom:36px !important;
}

/* Si el shortcode dejó dos videos dentro del primero mientras JS se ejecuta,
   evita que visualmente queden pegados. */
.mg-home .mg-home-video-first video + video{
  margin-top:34px !important;
}

/* Barra de beneficios visualmente unida al banner, pero más angosta */
.mg-home .mg-benefits{
  margin-top:0 !important;
  margin-bottom:28px !important;
}

/* Productos intermedios algo más compactos */
.mg-home .mg-home-featured-section .mg-product-card{
  min-height:235px !important;
}
.mg-home .mg-home-featured-section .mg-product-image img{
  height:220px !important;
}

@media (max-width:900px){
  .mg-home .mg-hero-banner{
    width:calc(100% - 14px) !important;
    max-width:none !important;
  }
  .mg-home .mg-benefits,
  .mg-home .mg-section,
  .mg-home .mg-home-video-section{
    width:calc(100% - 28px) !important;
    max-width:none !important;
  }
  .mg-home .mg-home-video-section video{
    height:260px !important;
    max-height:260px !important;
  }
}

@media (max-width:560px){
  .mg-home .mg-home-video-section video{
    height:220px !important;
    max-height:220px !important;
  }
}


/* ===== v2.6: CONTENCIÓN TOTAL — ningún objeto puede salirse ===== */

/* Banner: ligeramente más ancho, pero siempre contenido */
.mg-home .mg-hero-banner{
  width:calc(100% - 24px) !important;
  max-width:1240px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  overflow:hidden !important;
}

/* TODO lo que sigue al banner comparte exactamente el mismo ancho */
.mg-home .mg-benefits,
.mg-home .mg-section,
.mg-home .mg-home-video-section,
.mg-home .mg-home-featured-section{
  width:calc(100% - 36px) !important;
  max-width:1060px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

/* Contenedor seguro para cualquier HTML que devuelva MG Media */
.mg-home .mg-home-media-safe,
.mg-home .mg-home-media-safe *{
  box-sizing:border-box !important;
  max-width:100% !important;
}

.mg-home .mg-home-media-safe{
  width:100% !important;
  overflow:hidden !important;
}

/* Evitar anchos fijos gigantes que vengan del plugin de video */
.mg-home .mg-home-media-safe > *,
.mg-home .mg-home-media-safe div,
.mg-home .mg-home-media-safe section,
.mg-home .mg-home-media-safe article,
.mg-home .mg-home-media-safe figure{
  max-width:100% !important;
}

/* Videos e iframes: nunca más grandes que la página ni alturas absurdas */
.mg-home .mg-home-media-safe video,
.mg-home .mg-home-media-safe iframe{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:420px !important;
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  margin:0 auto !important;
  border:0 !important;
  border-radius:16px !important;
  background:#111 !important;
}

/* Imágenes dentro de módulos multimedia */
.mg-home .mg-home-media-safe img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:420px !important;
  object-fit:contain !important;
  margin:0 auto !important;
  border-radius:16px !important;
}

/* Si MG Media genera dos o más bloques, separarlos visualmente */
.mg-home .mg-home-media-safe > * + *{
  margin-top:34px !important;
}

/* También separa videos consecutivos aunque estén dentro del mismo wrapper */
.mg-home .mg-home-media-safe video + video,
.mg-home .mg-home-media-safe iframe + iframe,
.mg-home .mg-home-media-safe figure + figure{
  margin-top:34px !important;
}

/* Espaciado uniforme de objetos */
.mg-home .mg-benefits{
  margin-top:0 !important;
  margin-bottom:28px !important;
}
.mg-home .mg-home-video-section{
  margin-top:28px !important;
  margin-bottom:32px !important;
}
.mg-home .mg-home-featured-section{
  margin-top:30px !important;
  margin-bottom:32px !important;
}

/* Tarjetas inferiores contenidas */
.mg-home .mg-featured-grid,
.mg-home .mg-product-card,
.mg-home .mg-character-card,
.mg-home .mg-occasion-card{
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Móvil/tablet */
@media (max-width:900px){
  .mg-home .mg-hero-banner{
    width:calc(100% - 18px) !important;
    max-width:none !important;
  }
  .mg-home .mg-benefits,
  .mg-home .mg-section,
  .mg-home .mg-home-video-section,
  .mg-home .mg-home-featured-section{
    width:calc(100% - 26px) !important;
    max-width:none !important;
  }
  .mg-home .mg-home-media-safe video,
  .mg-home .mg-home-media-safe iframe,
  .mg-home .mg-home-media-safe img{
    max-height:340px !important;
  }
}

@media (max-width:560px){
  .mg-home .mg-home-media-safe video,
  .mg-home .mg-home-media-safe iframe,
  .mg-home .mg-home-media-safe img{
    max-height:260px !important;
  }
}


/* ===== v2.7: SOLO UN VIDEO ===== */

/* Mantener un único video con el mismo ancho del resto del contenido */
.mg-home .mg-home-one-video-only{
  width:calc(100% - 36px) !important;
  max-width:1060px !important;
  margin:28px auto 32px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.mg-home .mg-home-one-video-only .mg-home-media-safe{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}

/* El único video no puede crecer fuera de su caja */
.mg-home .mg-home-one-video-only video,
.mg-home .mg-home-one-video-only iframe{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:360px !important;
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  margin:0 auto !important;
  border-radius:16px !important;
  background:#111 !important;
}

/* Si el plugin externo imprime más bloques, ocultar todo después del primero visualmente */
.mg-home .mg-home-one-video-only .mg-home-media-safe > *:not(:first-child){
  display:none !important;
}

@media (max-width:900px){
  .mg-home .mg-home-one-video-only{
    width:calc(100% - 26px) !important;
    max-width:none !important;
  }
  .mg-home .mg-home-one-video-only video,
  .mg-home .mg-home-one-video-only iframe{
    max-height:300px !important;
  }
}

@media (max-width:560px){
  .mg-home .mg-home-one-video-only video,
  .mg-home .mg-home-one-video-only iframe{
    max-height:230px !important;
  }
}


/* ===== v2.8: UNA SOLA TARJETA MULTIMEDIA, SIN JS ===== */

/* El shortcode MG Media se recorta en PHP al primer bloque.
   No ocultamos ni movemos contenido con JavaScript. */
.mg-home .mg-home-one-video-only{
  width:calc(100% - 36px) !important;
  max-width:1060px !important;
  margin:28px auto 34px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

.mg-home .mg-home-one-video-only .mg-home-media-safe,
.mg-home .mg-home-one-video-only .mg-home-media-safe > *{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

/* Si el primer bloque es una tarjeta con imagen, queda contenida igual que los demás objetos. */
.mg-home .mg-home-one-video-only img{
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}

/* Si el primer bloque sí es video/iframe, también queda contenido. */
.mg-home .mg-home-one-video-only video,
.mg-home .mg-home-one-video-only iframe{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:360px !important;
  aspect-ratio:16/9 !important;
  object-fit:contain !important;
  margin:0 auto !important;
  border-radius:16px !important;
  background:#111 !important;
}


/* ===== v2.8.1: FIX AISLADO PARA CELULARES =====
   Mantener ancho legible en los títulos y secciones sin alterar escritorio. */
@media screen and (max-width: 767px) {
  html, body { overflow-x: clip; }
  body .mg-home {
    display:block !important;
    position:relative !important;
    left: auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 auto !important;
    overflow-x:clip !important;
  }
  body .mg-home .mg-hero-banner,
  body .mg-home .mg-hero-banner-wrap,
  body .mg-home .mg-benefits,
  body .mg-home .mg-section,
  body .mg-home .mg-home-video-section,
  body .mg-home .mg-home-featured-section {
    display:block;
    width:calc(100% - 24px) !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  body .mg-home .mg-hero-banner-wrap {width:100% !important;}
  body .mg-home .mg-hero-banner-img {display:block !important;width:100% !important;max-width:100% !important;height:auto !important;}
  body .mg-home .mg-benefits {display:grid !important;grid-template-columns:1fr !important;}
  body .mg-home .mg-section-head {display:block !important;width:100% !important;min-width:0 !important;}
  body .mg-home h1,
  body .mg-home h2,
  body .mg-home h3,
  body .mg-home .mg-section-head h2,
  body .mg-home .mg-hero-copy h1 {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    letter-spacing:normal !important;
    text-align:left !important;
  }
  body .mg-home .mg-hero-copy {width:100% !important;max-width:100% !important;min-width:0 !important;padding:24px 18px !important;}
  body .mg-home .mg-hero-copy h1 {font-size:clamp(28px,8vw,38px) !important;line-height:1.15 !important;}
  body .mg-home .mg-section-head h2 {font-size:clamp(24px,7vw,30px) !important;line-height:1.2 !important;}
  body .mg-home .mg-featured-grid,
  body .mg-home .mg-character-grid,
  body .mg-home .mg-occasion-grid {display:grid !important;grid-template-columns:minmax(0,1fr) !important;}
}

/* v2.8.2 — MG Media: eliminar columna comprimida en Inicio móvil. */
@media screen and (max-width: 767px) {
  body .mg-home .mg-home-one-video-only .mg-home-media-safe > .mgmedia-shortcode-block,
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block {
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:18px !important;
    gap:18px !important;
    box-sizing:border-box !important;
    margin:0 auto !important;
  }
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block > div {
    display:block !important;
    width:100% !important;
    flex:0 0 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block h3,
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block p {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    letter-spacing:normal !important;
    text-align:left !important;
  }
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block h3 {
    font-size:clamp(26px, 7vw, 34px) !important;
    line-height:1.16 !important;
  }
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block p {
    font-size:15px !important;
    line-height:1.55 !important;
  }
  body .mg-home .mg-home-one-video-only .mgmedia-shortcode-block video {
    width:100% !important;
    height:auto !important;
    aspect-ratio:16/9 !important;
  }
}
