/* ==========================================================================
   Cabecera fija en negro con menú y botón Cotizar.
   ========================================================================== */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 50;
  background: #000000;
  color: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.site-header.scrolled {
  border-bottom-color: rgba(255,255,255,.1);
}

.site-header :focus-visible {
  outline-color: #13B3CA;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  padding: .4rem 0;
  background: linear-gradient(#13B3CA,#13B3CA) 0 100%/0 3px no-repeat;
  transition: background-size .25s,color .2s;
}

.nav a:hover {
  background-size: 100% 3px;
  color: #5CD3E4;
}

/* Sección en pantalla: su enlace queda subrayado */
.nav a.active {
  background-size: 100% 3px;
  color: #FFFFFF;
}

@media (min-width:861px) and (max-width:1100px) {
  .nav {
    gap: 1.15rem;
  }
  .nav a {
    font-size: .9rem;
  }
  .header-inner {
    gap: 1.4rem;
  }
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  padding: .5rem .9rem;
  cursor: pointer;
}

@media (max-width:860px) {
  .nav {
    position: fixed;
    top: calc(env(safe-area-inset-top,0px) + var(--header-h));
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #000000;
    padding: 8px var(--pad) 24px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    font-size: 1.4rem;
    font-weight: 700;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: none;
  }
  .menu-toggle {
    display: block;
  }
  .header-inner .btn-quote {
    display: none;
  }
}
