/* Header unificado Varnolac — menú móvil con <dialog> desde el logo */
.vl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #26252d;
  border-bottom: none;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

/* Franja marca: azul + rojo (firma del sitio) */
.vl-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(to right, #07008a 0 50%, #c81c24 50% 100%);
}

.vl-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .vl-header__inner {
    min-height: 5rem;
    height: 5rem;
    padding: 0 1.5rem;
  }
}

.vl-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.vl-header__logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.vl-header__logo img {
  height: 2.5rem;
  width: auto;
  max-width: none;
  min-height: 2.5rem;
  flex-shrink: 0;
  display: block;
  /* Detalle: nitidez del logotipo real sin alterar el diseño */
  filter: contrast(1.04) saturate(1.05);
}

@media (min-width: 768px) {
  .vl-header__logo img {
    height: 2.875rem;
    min-height: 2.875rem;
  }
}

@media (min-width: 1024px) {
  .vl-header__logo img {
    height: 3rem;
    min-height: 3rem;
  }
}

/* Escritorio: logo va al inicio; móvil: logo abre menú */
.vl-header__logo--link {
  display: none;
}

.vl-header__logo--menu {
  display: flex;
}

@media (min-width: 1024px) {
  .vl-header__logo--link {
    display: flex;
  }

  .vl-header__logo--menu {
    display: none;
  }
}

.vl-header__chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #b8bec4;
  border-bottom: 2px solid #b8bec4;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.15rem;
  transition: transform 0.2s;
}

.vl-header__logo--menu[aria-expanded="true"] .vl-header__chevron {
  transform: rotate(-135deg) translateY(2px);
}

.vl-header__nav {
  display: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .vl-header__nav {
    display: flex;
  }
}

.vl-header__nav a {
  color: #b8bec4;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.vl-header__nav a:hover,
.vl-header__nav a.vl-header__nav--active {
  color: #fff;
}

.vl-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Accesos rápidos en barra: deshabilitados (solo menú del logo en index) */
.vl-header__quick {
  display: none !important;
}

.vl-header__quick a {
  color: #b8bec4;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}

.vl-header__quick-label--short {
  display: none;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .vl-header--home .vl-header__inner {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .vl-header--home .vl-header__cta {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 639px) {
  .vl-header__inner {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .vl-header__wa.vl-wa-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.vl-header__quick a:hover {
  color: #fff;
}

.vl-header--home .vl-header__inner {
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .vl-header--home .vl-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: initial;
  }

  .vl-header--home .vl-header__brand {
    grid-column: 1;
  }

  .vl-header--home .vl-header__actions {
    grid-column: 3;
    justify-self: end;
  }
}

.vl-header__cta {
  display: none;
  padding: 0.5rem 1rem;
  background: #c81c24;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.15s;
}

.vl-header__cta:hover {
  background: #8a0000;
  color: #fff;
}

@media (min-width: 640px) {
  .vl-header__cta {
    display: inline-flex;
  }
}

.vl-header__wa {
  padding: 0.5rem 0.75rem;
  border: 1px solid #4f5861;
  color: #fff;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.vl-header__wa:hover {
  border-color: #fff;
  background: #3a4148;
  color: #fff;
}

/* Botón WhatsApp solo ícono (blanco sobre header oscuro) */
.vl-header__wa.vl-wa-icon {
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}

.vl-header__wa.vl-wa-icon svg {
  display: block;
  flex-shrink: 0;
}

.vl-header__wa.vl-wa-icon:hover {
  color: #fff;
}

/* Dialog menú móvil */
.vl-header__dialog {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: transparent;
}

.vl-header__dialog::backdrop {
  background: rgba(38, 37, 45, 0.65);
  backdrop-filter: blur(4px);
}

.vl-header__dialog[open] {
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
}

.vl-header__dialog-inner {
  width: 100%;
  max-height: min(92vh, 520px);
  margin-top: 0;
  background: #26252d;
  border-bottom: 1px solid #3a4148;
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: vl-menu-in 0.22s ease-out;
}

@keyframes vl-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vl-header__dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.vl-header__dialog-head img {
  height: 2rem;
  width: auto;
  max-width: none;
}

.vl-header__dialog-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #4f5861;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.vl-header__dialog-close:hover {
  background: #3a4148;
}

.vl-header__dialog-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vl-header__dialog-nav a {
  display: block;
  padding: 0.65rem 0;
  color: #eceef0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid #3a4148;
}

.vl-header__dialog-nav a:hover {
  color: #fff;
}

.vl-header__dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.vl-header__dialog-actions .vl-header__cta {
  display: inline-flex;
}

html.vl-menu-open {
  overflow: hidden;
}

body.vl-has-modern-header .cointener-slideer {
  margin-top: 0 !important;
}
