/* ======================= */
/*  BARRA AZUL SUPERIOR    */
/* ======================= */
/*.topBar {
  width: 100%;
  background-color: #0a64b8;
  color: white;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}*/
.topBar {
  width: 100%;

  color: var(--ColorWhite);
  font-size: 14px;
  position: fixed;
  top: 0;
  z-index: 20;

  padding: 5px 15px;
}



.topBarContent {
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 15px;
}

/*.topBarContent i {
  margin-right: 6px;
}*/

.contactInfo {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: roboto;
  font-weight: 400;
}

.socialIcons {
  display: flex;
  gap: 12px;
}

.socialIcons a {
  color: var(--AzulFuerte);
  font-size: 18px;
  transition: 0.3s;
  background-color: var(--ColorWhite);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.socialIcons a:hover {
  color: var(--AzulFuerte);
}



/* ======================= */
/*  MENÚ PRINCIPAL BLANCO  */
/* ======================= */

header {
  width: 100%;
  background-color: var(--ColorWhite);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  position: sticky;
  top: 44px;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  position:fixed;
  z-index: 1000;
}

.containerMenu {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 10px;
}

/* Logo */
.containerOpenLogo img {
  width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: cover;
}

/* Menú */
nav ul {
  display: flex;
  /*gap: 20px;*/
  gap: 40px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: 14px;
}

nav ul li a:hover {
  color: var(--AzulFuerte);
  font-weight: 600;

}

/* Buscador */
.searchBox {
  display: flex;
  align-items: center;
  background: var(--ColorWhite);
  border-radius: 20px;
  padding: 8px 20px;    position: relative;

  border: 1px solid var(--BordeBuscador);
  /*width: 280px;*/
}

.searchBox input {
  border: none;
  outline: none;
  background: none;
  width: 100%;
  font-size: 14px;
}

.searchBox i {
  color: #666;
  cursor: pointer;
}

/* Botón hamburguesa */
.nav-bar {
  display: none;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;

  cursor: pointer;
}

.nav-bar span {
  position: relative;
  width: 25px;
  height: 3px;
  background: #000;
}

.nav-bar span::before,
.nav-bar span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000;
  transition: 0.3s;
}

.nav-bar span::before {
  top: -8px;
}
.nav-bar span::after {
  top: 8px;
}

.closeBar span {
  background: transparent;
}
.closeBar span::before {
  transform: rotate(45deg);
  top: 0;
}
.closeBar span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Overlay */
.overlayMenu {
  position: fixed;
  /*top: 0;*/
  top:134px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
 /* background-color: transparent;*/
  display: none;
}

.displayOverlayMenu {
  display: block;
}

.spaceNav{
    width: 100%;
    height: 90px;
    background-color: transparent;
}


/*ESTILOS ADICIONALES PARA EL BUSCADOR*/
.flexBuscador{
      display: flex;


    }
    .responseSearchButtonBox{
      display: none;
      width: 45px;
      height: 45px;
      justify-content: center;
      align-items: center;
    }
        .search-box {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--ColorWhite);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        padding: 25px 0;
        z-index: 1001;
        transition: all ease .3s;
        display: flex;
        justify-content: space-between;
        padding-left:15px;
    }

    .search-box.active {
        top: 0;
    }

    .search-wrapper {
        position: relative;
        width:92%;
        display: flex;
        align-items: center;
    }

    .search-input {
        flex: 1;
        padding: 20px 50px 20px 20px;
        border: 1px solid var(--ColorBtn);
        font-size: 1rem;
        outline: none;
        transition: all ease .3s;
        box-shadow: none;
    }

    .search-input:focus {
        border-color: var(--primary);
    }

    .search-clear {
        position: absolute;
        right: 50px;
        background: none;
        border: none;
        color: var(--gray);
        cursor: pointer;
        padding: 0 10px;
        opacity: 0;
        visibility: hidden;
        transition: all ease .3s;
    }

    .search-input:not(:placeholder-shown) + .search-clear {
        opacity: 1;
        visibility: visible;
    }

    .search-submit {
        position: absolute;
        right: 10px;
        background: none;
        border: none;
        color: var(--ColorBtn);
        cursor: pointer;
        padding: 0 10px;
    }

    .search-close {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--gray);
        cursor: pointer;
        transition: all ease .3s;
        margin-left: 20px;
    }

    .search-close:hover {
        color: var(--ColorBtn);
    }

    /* Overlay */
        .overlay {
            position: fixed;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all ease .3s;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }



        /* Resultados de búsqueda */
.search-results {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--ColorWhite);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    margin-top: 10px;
    display: none;
}

.search-box.active .search-results {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid var(--gray);
    transition: all ease .3s;
    background-color: var(--ColorWhite);
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.search-result-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray);
}
/*FIN DEL RESULTADO DE LA BUSQUEDA*/
/*FIN*/













/* Estilos para el contenedor de resultados en desktop */
.search-results-desktop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}








/* Responsive */
@media (max-width: 1080px) {
  nav ul {
    flex-direction: column;
    background: var(--ColorWhite);
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    /*margin-top: 96px;*/
    margin-top: 84px;
    margin-left: -100%;
    height: 100vh;
    padding-top: 20px;

    /*padding-left: 20px;*/
  }

   /*nav ul li{
    padding: 10px 20px;
   }

  nav ul li:hover{
    padding: 10px 20px;
    background-color: red;
    cursor: pointer;
  }*/

  nav ul li a{
    display: block;
    text-decoration: none;
    color: black;
    padding: 20px 10px;
    transition: all ease .2s;
    font-family: var(--font-orbitron);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
  }

  nav ul li a:hover{
    background-color: var(--ColorBtn);
    color: var(--ColorWhite);
  }

  .nav-bar {
    display: flex;
  }

  .searchBox {
    display: none;
  }

  .mostrar {
    margin-left: 0;
    transition: 0.3s;
  }

  .responseSearchButtonBox{
        display: flex;
      }


}


@media (max-width:700px ) {
 .topBar{
    display: none;
 }
 header{
    top: 0px;

 }

 .overlayMenu{
    top: 88px;
 }

 .spaceNav{
    height: 30px;
 }

 /*WIDHT DEL BUSCADOR CUANDO SALE EL OVERLAY*/
 .search-wrapper{
      width: 89%;
  }
}
@media (max-width: 500PX) {
     .search-wrapper{
      width: 84%;
     }
    }

    @media (max-width: 430PX) {
     .search-wrapper{
      width: 82%;
     }
    }


    /* 🔵 DESKTOP — NO debe aparecer el buscador responsive */
/*@media (min-width: 1081px) {
    .search-box {
        display: none !important;
        top: -100% !important;
    }

    .overlay.active,
    .overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}
*/
