@media screen and (min-width:1025px){


/* LOGO OABI */

header.oabi-header .oabi-desktop-logo img {

    width: 260px !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;

}


header.oabi-header .oabi-desktop-logo {

    width: 300px !important;
    display:flex !important;
    align-items:center !important;

}


/* HEADER PRINCIPAL */

header.oabi-header .oabi-header-desktop {

    min-height:110px !important;
    height:110px !important;

    display:flex !important;
    align-items:center !important;

}


/* MENU */

header.oabi-header .oabi-desktop-nav a {

    font-size:14px !important;
    font-weight:500 !important;

}


}
@media screen and (min-width:1025px){

    header.oabi-header .oabi-desktop-logo{
        width:360px !important;
        min-width:360px !important;
        height:120px !important;
        padding:0 !important;
        overflow:visible !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
    }


    header.oabi-header .oabi-desktop-logo img{
        width:280px !important;
        max-width:none !important;
        max-height:none !important;
        height:auto !important;
        display:block !important;
        overflow:visible !important;
    }

}
@media screen and (min-width:1025px){

    header.oabi-header .oabi-header-desktop{
        height:95px !important;
        min-height:95px !important;
    }


    header.oabi-header .oabi-desktop-logo{
        height:95px !important;
    }


    header.oabi-header .oabi-desktop-nav{
        height:95px !important;
    }

}
@media screen and (min-width:1025px){

    header.oabi-header .oabi-header-desktop{
        display:flex !important;
        align-items:center !important;
    }


    header.oabi-header .oabi-desktop-logo{
        display:flex !important;
        align-items:center !important;
    }


    header.oabi-header .oabi-desktop-nav{
        display:flex !important;
        align-items:center !important;
    }

}
/* ==========================================
   SUBMENÚ PC - AZUL DE EXTREMO A EXTREMO
   ========================================== */

@media screen and (min-width: 1025px) {

    header.oabi-header .oabi-desktop-nav .children {
        border-left: 0 !important;
        border-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    header.oabi-header .oabi-desktop-nav .children > li,
    header.oabi-header .oabi-desktop-nav .children > li > a {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    header.oabi-header .oabi-desktop-nav .children > li > a:hover {
        background: #224F9D !important;
        color: #ffffff !important;
    }

}
/* AJUSTE FINO PC: conservar tipografia y logo; compactar menu principal */
@media screen and (min-width: 1025px) {
    header.oabi-header .oabi-desktop-nav {
        margin-left: 12px !important;
        min-width: 0 !important;
    }
    header.oabi-header .oabi-desktop-nav > ul {
        column-gap: 8px !important;
        gap: 8px !important;
    }
    header.oabi-header .oabi-desktop-nav > ul > li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    header.oabi-header .oabi-desktop-nav > ul > li > a {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}


/* ==========================================
   OABI - CONTROLES DEL MENU PRINCIPAL (PC)
   ========================================== */

@media screen and (min-width: 1200px) {

  :root {
    /* CONTROL 1: ESPACIO ENTRE OPCIONES */
    --menu-espaciado: 12px;

    /* CONTROL 2: MOVER IZQUIERDA / DERECHA */
    --menu-movimiento: 0px;
  }

  /* MENU REAL DE OABI */
  header.oabi-header .oabi-desktop-nav > ul {
    gap: var(--menu-espaciado) !important;

    transform: translateX(
      var(--menu-movimiento)
    ) !important;
  }

}

/* ==========================================
   OABI - FONDO OSCURO AL USAR EL MENU (PC)
   ========================================== */

@media (min-width: 1200px) {

  :root {
    /* CONTROL 1: Oscuridad del fondo */
    --menu-fondo-oscuridad: 0.60;

    /* CONTROL 2: Velocidad de transición */
    --menu-fondo-velocidad: 0.25s;
  }

  /* Capa oscura sobre el contenido */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(
      0, 0, 0,
      var(--menu-fondo-oscuridad)
    );
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity var(--menu-fondo-velocidad),
      visibility var(--menu-fondo-velocidad);
  }

  /* Activar al pasar el mouse por el menu */
  body:has(
    .oabi-desktop-nav:hover
  )::before {
    opacity: 1;
    visibility: visible;
  }

  /* Mantener el encabezado sobre el fondo */
  header.oabi-header {
    position: relative;
    z-index: 9991;
  }

}

/* ==========================================================
   CINTA AZUL OABI: contactos y cuatro redes sociales
   Ajustes aislados: no afectan el menú principal ni su overlay.
   ========================================================== */
header.oabi-header .oabi-topbar-left a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
header.oabi-header .oabi-topbar-left a:hover,
header.oabi-header .oabi-topbar-left a:focus-visible {
  color: #f0c45a;
}
header.oabi-header .oabi-topbar-left .oabi-topbar-separador {
  margin: 0 2px;
}
header.oabi-header .oabi-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
header.oabi-header .oabi-topbar-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  padding: 0;
  line-height: 1;
  background: transparent;
  text-decoration: none;
}
header.oabi-header .oabi-topbar-right a img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
  transition: filter .2s ease;
}
header.oabi-header .oabi-topbar-right a:hover img,
header.oabi-header .oabi-topbar-right a:focus-visible img {
  filter: sepia(1) saturate(4) hue-rotate(350deg) brightness(1.2);
}

/* OABI | Separación precisa de teléfonos y correo en la cinta superior (PC). */
@media screen and (min-width: 1025px) {
  header.oabi-header .oabi-topbar-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
  }
  header.oabi-header .oabi-topbar-left .oabi-topbar-separador {
    margin: 0 1px;
  }
  header.oabi-header .oabi-topbar-left > a[href^="mailto:"] {
    margin-left: 19px;
  }
}

/* OABI | Ajuste final de contactos: teléfonos compactos y correo alineado al logo.
   Solo PC; no modifica la banda, redes, menú ni versiones móviles. */
@media screen and (min-width: 1025px) {
  header.oabi-header .oabi-topbar-left {
    gap: 0 !important; /* Neutraliza el gap general de 24px */
    white-space: nowrap;
  }
  header.oabi-header .oabi-topbar-left .oabi-topbar-separador {
    margin: 0 9px !important; /* Distancia equilibrada a cada teléfono */
  }
  header.oabi-header .oabi-topbar-left > a[href^="mailto:"] {
    margin-left: 24px !important; /* Espacio claro entre teléfono y correo */
  }
}

/* OABI - Separación exclusiva del correo en PC */
@media screen and (min-width: 1025px) {
  header.oabi-header .oabi-topbar-left a[href^="mailto:"] {
    margin-left: 54px !important;
  }
}
