/* CL-WEB 360 | R8 CONTROLLED LOCAL CANDIDATE ONLY. No production or deploy authorization.
   Controls long bilingual navigation in the Acer/desktop-to-tablet boundary.
   Local rollout is user-authorized; provider deployment requires separate approval. */
@media (min-width: 921px) and (max-width: 1120px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    column-gap: 12px;
  }
  .site-header .desktop-nav { display: none; }
  .site-header .menu-button { display: inline-flex; }
  .site-header .mobile-nav {
    position: absolute;
    z-index: 120;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    border-top: 0 solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 36px rgba(12, 12, 12,.13);
    transition: grid-template-rows 220ms ease, border-width 220ms ease;
  }
  .site-header .mobile-nav > .container {
    display: grid;
    min-height: 0;
    overflow: hidden;
  }
  .site-header .mobile-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--navy-900);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
  }
  .site-header .mobile-nav.is-open {
    grid-template-rows: 1fr;
    border-top-width: 1px;
  }
  .site-header .mobile-nav.is-open > .container {
    padding-block: 8px 18px;
  }
}
@media (max-width: 1120px) {
  .site-header .mobile-nav.is-open > .container {
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header .mobile-nav a:focus-visible,
  .site-header .menu-button:focus-visible {
    outline: 3px solid #a8751c;
    outline-offset: 3px;
  }
}

/* CL-WEB 360 | LANG-03 R9 — LOCAL CANDIDATE, STOP / NO RELEASE.
   Scoped visual/accessibility corrections only; unchanged source HTML/JS. */
/* Four EN trust-card descriptions inherit an inappropriate light section color. */
html[lang="en"] .cl360-home-section--dark .cl360-card p {
  color: #333333;
}
/* Open compact navigation owns the interaction layer. Remove floating WhatsApp
   from painting, hit-testing AND keyboard tab order until the menu closes.
   CSS state follows the existing nav controller; no JS or external behavior changes. */
@media (max-width: 1120px) {
  .site-shell:has(.site-header .mobile-nav.is-open) > .whatsapp-float {
    display: none !important;
  }
}

/* LANG-03 R11 VISUAL FIX: controlled local proposal, STOP / NO RELEASE.
   User-reported P2: transparent 44px toggle clips Menú/Cerrar. Do not alter
   links, scripts, footer, transactional routes, or hosting. */
@media (max-width: 1120px) {
  .site-header { background: var(--paper); backdrop-filter: none; }
  .site-header .menu-button {
    box-sizing: border-box;
    width: auto;
    min-width: 80px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--gold-600);
    background: var(--navy-900);
    color: var(--paper);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 1;
  }
  .site-header .menu-button:focus-visible {
    outline: 3px solid var(--gold-600);
    outline-offset: 3px;
  }
  .site-header .mobile-nav { background: var(--paper); }
}

/* LANG-03 R12: opaque full-viewport dropdown while compact menu is open.
   Prevent underlying footer/page from showing through or scrolling behind menu.
   Menu remains a dropdown (not a dialog); panel itself and links stay scrollable.
   Local proposal only / STOP NO RELEASE. */
@media (max-width: 1120px) {
  body:has(.site-header .mobile-nav.is-open) { overflow: hidden; }
  .site-header .mobile-nav.is-open {
    min-height: 100dvh;
    background: var(--paper);
    box-shadow: none;
    overscroll-behavior: contain;
  }
  .site-header .mobile-nav.is-open > .container {
    align-content: start;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}


/* CL-WEB 360 LANG-04 R13 | mobile portrait grid no-overflow; local only, STOP NO RELEASE.
   Preserve approved portraits, routes, and original image assets. */
@media (max-width: 760px) {
  .production-portrait-grid { grid-template-columns: minmax(0, 1fr); }
  .production-portrait-grid > * { min-width: 0; }
  .production-portrait-grid > img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}
