/* ============================================================
   Tekton — nav.css
   ============================================================ */

/* ── NAV WRAP ────────────────────────────────────────────── */
.tk-nav-wrap {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--tk-border);
  z-index: 200;
}
.tk-nav {
  max-width: var(--tk-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
}

/* Logo */
.tk-nav-logo a { display: block; }
.tk-nav-logo img { height: 34px; display: block; }

/* Links desktop */
.tk-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.tk-nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.tk-nav-links li a,
.tk-nav-links li span {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.tk-nav-links li a:hover,
.tk-nav-links li.current-menu-item a { color: var(--tk-primary); }

/* Selector idioma */
.tk-lang {
  display: flex;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: var(--tk-radius);
  overflow: hidden;
  flex-shrink: 0;
}
.tk-lang-opt {
  padding: 5px 10px;
  cursor: pointer;
  color: #999;
  background: #fff;
  transition: all .15s;
  text-decoration: none;
  user-select: none;
}
.tk-lang-opt.active  { background: var(--tk-primary); color: #fff; }
.tk-lang-opt:not(.active):hover { background: #f5f5f5; color: #555; }

/* CTA nav */
.tk-nav-cta {
  background: var(--tk-primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--tk-radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .15s;
  display: inline-block;
}
.tk-nav-cta:hover { opacity: .88; color: #fff; }

/* Hamburguesa — oculto en desktop */
.tk-hamburger { display: none; }
.tk-lang-mobile { display: none; }

/* ── MENÚ MÓVIL ──────────────────────────────────────────── */
.tk-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 90%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 300;
  padding: 80px 0 2rem;
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.tk-mobile-menu.open {
  transform: translateX(0);
}
.tk-mobile-links {
  list-style: none;
  margin: 0; padding: 0;
}
.tk-mobile-links li a {
  display: block;
  padding: 14px 2rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--tk-dark);
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: color .15s, background .15s;
}
.tk-mobile-links li a:hover { color: var(--tk-primary); background: #fdf5f3; }
.tk-mobile-links li.current-menu-item a { color: var(--tk-primary); }

.tk-mobile-cta-item { margin: 1.5rem 2rem 0; }
.tk-mobile-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Overlay */
.tk-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 250;
  opacity: 0;
  transition: opacity .3s;
}
.tk-nav-overlay.open { opacity: 1; }

/* ── FOOTER ──────────────────────────────────────────────── */
.tk-footer {
  background: #fff;
  border-top: 1px solid var(--tk-border);
}
.tk-footer-inner {
  max-width: var(--tk-max-width);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}
.tk-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--tk-border);
  margin-bottom: 1.5rem;
}
.tk-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tk-dark);
  margin: 0 0 .9rem;
}
.tk-footer-logo img { height: 26px; display: block; margin-bottom: 1rem; }
.tk-footer-contact p { font-size: 12px; color: #888; line-height: 1.7; margin: 0 0 .2rem; }
.tk-footer-contact a { font-size: 12px; color: var(--tk-primary); text-decoration: none; }
.tk-footer-contact a:hover { text-decoration: underline; }
.tk-footer-address { font-size: 12px; color: #888; line-height: 1.8; margin: 0; }
.tk-footer-services { list-style: none; margin: 0; padding: 0; }
.tk-footer-services li { border-bottom: 1px solid #f2f2f2; }
.tk-footer-services li:last-child { border-bottom: none; }
.tk-footer-services li a {
  display: block;
  font-size: 12px;
  color: #888;
  padding: 5px 0;
  line-height: 1.4;
  text-decoration: none;
  transition: color .15s;
}
.tk-footer-services li a:hover { color: var(--tk-primary); }
.tk-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.tk-footer-copyright { font-size: 11px; color: #bbb; }
.tk-footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.tk-footer-legal a {
  font-size: 11px;
  color: #bbb;
  text-decoration: none;
  transition: color .15s;
}
.tk-footer-legal a:hover { color: var(--tk-primary); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .tk-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  /* Nav */
  .tk-nav { padding: 0 1.25rem; position: relative; }

  /* Hamburguesa: izquierda */
  .tk-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 10;
    flex-shrink: 0;
  }
  .tk-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tk-dark);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
  }
  .tk-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tk-hamburger.open span:nth-child(2) { opacity: 0; }
  .tk-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Logo: centrado */
  .tk-nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Idioma móvil: derecha */
  .tk-lang-mobile { display: flex; }

  /* Ocultar nav desktop */
  .tk-nav-right { display: none; }

  /* Menú drawer visible */
  .tk-mobile-menu { display: block; }
  .tk-nav-overlay { display: block; }

  /* Footer */
  .tk-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .tk-footer-bottom { flex-direction: column; align-items: flex-start; }
  .tk-footer-legal { flex-direction: column; gap: .5rem; }
}

/* ── Toggle submenús móvil ───────────────────────────────── */
.tk-mobile-links .menu-item-has-children {
  position: relative;
}
.tk-mobile-links .menu-item-has-children > a {
  padding-right: 48px;
}
.tk-submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #999;
  transition: color .15s;
}
.tk-submenu-toggle:hover { color: #ED6A4C; }

/* Submenús colapsados por defecto */
.tk-mobile-links .sub-menu {
  display: none;
  max-height: none;
  overflow: visible;
}
.tk-mobile-links .menu-item-has-children.tk-expanded > .sub-menu {
  display: block;
}

/* Nivel 2 */
.tk-mobile-links .sub-menu li a {
  padding: 11px 2rem 11px 3rem;
  font-size: 14px;
  color: #777;
  border-bottom: 1px solid #eee;
}

/* Nivel 3 */
.tk-mobile-links .sub-menu .sub-menu li a {
  padding-left: 4rem;
  font-size: 13px;
  color: #999;
}
/* Espacio tras botón cerrar */
.tk-mobile-menu {
  padding: 50px 0 2rem;
}

/* Alinear toggle con el botón cerrar */
.tk-submenu-toggle {
  right: 8px;
}

/* Toggle nivel 3 alineado con su texto */
.tk-mobile-links .sub-menu .menu-item-has-children > a {
  padding-right: 48px;
}
.tk-mobile-links .sub-menu .tk-submenu-toggle {
  top: 0;
  transform: none;
  height: auto;
  align-self: flex-start;
  padding-top: 7px;
  right: 0;
}
.tk-mobile-links .sub-menu li {
  position: relative;
}