/* Chile Aviación V50 · Recuperación visual de navbar V48.
   Prioridad: fondo transparente SOBRE hero, doble logo, tipografía legible,
   Facebook + Spotify + Instagram visibles en desktop.
   No reemplaza imágenes ni reordena secciones.
*/
body .app-bar,
body .app-bar:not(.scrolled),
body.f35-body .ca31-header {
  background:rgba(18,40,79,.30) !important;
  border-bottom:1px solid rgba(255,255,255,.13) !important;
  box-shadow:none !important;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  z-index:1200;
}
body .app-bar.scrolled {
  background:rgba(7,17,39,.89) !important;
  box-shadow:0 7px 22px rgba(0,0,0,.18) !important;
}
/* El especial continúa con navbar sticky, pero superpuesto al HERO. */
body.f35-body .ca31-header {
  position:sticky !important;
  top:0;
  height:104px !important;
  margin-bottom:-104px !important;
}
body.f35-body .ca31-header .ca31-header-inner {height:100%;width:min(1780px,100%)}
/* Nunca sustituir ni ocultar las DOS piezas del logo. */
body .app-bar .app-logo-icon,
body .app-bar .app-logo-text,
body.f35-body .ca31-header .ca31-brand > a,
body.f35-body .ca31-header .ca31-icon-logo,
body.f35-body .ca31-header .ca31-text-logo {
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  align-items:center;
}
body .app-bar .app-logo-icon img,
body.f35-body .ca31-header .ca31-icon-logo {object-fit:contain!important}
body .app-bar .app-logo-text img,
body.f35-body .ca31-header .ca31-text-logo {height:auto!important;object-fit:contain!important}
/* Redes iguales a la captura de referencia */
@media(min-width:1024px) {
  body .app-bar .social-links,
  body.f35-body .ca31-header .ca31-header-social {display:flex !important;align-items:center!important;gap:7px!important;flex:0 0 auto}
  body .app-bar .social-btn,
  body.f35-body .ca31-header .ca31-header-social a {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    width:41px!important;
    height:43px!important;
    min-width:41px;
    padding:0;
    color:#fff!important;
    background:rgba(173,209,255,.18)!important;
    border:1px solid rgba(209,230,255,.19)!important;
    border-radius:13px;
    box-shadow:0 3px 12px rgba(0,0,0,.12);
    font-size:1.48rem;
  }
  body .app-bar .social-btn:hover,
  body.f35-body .ca31-header .ca31-header-social a:hover {background:rgba(192,219,255,.30)!important}
  body .app-bar .menu-toggle,
  body.f35-body .f35-mobile-toggle {display:none!important}
}

