/* === BARRA SUPERIOR FIJA === */
#ance-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #444444;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  padding-left: 0 !important;
  padding-right: 25 !important;
  z-index: 999999 !important;

}

#ance-topbar-left {
  background: #333333;
  color: #ffffff;
  font-size: 12px;
  font-weight: 100;
  letter-spacing: 1px;
  padding: 0 24px 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Helvetica Neue', sans-serif;
  margin-left: 0;
  width: 309px;
  box-sizing: border-box;
  flex-shrink: 0;
}

#ance-topbar-center {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 12px;
  font-weight: 100;
  letter-spacing: 2px;
  font-family: 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
  cursor: text;
}

#ance-topbar-lupa {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  padding-right: 24px !important;

}

#ance-topbar-lupa svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
}

#ance-topbar-lupa:hover svg {
  stroke: #00b0f0;
}

/* Empuja el navbar hacia abajo */
body {
  padding-top: 100px !important;
}

/* === PANEL DE BÚSQUEDA ABIERTO === */
#ance-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 999999;
  display: none;
  align-items: center;
}

#ance-search-panel.open {
  display: flex;
}

#ance-search-left {
  background: #444444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Helvetica Neue', sans-serif;
  width: 309px;
box-sizing: border-box;
flex-shrink: 0;
}

#ance-search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: #f5f5f5;
  padding: 0 20px;
  font-size: 14px;
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
}

#ance-search-input::placeholder {
  color: #aaaaaa;
  letter-spacing: 1px;
}

#ance-search-submit {
  background: #00049e;
  border: none;
  color: #ffffff;
  height: 100%;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica Neue', sans-serif;
  transition: background 0.2s;
  text-transform: uppercase;
}

#ance-search-submit:hover {
  background: #00b0f0;
}

#ance-search-submit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
}

#ance-search-close {
  background: #333333;
  border: none;
  color: #ffffff;
  height: 100%;
  padding: 0 20px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

#ance-search-close:hover {
  background: #555555;
}

/* Ocultar formulario nativo de búsqueda */
.views-exposed-form {
  display: none !important;
}
@media (max-width: 1023px) {
  #ance-topbar { display: none !important; }
  #ance-mobile-lupa {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
  }
  body { padding-top: 60px !important; }
}

@media (max-width: 1023px) {
  #ance-search-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 24px !important;
    box-sizing: border-box !important;
  }

  #ance-search-panel.open {
    display: flex !important;
  }

  #ance-search-left {
    display: none !important;
  }

  #ance-search-input {
    width: 100% !important;
    height: 50px !important;
    font-size: 16px !important;
    border: none !important;
    border-bottom: 2px solid #00049e !important;
    background: transparent !important;
    padding: 0 10px !important;
    margin-bottom: 20px !important;
  }

  #ance-search-submit {
    width: 100% !important;
    height: 50px !important;
    font-size: 14px !important;
    justify-content: center !important;
  }

  #ance-search-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 24px !important;
    height: auto !important;
    padding: 8px !important;
  }
}
@media (max-width: 1023px) {
  #ance-search-input {
    text-align: center !important;
  }
}
@media (max-width: 1023px) {
  #ance-mobile-lupa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
    padding: 0 8px !important;
  }
}

/* ========================================
   ÍCONO DE LUPA MÓVIL — AZUL #00049e
   Antes heredaba blanco (pensado para el
   navbar oscuro #404040). Ahora el navbar
   móvil es blanco (ver navbar_transparente_
   ance.css v5.9), así que el ícono necesita
   su propio color explícito para no perderse.
   Cubre tanto stroke (íconos outline) como
   fill (íconos sólidos), por si el SVG usa
   uno u otro.
   ======================================== */
@media (max-width: 1023px) {
  #ance-mobile-lupa svg {
    stroke: #00049e !important;
    fill: none !important;
    color: #00049e !important;
  }
}