/* ==========================================================
   RuGo Full Website v025 — MOBILE HOME reference implementation
   Reference viewport: 390 × 844

   Admin-approved mobile rules:
   - desktop remains frozen authority;
   - RuGo boot handoff preserved at mobile top-left target;
   - CONTÁCTANOS top-right, mobile-scaled;
   - HOME photography becomes a full-width FULL-BLEED field;
   - HOME editorial content becomes one mobile normal-flow stack;
   - HOME owns an internal vertical scroller;
   - perimeter/action words live in protected exclusion zones;
   - HOME cover shows DETALLES only; inactive Detail OFERTA may not bleed in.

   Markup colors are annotation identifiers only and do not enter the UI.
   ========================================================== */

@media (max-width:860px){
  .home-screen-v089{
    --mobile-home-pad-x:22px;
    --mobile-home-header-h:calc(env(safe-area-inset-top, 0px) + 82px);
    --mobile-home-bottom-h:calc(env(safe-area-inset-bottom, 0px) + 64px);
    --mobile-home-title-size:clamp(40px,11.55vw,46px);
    --mobile-home-body-size:clamp(14px,3.85vw,16px);
    --mobile-home-cta-size:clamp(15px,4.10vw,17px);
    --mobile-home-label-size:clamp(10px,2.82vw,12px);
    --mobile-home-secondary-size:clamp(13px,3.58vw,15px);
    --mobile-home-secondary-cta-size:clamp(12px,3.33vw,14px);
    --mobile-home-edge-size:clamp(28px,8.2vw,32px);

    height:100svh!important;
    min-height:100svh!important;
    overflow:hidden!important;
  }

  /* ----------------------------------------------------------
     TOP PROTECTED HEADER — RuGo + CONTÁCTANOS
     ---------------------------------------------------------- */
  .home-screen-v089 .launch-header{
    z-index:80!important;
    height:var(--mobile-home-header-h)!important;
    min-height:var(--mobile-home-header-h)!important;
    padding:
      calc(env(safe-area-inset-top, 0px) + 18px)
      18px
      0!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:18px!important;
    background:var(--home-paper)!important;
    pointer-events:none!important;
  }

  .home-screen-v089 .launch-header>*{
    pointer-events:auto!important;
  }

  .home-screen-v089 #headerBrandCover{
    flex:0 0 auto!important;
    margin:0!important;
    font-size:clamp(23px,6.35vw,27px)!important;
    line-height:1!important;
  }

  .home-screen-v089 .launch-contact{
    --express-contact-size:clamp(25px,7.18vw,30px);
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:calc(100vw - 124px)!important;
    margin:0!important;
    white-space:nowrap!important;
    text-align:right!important;
  }

  .home-screen-v089 .launch-contact .interactive-word{
    font-size:var(--express-contact-size)!important;
    line-height:.88!important;
  }

  /* ----------------------------------------------------------
     HOME INTERNAL SCROLLER
     The spatial document remains locked. Header and edge actions are
     outside this element and therefore never scroll with the content.
     ---------------------------------------------------------- */
  .home-screen-v089 .home-v089{
    position:absolute!important;
    z-index:1!important;
    top:var(--mobile-home-header-h)!important;
    right:0!important;
    bottom:var(--mobile-home-bottom-h)!important;
    left:0!important;
    width:100%!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color:rgba(17,17,15,.24) transparent;
    background:var(--home-paper)!important;
  }

  .home-screen-v089 .home-v089::-webkit-scrollbar{
    width:3px;
  }

  .home-screen-v089 .home-v089::-webkit-scrollbar-track{
    background:transparent;
  }

  .home-screen-v089 .home-v089::-webkit-scrollbar-thumb{
    background:rgba(17,17,15,.24);
  }

  /* ----------------------------------------------------------
     FULL-BLEED PHOTOGRAPHY
     Photography leads; all editorial content follows below it.
     ---------------------------------------------------------- */
  .home-screen-v089 .home-v089__visual{
    order:1!important;
    position:relative!important;
    flex:0 0 clamp(430px,58svh,500px)!important;
    width:100%!important;
    height:clamp(430px,58svh,500px)!important;
    min-height:0!important;
    margin:0!important;
    overflow:hidden!important;
    background:var(--home-paper)!important;
  }

  .home-screen-v089 .home-v089__image{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .home-screen-v089 .home-v089__image[data-home-hero-cell="05"]{
    object-position:center 52%!important;
  }

  .home-screen-v089 .home-v089__image[data-home-hero-cell="01"],
  .home-screen-v089 .home-v089__image[data-home-hero-cell="02"]{
    object-position:center center!important;
  }

  /* ----------------------------------------------------------
     MOBILE EDITORIAL STACK
     One hierarchy, normal flow, no absolute child positioning.
     Right padding protects DETALLES; bottom viewport exclusion is
     already owned by --mobile-home-bottom-h.
     ---------------------------------------------------------- */
  .home-screen-v089 .home-v089__editorial{
    order:2!important;
    position:relative!important;
    flex:0 0 auto!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    gap:38px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:
      30px
      54px
      46px
      var(--mobile-home-pad-x)!important;
    container-type:normal!important;
    background:var(--home-paper)!important;
  }

  .home-screen-v089 .home-v089__offer,
  .home-screen-v089 .home-v089__rugo{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }

  .home-screen-v089 .home-v089__title{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    font-size:var(--mobile-home-title-size)!important;
    line-height:.90!important;
    font-weight:650!important;
    letter-spacing:-.055em!important;
  }

  .home-screen-v089 .home-v089__title-line{
    white-space:nowrap!important;
  }

  .home-screen-v089 .home-v089__statement{
    width:100%!important;
    max-width:31ch!important;
    margin:8px 0 0!important;
    font-size:var(--mobile-home-body-size)!important;
    line-height:1.42!important;
    letter-spacing:-.012em!important;
  }

  .home-screen-v089 .home-v089__cta{
    margin:18px 0 0!important;
    font-size:var(--mobile-home-cta-size)!important;
    line-height:1!important;
  }

  .home-screen-v089 .home-v089__rugo{
    position:relative!important;
    padding-top:18px!important;
    border-top:1px solid rgba(17,17,15,.16)!important;
  }

  .home-screen-v089 .home-v089__rugo::before{
    width:42px!important;
  }

  .home-screen-v089 .home-v089__rugo-label{
    margin:0 0 10px!important;
    font-size:var(--mobile-home-label-size)!important;
    line-height:1.05!important;
  }

  .home-screen-v089 .home-v089__rugo-copy{
    width:100%!important;
    max-width:31ch!important;
    margin:0!important;
    font-size:var(--mobile-home-secondary-size)!important;
    line-height:1.48!important;
  }

  .home-screen-v089 .home-v089__explore-rugo{
    margin:16px 0 0!important;
    font-size:var(--mobile-home-secondary-cta-size)!important;
    line-height:1!important;
  }

  .home-screen-v089{
    --rugo-master-arrow-size:19px!important;
    --rugo-master-arrow-box:19px!important;
  }

  /* ----------------------------------------------------------
     HOME PERIMETER EXCLUSION / ACTION WORDS
     ---------------------------------------------------------- */
  .home-screen-v089 > .edge-nav{
    z-index:90!important;
    font-size:var(--mobile-home-edge-size)!important;
  }

  .home-screen-v089 > .edge-nav--right{
    width:54px!important;
    height:42vh!important;
  }

  .home-screen-v089 > .edge-nav--bottom{
    width:68vw!important;
    height:var(--mobile-home-bottom-h)!important;
  }

  /* Cover owns DETALLES. Detail's OFERTA may not paint into HOME. */
  .experience-track[data-state="cover"]
    .site-state[data-state-name="detail"]
    .edge-nav{
      opacity:0!important;
      visibility:hidden!important;
      pointer-events:none!important;
    }

  /* Symmetric state isolation: inactive HOME perimeter actions do not
     remain interactive while Detail is authoritative. */
  .experience-track[data-state="detail"]
    .site-state[data-state-name="cover"]
    .edge-nav{
      opacity:0!important;
      visibility:hidden!important;
      pointer-events:none!important;
    }
}

@media (max-width:860px) and (prefers-reduced-motion:reduce){
  .home-screen-v089 .home-v089__image{
    transition:none!important;
    transform:none!important;
  }
}
