:root {
  --tm-primary: #2f33b6;
  --tm-primary-dark: #252a94;
  --tm-text: #1f1f1f;
}

.tm-site-navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  padding: 0 8px;
  transition: top 0.25s ease, padding 0.25s ease;
}

.tm-site-navbar {
  max-width: 1380px;
  height: 120px;
  margin: 0 auto;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: max-width 0.3s ease, border-radius 0.3s ease;
}

.tm-site-navbar-wrapper.is-expanded {
  top: 0;
  padding: 0;
}

.tm-site-navbar-wrapper.is-expanded .tm-site-navbar {
  max-width: 100%;
  border-radius: 0;
}

.tm-site-navbar__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 6px 36px 4px;
}

.tm-contact-link {
  color: var(--tm-primary);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-contacto-img{
    width: 20px;
}

.tm-back-transparent{
    background-color: transparent
}

.tm-display-none{
    display: none
}

.tm-tam-search{
    width: 25px;
}

.tm-search-btn,
.tm-menu-toggle {
  border: 0;
  background: transparent;
  color: var(--tm-primary);
  font-size: 1.1rem;
  padding: 0;
  cursor: pointer;
}

.tm-menu-toggle {
  display: none;
  font-size: 1.75rem;
}

.tm-site-navbar__menu {
  display: flex;
  align-items: stretch;
}

.tm-brand-mobile {
  display: none;
  text-decoration: none;
}

.nav_logo_img--mobile {
  width: 70px;
  height: 48px;
}

.tm-mobile-contact {
  display: none;
}

.tm-contact-link--mobile {
  justify-content: flex-start;
  font-size: 0.88rem;
  padding: 6px 8px;
}

.tm-brand {
  min-height: 64px;
  width: 250px;
  flex: 0 0 250px;
  display: grid;
  place-items: center;
  text-decoration: none;
  padding-right: 30px;
}

.nav_logo_img {
  width: auto;
  max-width: 100%;
  height: 75px;
  object-fit: contain;
  transform: translateY(-25px);
}

.tm-site-navbar__links {
  display: flex;
  align-items: stretch;
  flex: 1;
  padding-left: 16px;
}

.tm-menu-link {
  min-height: 64px;
  height: 50px;
  flex: 1 1 0;
  min-width: 120px;
  border-left: 1px solid rgba(47, 51, 182, 0.14);
  display: grid;
  place-items: center;
  color: var(--tm-text);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 12px;
  position: relative;
}

.tm-menu-link:hover,
.tm-contact-link:hover {
  transform: none;
}

.tm-menu-link.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 4px;
  background: var(--tm-primary);
}

@media (max-width: 1200px) {
  .tm-menu-link {
    font-size: 0.92rem;
    min-width: 102px;
  }

  .tm-contact-link {
    font-size: 0.87rem;
  }
}

@media (max-width: 992px) {
  .tm-site-navbar-wrapper {
    top: 0;
    padding: 0;
  }

  .tm-site-navbar {
    max-width: 100%;
    border-radius: 0;
    height: auto;
    min-height: 0;
  }

  .tm-site-navbar__top {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 14px;
    min-height: 64px;
  }

  .tm-site-navbar__top .tm-contact-link,
  .tm-search-btn {
    display: none;
  }

  .tm-brand-mobile {
    display: inline-flex;
    align-items: center;
  }

  .tm-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    line-height: 1;
  }

  .tm-site-navbar__menu {
    display: block;
  }

  .tm-brand {
    display: none;
  }

  .nav_logo_img {
    transform: none;
    height: 56px;
  }

  .nav_logo_img--mobile {
    width: 88px;
    height: auto;
  }

  .tm-site-navbar__links {
    display: none;
    flex-direction: column;
    padding: 0 8px 12px;
    gap: 6px;
  }

  .tm-site-navbar-wrapper.is-mobile-open .tm-site-navbar__links {
    display: flex;
  }

  .tm-mobile-contact {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 8px 6px 0;
    border-top: 1px solid rgba(47, 51, 182, 0.12);
  }

  .tm-menu-link {
    min-height: 44px;
    border-left: 0;
    border-radius: 10px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.92);
    min-width: 0;
    width: 100%;
    font-size: 0.98rem;
  }

  .tm-menu-link.is-active::after {
    left: 12px;
    right: 12px;
    height: 3px;
  }
}

.tm-site-navbar__links > .tm-menu-link:first-child {
  border-left: 0;
}

