/* ============================================================
   HEADER · Botonera, submenús y buscador  (global: todas las páginas)
   ============================================================ */

/* Contenedor principal de la botonera (transparente; el color lo da .GO_header) */
.GO-botonera-wrapper {
  background-color: transparent;
  color: #fff;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-header);
}

/* --- Estado inicial: transparente --- */
.GO-botonera-wrapper .GO_header {
  width: 100%;
  height: 60px;
  background-color: transparent;
  backdrop-filter: blur(10px) saturate(100%);
  -webkit-backdrop-filter: blur(10px) saturate(100%);   /* ✔ antes: blur(0px) — inconsistente */
  position: relative;
  box-shadow:
    0 4px 30px rgba(0, 132, 200, 0),
    0 1px 15px rgba(0, 200, 255, 0),
    inset 0 1px 0 rgba(255, 255, 255, 0),
    inset 0 -1px 0 rgba(255, 255, 255, 0);
  transition:
    background-color        0.6s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter         0.6s cubic-bezier(0.4, 0, 0.2, 1),
    -webkit-backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow              0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Estado al hacer scroll: fondo morado con glow iOS --- */
.GO-botonera-wrapper .GO_header.scrolled {
  background-color: rgba(16, 3, 36, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    0 4px 30px rgba(0, 132, 200, 0.5),
    0 1px 15px rgba(0, 200, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* --- Línea animada multicolor en la parte inferior (siempre visible) --- */
.GO-botonera-wrapper .GO_header_border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--go-cyan)     20%,
    var(--go-blue)     40%,
    var(--go-purple)     60%,
    var(--go-pink)     80%,
    transparent 100%
  );
  background-size: 300% 100%;
  animation: GO_border_flow 15s linear infinite;
  opacity: 1;
  box-shadow:
    0 0  8px rgba(0, 229, 255, 0.8),
    0 0 16px rgba(0, 113, 227, 0.5),
    0 0 24px rgba(138, 43, 226, 0.3);
}

@keyframes GO_border_flow {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

.GO-botonera-wrapper .GO_nav {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* --- Logo --- */
.logo_img img {
  width: 130px;                /* ✔ antes: 150px + max-width: 130px → conflicto, gana 130px */
  height: 30px;
  display: block;
  object-fit: contain;         /* ✔ antes: justify-content: center (no aplica a <img>) */
}

.GO-botonera-wrapper .GO_nav_menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

/* --- Botones del nav --- */
.GO-botonera-wrapper .GO_nav_link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
  border: none;
}

/* Flecha indicadora de submenú */
.GO-botonera-wrapper .GO_nav_chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.GO-botonera-wrapper .GO_nav_item_has_dropdown:hover .GO_nav_chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Glow debajo del texto */
.GO-botonera-wrapper .GO_nav_link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(60%);
  width: 70%;
  height: 8px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(0, 200, 255, 0.4)  40%,
    rgba(0, 0, 0, 0)        70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.GO-botonera-wrapper .GO_nav_link:hover {
  color: #fff;
}

.GO-botonera-wrapper .GO_nav_link:hover::after {
  opacity: 1;
  width: 100%;
}

.GO-botonera-wrapper .GO_nav_icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.GO-botonera-wrapper .GO_nav_icon {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  cursor: pointer;
}

.GO-botonera-wrapper .GO_nav_icon:hover {
  color: #fff;
}

/* --- Submenús (full width, glass sobre el fondo oscuro) --- */
.GO-botonera-wrapper .GO_dropdown_wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(35, 38, 40, 0.85);
  backdrop-filter: blur(25px) saturate(100%);           /* ✔ antes: blur(25%) — inválido */
  -webkit-backdrop-filter: blur(25px) saturate(100%);   /* ✔ coherente con la versión no-webkit */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0  30px   rgba(0, 132, 200, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-100%);
  transition:
    transform 0.4s var(--ease-smooth),
    opacity   0.4s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.GO-botonera-wrapper .GO_dropdown_wrapper.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.GO-botonera-wrapper .GO_dropdown_content {
  display: none;
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 20px;
}

.GO-botonera-wrapper .GO_dropdown_content.active {
  display: block;
  animation: GO_fade_in_content 0.4s ease forwards;
}

@keyframes GO_fade_in_content {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.GO-botonera-wrapper .GO_dropdown_grid {
  display: grid;
  gap: 20px 40px;
  text-align: left;
}

.GO-botonera-wrapper .GO_cols_2 { grid-template-columns: repeat(2, 1fr); }
.GO-botonera-wrapper .GO_cols_3 { grid-template-columns: repeat(3, 1fr); }

.GO-botonera-wrapper .GO_dropdown_link {
  display: block;
  font-size: 14px;
  color: #d2d2d7;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
  white-space: nowrap;
}

.GO-botonera-wrapper .GO_dropdown_link:hover {
  color: #fff;
  text-decoration: underline;
}

.GO-botonera-wrapper .GO_dropdown_feature {
  font-size: 20px     !important;
  font-weight: 600    !important;
  color: #fff         !important;
  margin-bottom: 15px !important;
}

.GO-botonera-wrapper .GO_dropdown_feature:hover {
  text-decoration: none !important;
  color: var(--go-cyan)       !important;
}

/* --- Ventana de búsqueda (overlay) --- */
.GO-botonera-wrapper .GO_search_overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 30, 50, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: var(--z-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.GO-botonera-wrapper .GO_search_overlay.active {
  opacity: 1;
  visibility: visible;
}

.GO-botonera-wrapper .GO_search_container {
  width: 100%;
  max-width: 600px;
  position: relative;
  padding: 0 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.GO-botonera-wrapper .GO_search_overlay.active .GO_search_container {
  transform: translateY(0);
}

.GO-botonera-wrapper .GO_search_input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 32px;
  padding: 15px 0;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}

.GO-botonera-wrapper .GO_search_input:focus {
  border-color: var(--go-cyan);
}

.GO-botonera-wrapper .GO_search_input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.GO-botonera-wrapper .GO_search_close {
  position: absolute;
  top: -60px; right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.GO-botonera-wrapper .GO_search_close:hover {
  color: #fff;
}

/* --- Responsive del header --- */
@media (max-width: 900px) {
  .GO-botonera-wrapper .GO_nav_menu { display: none; }
  .GO-botonera-wrapper .GO_cols_3  { grid-template-columns: repeat(2, 1fr); }
  .GO-botonera-wrapper .GO_search_input { font-size: 24px; }
}
