:root {
  --site-header-height: 72px;
}

body.has-site-header {
  padding-top: var(--site-header-height);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 8px clamp(14px, 3vw, 42px);
  color: #ffffff;
  background: rgba(5, 7, 17, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.site-header .brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-header .brand img {
  width: clamp(190px, 17vw, 246px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.site-header .nav {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.site-header .nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px clamp(8px, 0.8vw, 12px);
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400 !important;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.site-header .nav a[href*="certificacion"] {
  color: #ffffff;
  background: linear-gradient(135deg, #e11e79, #e7294b);
  border-color: rgba(255, 255, 255, 0.24);
}

.site-header .nav .nav-link--store,
.site-header .nav a[href*="tienda-tecnologica"] {
  color: #0b0b0d;
  background: #ffd400;
  border-color: #ffd400;
}

.site-header .nav .nav-action,
.site-header .nav a[href*="contacto"] {
  color: #ffffff;
  background: rgba(225, 30, 121, 0.11);
  border-color: rgba(225, 30, 121, 0.58);
}

.site-header .nav a:hover,
.site-header .nav a:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.site-nav-toggle {
  display: none;
  font-weight: 400 !important;
}

.site-header-utility:not(.customer-access) {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 930;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(22px, 3vw, 42px);
  padding: 48px clamp(18px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.74);
  background: #050711;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 400;
}

.site-footer > * {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer strong {
  color: #ffffff;
  font-weight: 500;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 1080px) {
  .site-header {
    gap: 10px;
    padding-inline: 12px;
  }

  .site-header .brand img {
    width: clamp(160px, 18vw, 205px);
  }

  .site-header .nav a {
    padding-inline: 7px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 62px;
    padding: 8px 10px;
  }

  .site-header .brand img {
    width: clamp(126px, 37vw, 158px);
    max-height: 42px;
  }

  .site-header .nav {
    position: absolute;
    top: 100%;
    right: 10px;
    left: 10px;
    width: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    overflow: visible;
    background: rgba(7, 9, 21, 0.99);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  }

  .site-header.is-nav-open .nav {
    display: grid;
  }

  .site-header .nav a {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 8px 10px;
    font-size: 12px;
  }

  .site-nav-toggle {
    width: auto;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: auto;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
  }

  .site-nav-toggle__icon {
    font-size: 20px;
    line-height: 1;
  }

  .site-nav-toggle__label {
    font-size: 13px;
    line-height: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