/* Escritorio y notebooks con espacio suficiente: una sola fila. */
@media(min-width:1200px) {
  body .app-bar,
  body .app-bar.scrolled {height:110px!important}
  body .app-bar .app-bar-container {
    display:flex!important;flex-wrap:nowrap!important;align-content:center!important;
    justify-content:space-between!important;gap:12px!important;
    padding:0 clamp(14px,2vw,35px)!important;
  }
  body .app-bar .app-logo-wrap {width:auto!important;height:auto!important;flex:0 0 auto!important;gap:12px!important;justify-content:flex-start!important}
  body .app-bar .app-logo-icon img,
  body .app-bar.scrolled .app-logo-icon img {width:clamp(64px,5.2vw,90px)!important;height:clamp(64px,5.2vw,90px)!important;border-radius:18px!important}
  body .app-bar .app-logo-text img,
  body .app-bar.scrolled .app-logo-text img {width:clamp(210px,16.5vw,292px)!important;max-width:292px!important}
  body .app-bar .nav-area {width:auto!important;height:auto!important;flex:1 1 auto!important;min-width:0;justify-content:flex-end!important;gap:clamp(5px,1vw,15px)!important;margin-left:auto!important}
  body .app-bar .nav-links {display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end!important;gap:clamp(1px,.4vw,8px)!important}
  body .app-bar .nav-links .nav-item {font-size:clamp(.90rem,1.12vw,1.07rem)!important;line-height:1.1!important;padding:10px clamp(5px,.65vw,13px)!important;min-height:43px}
  body.f35-body .ca31-header .ca31-header-inner {display:flex!important;flex-wrap:nowrap!important;align-content:center!important;justify-content:space-between!important;gap:12px!important;padding:0 clamp(14px,2vw,32px)!important}
  body.f35-body .ca31-header .ca31-brand {width:auto!important;height:auto!important;flex:0 0 auto!important;gap:12px!important}
  body.f35-body .ca31-header .ca31-icon-logo {width:clamp(64px,5.2vw,86px)!important;height:clamp(64px,5.2vw,86px)!important;border-radius:18px}
  body.f35-body .ca31-header .ca31-text-logo {width:clamp(185px,15.4vw,267px)!important;max-width:267px!important}
  body.f35-body .ca31-header .f35-main-nav {display:flex!important;flex:1 1 auto!important;min-width:0;align-items:center;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:1px!important;margin:0!important}
  body.f35-body .ca31-header .f35-main-nav .nav-item {font-size:clamp(.79rem,.91vw,.99rem)!important;line-height:1.15!important;padding:9px clamp(4px,.38vw,9px)!important;white-space:nowrap!important;min-height:43px}
}
/* 1024-1199px: navbar transparente; dos filas si hace falta, redes visibles arriba. */
@media(min-width:1024px) and (max-width:1199.98px) {
  body .app-bar,
  body .app-bar.scrolled {height:128px!important}
  body .app-bar .app-bar-container,
  body.f35-body .ca31-header .ca31-header-inner {
    display:flex!important;flex-wrap:wrap!important;align-content:center!important;
    align-items:center!important;justify-content:space-between!important;
    gap:3px 12px!important;padding:5px 16px!important;
  }
  body .app-bar .app-logo-wrap,
  body.f35-body .ca31-header .ca31-brand {
    flex:1 1 auto!important;width:auto!important;height:67px!important;
    display:flex!important;justify-content:flex-start!important;gap:11px!important;
  }
  body .app-bar .app-logo-icon img,
  body .app-bar.scrolled .app-logo-icon img,
  body.f35-body .ca31-header .ca31-icon-logo {width:60px!important;height:60px!important}
  body .app-bar .app-logo-text img,
  body .app-bar.scrolled .app-logo-text img,
  body.f35-body .ca31-header .ca31-text-logo {width:210px!important;max-width:210px!important}
  body .app-bar .nav-area,
  body.f35-body .ca31-header .f35-main-nav {width:100%!important;flex:0 0 100%!important;height:42px!important;display:flex!important;justify-content:center!important;margin:0!important;order:3!important}
  body .app-bar .nav-links {display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
  body .app-bar .nav-links .nav-item,
  body.f35-body .ca31-header .f35-main-nav .nav-item {font-size:.96rem!important;padding:8px 9px!important;white-space:nowrap}
  body.f35-body .ca31-header {height:128px!important;margin-bottom:-128px!important}
  body.f35-body .ca31-header .ca31-header-social {order:2!important;margin-left:auto!important}
  body .app-bar .social-links {display:flex!important}
  /* Portada: posiciona logos y redes en la primera fila, links abajo. */
  body .app-bar .nav-area {position:static!important}
  body .app-bar .social-links {position:absolute!important;right:16px;top:18px}
}
/* Deshacer desplazamiento que V48 añadía al carrusel de la portada. */
body .main-content,
body.nav-scrolled .main-content {padding-top:0!important}
/* Tablet/celular: los dos logos y el menú móvil original. */
@media(max-width:1023.98px) {
  body .app-bar .app-logo-icon,
  body .app-bar .app-logo-text,
  body.f35-body .ca31-header .ca31-brand > a {display:inline-flex!important;visibility:visible!important}
  body.f35-body .ca31-header {height:88px!important;margin-bottom:-88px!important}
  body .app-bar .nav-links,
  body .app-bar .social-links,
  body.f35-body .f35-main-nav,
  body.f35-body .ca31-header-social {display:none!important}
  body .app-bar .menu-toggle {display:inline-flex!important}
  body.f35-body .f35-mobile-toggle {display:block!important;margin-left:auto!important}
}
@media(max-width:575.98px) {
  body.f35-body .ca31-header {height:78px!important;margin-bottom:-78px!important}
  body.f35-body .ca31-header .ca31-icon-logo {width:52px!important;height:52px!important;border-radius:13px}
  body.f35-body .ca31-header .ca31-text-logo {width:min(48vw,185px)!important;max-width:100%!important}
}
