
html {
  scroll-padding-top: 6.5rem;
}

.tk-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background: rgb(11 17 21 / .96);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease, background .2s ease;
}

.tk-header.tk-scrolled {
  background: rgb(11 17 21 / .98);
  box-shadow: 0 8px 28px rgb(0 0 0 / .18);
}

.tk-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 80rem;
  min-height: 84px;
  margin-inline: auto;
  padding: 14px 32px;
}

.tk-brand {
  flex-shrink: 0;
  text-decoration: none;
}

.tk-brand > span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .04em;
}

.tk-brand b {
  color: #2478ff;
}

.tk-brand small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .16em;
  color: #93c5fd;
}

.tk-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tk-link,
.tk-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.tk-link {
  color: #cbd5e1;
}

.tk-link:hover,
.tk-link[aria-current="location"] {
  color: #93c5fd;
  background: rgb(36 120 255 / .12);
}

.tk-cta {
  gap: 10px;
  margin-left: 14px;
  padding-inline: 22px;
  border-radius: 999px;
  background: #2478ff;
  color: white;
  font-weight: 600;
}

.tk-cta:hover {
  background: #155bd4;
  transform: translateY(-1px);
}

.tk-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 14px;
  background: rgb(255 255 255 / .04);
  color: white;
  cursor: pointer;
}

.tk-toggle-lines {
  position: relative;
  width: 20px;
  height: 16px;
}

.tk-toggle-lines i {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.tk-toggle-lines i:nth-child(1) { top: 0; }
.tk-toggle-lines i:nth-child(2) { top: 7px; }
.tk-toggle-lines i:nth-child(3) { top: 14px; }

.tk-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tk-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.tk-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tk-header a:focus-visible,
.tk-toggle:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

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

@media (max-width: 1199px) {
  .tk-bar {
    min-height: 76px;
    padding: 12px 24px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .tk-navigation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .tk-enhanced .tk-toggle {
    display: inline-flex;
  }

  .tk-enhanced .tk-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    width: min(360px, calc(100% - 32px));
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border: 1px solid rgb(255 255 255 / .12);
    border-radius: 20px;
    background: #111b24;
    box-shadow: 0 20px 50px rgb(0 0 0 / .35);
  }

  .tk-enhanced .tk-navigation:not([hidden]) {
    animation: tk-menu-enter .2s ease both;
  }

  .tk-link {
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 16px;
  }

  .tk-cta {
    margin: 9px 0 0;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-header,
  .tk-header *,
  .tk-enhanced .tk-navigation:not([hidden]) {
    animation: none;
    transition: none;
  }
}

/* Desplazamiento entre secciones y vuelta al inicio */
html {
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
