/* D05 G5 E2 — Mobile-first QA corrections, N0 screenshots 2026-11-21.
   Fixes:
   (1) E1 transition card overlap on iPhone, without altering E1's source;
   (2) 1774px intrinsic image height causing large dead space in business showcase;
   (3) white studio backdrop around the finale phone: true transparent cutout.
   Source photos, authored copy, E1 and official site remain unchanged. */

@media(max-width:720px){
 /* 1. SCENE TRANSITION — independent cards, no ornamental overlap */
 #transformacion .section-head{overflow:hidden;isolation:isolate}
 #transformation-runway{height:auto!important;min-height:0!important;overflow:visible}
 #transformation-runway .transformation-sticky{
   position:relative;top:auto;height:auto;max-height:none;
   padding:18px 18px 26px;overflow:visible
 }
 #transformation-stage{
   display:flex;flex-direction:column;gap:22px;
   height:auto;min-height:0;overflow:visible
 }
 #transformation-stage .story-bridge{display:none!important}
 #transformation-stage .real-scene{
   flex:none;height:auto!important;min-height:0;
   aspect-ratio:0.86;border-radius:24px;background:#e3cfda;
   transform:none!important;filter:none!important;overflow:hidden;
   box-shadow:0 9px 22px #3e203026
 }
 #transformation-stage .real-scene img{
   width:100%;height:100%;object-fit:contain;object-position:center;
   transform:none!important
 }
 #transformation-stage .digital-scene{
   flex:none;height:auto!important;min-height:0;
   aspect-ratio:1.06;border-radius:24px;
   transform:none!important;opacity:1!important;overflow:hidden;
   box-shadow:0 9px 22px #3e203026
 }
 #transformation-stage .digital-orbit{display:none}
 #transformation-stage .device-browser{
   width:90%;max-width:360px;transform:none!important
 }
 #transformation-stage .floating-note{display:none}
 #transformation-stage .scene-tag{bottom:15px;left:16px;font-size:9px}
 #transformation-stage .digital-tag{bottom:11px}
 #transformation-runway .story-stage-footer{padding-top:15px}

 /* 2. BUSINESS SHOWCASE — compact visual collage with true intrinsic aspect ratio.
       The phone asset is transparent and should sit over the boutique, not on a
       1774px tall blank slab. */
 #d05-experiencia-negocio{
   box-sizing:border-box;display:grid!important;
   grid-template-columns:minmax(0,1fr);
   grid-template-rows:auto clamp(300px,92vw,390px);
   gap:0;min-height:0!important;height:auto!important;
   padding:0!important;background:#f8e9e2;overflow:hidden
 }
 #d05-experiencia-negocio .d05-business-copy{
   grid-column:1;grid-row:1;
   padding:34px 24px 30px;min-width:0;z-index:2
 }
 #d05-experiencia-negocio .d05-business-copy h2{
   font-size:clamp(35px,9vw,52px);line-height:1.04;margin-bottom:14px
 }
 #d05-experiencia-negocio .d05-business-copy p{
   font-size:14px;line-height:1.55
 }
 #d05-experiencia-negocio .d05-business-photo{
   grid-column:1;grid-row:2;align-self:stretch;
   width:100%;height:100%;min-height:0!important;
   background-position:33% center;background-size:cover
 }
 #d05-experiencia-negocio .d05-business-mobile{
   grid-column:1;grid-row:2;position:relative;z-index:3;
   justify-self:end;align-self:end;
   display:block;width:clamp(152px,46vw,215px)!important;
   height:auto!important;max-height:none!important;
   aspect-ratio:887/1774;object-fit:contain;
   margin:0 15px 0 0!important;
   filter:drop-shadow(0 8px 18px #1f0e2099)
 }

 /* 3. FINAL BANNER — alpha-isolated phone floating on the actual architecture */
 #d05-13.e2-finale{min-height:0!important;overflow:hidden}
 #d05-13 .d05-finale-layout{
   display:flex!important;flex-direction:column;
   align-items:stretch;gap:13px;min-height:0!important;
   padding:54px 24px 28px
 }
 #d05-13 .d05-finale-copy{
   width:100%;max-width:100%;position:relative;z-index:2
 }
 #d05-13 .d05-finale-copy h2{
   font-size:clamp(38px,9.2vw,55px);line-height:1.04;
   overflow-wrap:normal;letter-spacing:-.045em
 }
 #d05-13 .d05-finale-copy p{font-size:14px;line-height:1.65}
 #d05-13 .d05-finale-phone{
   display:block;position:relative;align-self:flex-end;
   width:clamp(178px,53vw,225px)!important;min-width:0;
   max-width:none;max-height:none;
   aspect-ratio:654/1326!important;
   height:auto!important;border:0;background:transparent;box-shadow:none;
   overflow:visible;margin:0 8px 0 0!important
 }
 #d05-13 .d05-finale-architecture{background-position:50% center}
 #d05-13 .d05-finale-wash{
   background:linear-gradient(180deg,#4124516b 0%,#45285a54 43%,rgba(52,30,65,.12) 100%)
 }
}
@media(min-width:721px){
 #d05-13 .d05-finale-phone{
   width:min(100%,280px)!important;aspect-ratio:654/1326!important;
   height:auto!important;position:relative;overflow:visible
 }
}
/* On both desktop and mobile, tight alpha-image centering inside a stage
   cropped by geometry, not by image pixels. Image itself is RGBA PNG. */
#d05-13 .d05-finale-phone::before{display:none!important}
#d05-13 .d05-finale-phone img{
 display:block!important;position:absolute!important;
 top:50%;left:50%;width:156%!important;max-width:none!important;
 height:auto!important;max-height:none!important;
 object-fit:contain;object-position:center;
 transform:translate(-50%,-50%);mix-blend-mode:normal!important;
 filter:drop-shadow(0 12px 17px #22122d66);
}
/* Do not clip transparent device outside its own fit stage. */
#d05-13 .d05-finale-phone-label{display:none!important}

/* Same intrinsic image-height regression affected desktop and tablet.
   Keep original artwork, set explicit proportional sizing beyond mobile. */
@media(min-width:721px){
 #d05-experiencia-negocio{min-height:580px;height:auto}
 #d05-experiencia-negocio .d05-business-mobile{
   width:min(94%,288px)!important;height:auto!important;
   max-height:560px!important;aspect-ratio:887/1774;
   object-fit:contain;object-position:center;
   margin:0!important
 }
}
@media(min-width:721px) and (max-width:1000px){
 #d05-experiencia-negocio .d05-business-mobile{
   width:min(88%,220px)!important;max-height:420px!important
 }
 #d05-experiencia-negocio .d05-business-photo{min-height:420px}
}

