/* GMC-ENTORNOS V43 · Tree and orbital leaves share a stable center on mobile.
   PNG tree can shrink and expand independently of the opaque V42 fallback.
   No canvas, WebGL, background filters or fixed black surfaces on mobile. */
@media (max-width:1199px),(pointer:coarse),(hover:none){
  .v7-home .gmc20-stage[data-gmc20-stage]{
    background-color:#e8f4db!important;
    isolation:isolate!important;
    position:relative!important;
    overflow:hidden!important;
  }
  .v7-home .gmc20.gmc43-tree-ready .gmc20-stage[data-gmc20-stage]{
    background-image:radial-gradient(ellipse at 50% 43%,#ecf6db 5%,#e8f4db 55%,#e5f2d4 100%)!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
  }
  .v7-home .gmc20-stage .gmc43-tree-render{
    display:block!important;
    position:absolute!important;
    z-index:3!important;
    left:50%!important;
    top:43%!important;
    width:min(100%,570px)!important;
    height:auto!important;
    max-height:79%!important;
    object-fit:contain!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    background:transparent!important;
    transform:translate(-50%,-50%) scale(1)!important;
    transform-origin:50% 50%!important;
    transition:top .76s cubic-bezier(.2,.72,.2,1), transform .76s cubic-bezier(.2,.72,.2,1)!important;
    filter:none!important;
    -webkit-filter:none!important;
  }
  .v7-home .gmc20.gmc43-tree-ready .gmc20-stage .gmc43-tree-render{
    opacity:1!important;visibility:visible!important;
  }
  .v7-home .gmc20[data-phase="open"] .gmc43-tree-render,
  .v7-home .gmc20[data-phase="morph"] .gmc43-tree-render{
    top:23%!important;
    transform:translate(-50%,-50%) scale(.56)!important;
  }
  .v7-home .gmc20[data-phase="rest"] .gmc43-tree-render,
  .v7-home .gmc20[data-phase="closing"] .gmc43-tree-render{
    top:43%!important;
    transform:translate(-50%,-50%) scale(1)!important;
  }
  /* Center each orbiting leaf on the same 50% / 43% axis as the tree. */
  .v7-home .gmc20-stage .gmc43-leaves{
    position:absolute!important;inset:0!important;z-index:4!important;
    pointer-events:none!important;overflow:hidden!important;
    background:transparent!important;
    opacity:1!important;visibility:visible!important;
    transition:opacity .34s ease,visibility .34s ease!important;
  }
  .v7-home .gmc43-orbit-leaf{
    position:absolute!important;
    left:50%!important;top:43%!important;
    margin-left:-27px!important;margin-top:-35px!important;
    width:54px!important;height:70px!important;
    transform-origin:center!important;
    pointer-events:none!important;
  }
  .v7-home .gmc43-orbit-leaf img{display:block;width:100%;height:100%;object-fit:contain;}
  .v7-home .gmc20:is([data-phase="open"],[data-phase="morph"]) .gmc43-leaves{
    opacity:0!important;visibility:hidden!important;
  }
  .v7-home .gmc20[data-phase="closing"] .gmc43-leaves,
  .v7-home .gmc20[data-phase="rest"] .gmc43-leaves{opacity:1!important;visibility:visible!important;}
  /* Single, reliable tap target for the tree in BOTH states. */
  .v7-home .gmc20-stage .gmc43-tree-hotspot{
    display:block!important;
    position:absolute!important;
    left:6%!important;top:10%!important;width:88%!important;height:59%!important;
    z-index:12!important;cursor:pointer!important;
    border:0!important;border-radius:36%!important;
    background:transparent!important;box-shadow:none!important;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .v7-home .gmc20[data-phase="open"] .gmc43-tree-hotspot,
  .v7-home .gmc20[data-phase="morph"] .gmc43-tree-hotspot{
    left:24%!important;top:3%!important;width:52%!important;height:35%!important;
  }
  .v7-home .gmc43-tree-hotspot:focus-visible{outline:3px solid #39835c!important;outline-offset:-4px!important;}
  /* On closing, hide the paper cards immediately so the same state returns. */
  .v7-home .gmc20[data-phase="closing"] .gmc20-menu,
  .v7-home .gmc20[data-phase="rest"] .gmc20-menu,
  .v7-home .gmc20[data-phase="morph"] .gmc20-menu{
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  }
  .v7-home .gmc20[data-phase="open"] .gmc20-menu{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
  .v7-home .gmc20[data-phase="open"] .gmc20-paper{pointer-events:auto!important;}
  .v7-home .gmc20-stage .gmc42-tree-toggle{display:none!important;}
  .v7-home .gmc20-stage canvas{display:none!important;}
  .v7-home .gmc20-stage .gmc20-bloom{display:none!important;}
}
@media (max-width:590px){
  .v7-home .gmc43-orbit-leaf{width:45px!important;height:58px!important;margin-left:-22.5px!important;margin-top:-29px!important;}
  .v7-home .gmc20[data-phase="open"] .gmc43-tree-render,
  .v7-home .gmc20[data-phase="morph"] .gmc43-tree-render{top:23%!important;transform:translate(-50%,-50%) scale(.52)!important;}
}
@media (prefers-reduced-motion:reduce){
  .v7-home .gmc20-stage .gmc43-tree-render{transition-duration:.01ms!important;}
  .v7-home .gmc43-orbit-leaf{animation:none!important;}
}
