/* global-header.css: Estilos globales para el header de Colurs */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans";
}
body {
  background-color: #fafafa;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  right: initial;
  width: min(calc(100% - 2rem), 1280px);
  z-index: 1000;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}
.logo-nav-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}
.logo {
  height: 36px;
}
.nav-tabs-menu {
  display: flex;
  gap: 0.5rem;
  background: none;
}
.nav-tab {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: #232328;
  padding: 0.7rem 2.2rem;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  border-bottom: none !important;
}
.nav-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background-color: #111827;
  transition: width 0.2s ease;
}
.nav-tab-active {
  background: none;
  color: #232328;
  font-weight: 500;
  border-bottom: 2.5px solid #111827;
  box-shadow: none;
}
.nav-tab-active::after {
  width: 100%;
}
.nav-tab:hover,
.nav-tab:focus {
  background: none;
  color: #232328;
  box-shadow: none;
}
.nav-tab:hover::after {
  width: 100%;
}
.nav-main-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-menu-center {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-menu-center > li {
  margin: 0;
  padding: 0;
}
.nav-menu-center .nav-tab,
.nav-menu-center .nav-dropdown-toggle {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-width: 0;
}
.nav-menu-center .nav-tab,
.nav-menu-center .nav-dropdown-toggle,
.nav-menu-center .nav-lang-dropdown {
  margin: 0;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: #232328;
  text-decoration: none;
}
.dropdown-arrow {
  font-size: 0.9em;
}
.dropdown-menu {
  position: absolute;
  top: 2.5rem;
  left: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 100;
  display: none;
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: #232328;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
}
.dropdown-menu a:hover {
  background: #f2f3fa;
  border-radius: 8px;
}
.auth-buttons {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.login-button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid #232328;
  background: transparent;
  color: #232328;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s;
  box-shadow: none;
  white-space: nowrap;
  min-width: 120px;
}
.login-button:hover {
  background: #f2f3fa;
}
.login-arrow {
  font-size: 1.1em;
}
.open-account-button {
  padding: 0.75rem 1.5rem;
  border: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #111827;
  color: white;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  box-shadow: none;
  white-space: nowrap;
  min-width: 160px;
}
.open-account-button:hover {
  background: #232328;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #232328;
  border-radius: 2px;
  transition: all 0.2s;
}
@media (max-width: 1024px) {
  .nav-tabs-menu,
  .nav-main-menu,
  .auth-buttons {
    display: none !important;
  }
  .menu-toggle {
    display: flex !important;
  }
  .logo-nav-container {
    justify-content: space-between;
    width: 100%;
  }
}
@media (max-width: 1024px) {
  .header {
    width: 100% !important;
    left: 0;
    transform: none;
    border-radius: 32px;
    padding: 1rem 0.5rem;
    min-width: 0;
    right: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .logo-carousel .swiper-slide img {
    max-width: 60px;
  }
}
@media (max-width: 480px) {
  .logo-carousel .swiper-slide img {
    max-width: 40px;
  }
  .drawer-nav-tabs {
    gap: 0.4rem;
    padding: 0 0.5rem 0.7rem 0.5rem;
  }
  .drawer-nav-tabs .nav-tab {
    font-size: 0.95rem;
    padding: 0.5rem 0.3rem;
    border-radius: 9px;
    min-width: 0;
    flex: 1 1 0;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .header {
    width: 100% !important;
    left: 0;
    transform: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    min-width: 0;
    right: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .header-container {
    padding: 0 0.2rem;
    gap: 0.5rem;
  }
  .logo {
    height: 28px;
  }
}

/* Drawer móvil (menú lateral) */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
}
.mobile-drawer.active {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-logo {
  height: 32px;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #232328;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.drawer-nav {
  flex: 1;
  padding: 1.2rem 0.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer-nav-tabs {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.5rem 1.2rem 1.5rem;
}
.drawer-nav-tabs .nav-tab {
  flex: 1;
  background: none;
  border: 1.5px solid #d1d5db;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  padding: 0.7rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
.drawer-nav-tabs .nav-tab.nav-tab-active {
  background: #f2f3fa;
  color: #232328;
  font-weight: 500;
  border-color: #f2f3fa;
}
.drawer-nav-list {
  list-style: none;
  padding: 0 1.5rem;
  margin: 0;
}
.drawer-nav-item {
  margin-bottom: 0.7rem;
}
.drawer-nav-link {
  display: block;
  padding: 0.9rem 1rem;
  color: #232328;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}
.drawer-nav-link:hover {
  background: #f2f3fa;
}
.products-toggle-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: #232328;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}
.products-toggle-mobile:hover {
  background: #f2f3fa;
}
.dropdown-arrow-mobile {
  margin-left: 8px;
  font-size: 1.1em;
  transition: transform 0.3s;
}
.products-toggle-mobile[aria-expanded="true"] .dropdown-arrow-mobile {
  transform: rotate(180deg);
}
.products-menu-mobile {
  background: #f9fafb;
  padding: 0.5rem 0 0.5rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  list-style: none;
  padding-left: 0;
}
.drawer-nav-sublink {
  display: block;
  padding: 0.7rem 1rem;
  color: #232328;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}
.drawer-nav-sublink:hover {
  background: #f2f3fa;
}
.drawer-actions {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
}
.login-button-mobile,
.open-account-button-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.login-button-mobile {
  background-color: #fff;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  white-space: nowrap;
  min-width: 120px;
}
.login-button-mobile .login-arrow-mobile {
  font-size: 1.1em;
}
.login-button-mobile:hover {
  background-color: #f9fafb;
  border-color: #adb5bd;
}
.open-account-button-mobile {
  background-color: #111827;
  color: #fff;
  border: 1.5px solid #111827;
}
.open-account-button-mobile:hover {
  background-color: #232328;
  border-color: #232328;
}
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-overlay.active {
  display: block;
  opacity: 1;
}
@media (min-width: 1025px) {
  .mobile-drawer,
  .drawer-overlay {
    display: none !important;
  }
}

/* Selector de idioma en el header */
.nav-lang-dropdown {
  position: relative;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  color: #232328;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: background 0.2s;
  margin-right: 8px;
}
.lang-toggle:hover,
.lang-toggle:focus {
  background: #f2f3fa;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 110px;
  padding: 0.3rem 0.2rem;
  z-index: 1001;
  list-style: none;
  margin: 0;
}
.lang-menu li {
  margin: 0;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #232328;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}
.lang-option:hover,
.lang-option:focus {
  background: #f2f3fa;
}

/* Logos del carrusel más pequeños */
.logo-carousel .swiper-slide img {
  max-width: 60px;
  height: auto;
}

/* Swiper.js ya tiene loop: true en la config de tu index.html, así que el carrusel es infinito. */

/* Ocultar avatares en testimonios */
.testimonial-avatar {
  display: none !important;
}

/* Quitar subrayado a todos los enlaces */
a {
  text-decoration: none !important;
}
a:hover,
a:focus,
a:active {
  text-decoration: none !important;
}

.faq-section.section-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.faq-container {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
.faq-content {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 50%;
  padding-left: 0 !important;
  padding-right: 0;
  margin: 0;
  justify-content: flex-start;
}
.faq-image-col {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  width: 50%;
  padding: 0;
  margin: 0;
}
.faq-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  margin: 0;
  max-height: none;
  display: block;
}
@media (min-width: 1025px) {
  .faq-content {
    padding-left: 0 !important;
  }
}
@media (max-width: 900px) {
  .faq-section.section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .faq-container {
    flex-direction: column;
    gap: 2rem;
  }
  .faq-content,
  .faq-image-col {
    width: 100%;
    padding-left: 0;
  }
}

.dropdown-arrow-img {
  width: 25px;
  height: 25px;

  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1);
  transform: rotate(-90deg); /* Si la flecha original apunta a la izquierda */
  vertical-align: middle;
}

.nav-dropdown-toggle.open .dropdown-arrow-img {
  transform: rotate(0deg); /* Apunta hacia abajo */
}

.nav-tab-label {
  position: relative;
  display: inline-block;
}

.nav-tab-active .nav-tab-label::after {
  content: "";
  display: block;
  margin: 0 auto;
  margin-top: 0.18em;
  width: 100%;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
  transition: width 0.2s;
}

.nav-tab:hover .nav-tab-label::after {
  width: 100%;
}

/* Eliminar el subrayado anterior del botón completo */
.nav-tab::after,
.nav-tab-active::after,
.nav-tab:hover::after {
  display: none !important;
}
