/* Chile Aviacion V47 · Navbar de notebook 14 pulgadas
   Override final: corrige media queries previas (incluida V40 a 1499px).
   Mantiene menu movil exclusivamente bajo 1024px. */
@media (min-width: 1024px) and (max-width: 1499.98px) {
  /* Especial F-35: se mantiene la navegacion horizontal y visible. */
  body.f35-body .ca31-header { height: 86px; }
  body.f35-body .ca31-header-inner {
    padding: 0 15px;
    gap: 10px;
    max-width: 100%;
  }
  body.f35-body .ca31-brand { gap: 8px; flex: 0 0 auto; }
  body.f35-body .ca31-icon-logo { display: none; }
  body.f35-body .ca31-text-logo { width: clamp(160px, 15vw, 208px); max-width: none; }
  body.f35-body .f35-main-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 1px;
    margin-left: auto;
    min-width: 0;
  }
  body.f35-body .f35-main-nav .nav-item {
    display: inline-flex !important;
    white-space: nowrap;
    min-height: 40px;
    font-size: clamp(.70rem, .89vw, .83rem);
    font-weight: 750;
    padding: 10px clamp(4px, .56vw, 9px) !important;
    gap: 4px;
  }
  body.f35-body .ca31-header-social {
    display: flex !important;
    flex: 0 0 auto;
    gap: 2px;
  }
  body.f35-body .ca31-header-social a { width: 30px; height: 36px; font-size: 1.16rem; }
  body.f35-body .f35-mobile-toggle { display: none !important; }

  /* Portada principal: solo cuando esta hoja esta enlazada en index.php. */
  body .app-bar-container { max-width: 100%; padding-left: 16px; padding-right: 16px; gap: 10px; }
  body .app-logo-wrap { gap: 8px; }
  body .app-logo-icon { display: none; }
  body .app-logo-text img,
  body .app-bar.scrolled .app-logo-text img { width: clamp(160px, 16vw, 216px); max-width: none; }
  body .nav-area { min-width: 0; gap: 6px; }
  body .nav-links { display: flex !important; align-items: center; gap: 2px; flex-wrap: nowrap; }
  body .nav-links .nav-item { font-size: clamp(.71rem, .87vw, .82rem); padding: 9px clamp(4px, .52vw, 9px); }
  body .social-links { display: flex; gap: 2px; }
  body .social-btn { width: 32px; height: 36px; }
  body .menu-toggle { display: none !important; }
}
/* Pantallas de 1024 a 1199: priorizamos enlaces frente a iconos sociales. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  body.f35-body .ca31-header-social, body .social-links { display: none !important; }
  body.f35-body .ca31-text-logo { width: 170px; }
  body .app-logo-text img, body .app-bar.scrolled .app-logo-text img { width: 166px; }
}
/* Caso 1024-1120 px: dos filas visibles, sin menu hamburguesa y sin desbordes. */
@media (min-width: 1024px) and (max-width: 1120px) {
  body.f35-body .ca31-header { height: 113px; }
  body.f35-body .ca31-header-inner { flex-wrap: wrap; justify-content: center; align-content: center; gap: 0 8px; }
  body.f35-body .ca31-brand { width: 100%; justify-content: center; height: 47px; }
  body.f35-body .ca31-text-logo { width: 166px; }
  body.f35-body .f35-main-nav { width: 100%; flex: 0 0 100%; justify-content: center; margin-left: 0; }
  body.f35-body .f35-main-nav .nav-item { font-size: .75rem; padding: 9px 7px !important; }

  body:has(.app-bar) { --nav-height: 113px; --nav-height-scrolled: 113px; }
  body .app-bar, body .app-bar.scrolled { height: 113px; }
  body .app-bar-container { flex-wrap: wrap; justify-content: center; align-content: center; gap: 0 8px; }
  body .app-logo-wrap { width: 100%; justify-content: center; height: 45px; }
  body .nav-area { margin-left: 0; justify-content: center; width: 100%; }
  body .nav-links { justify-content: center; }
  body .nav-links .nav-item { padding: 8px 7px; font-size: .76rem; }
  body .main-content { padding-top: 113px; }
}
