/* Contenedor principal */
#desktop-header-container {
  font-family: 'DINNextRoundedLTPro', sans-serif;
}
.custom-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container {
  position: static;
  /* Importante para contexto de posicionamiento */
}

/* Contenedor elementos derecha */
.custom-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* Separación entre elementos */
  margin-left: auto;
  /* Empuja todo a la derecha */
  position: relative;
  /* z-index: 1000;  */
}

.dropdown-toggle::after {
  visibility: hidden;
  display: none;
}

/**
Codigo del los nav
*/
.custom-nav {
  position: relative;
  /* z-index: 1000; */
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

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

.nav-link {
  background: none;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #ffffff;
}

.dropdown-caret {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  line-height: 1;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  padding-top: 10px;
}

.dropdown-item {
  display: block;
  padding: 5px 15px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.vivofacil-corporativo {
  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 12px 40px 30px 30px !important;
    width: 270px !important;
    margin-left: -10px;
  }
  .dropdown-item {
    display: block;
    padding: 7px 0 !important;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  .dropdown-menu, .autocomplete-suggestions {
    border: none;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
  }
}

.dropdown-item:hover {
  background: #ffffff;
}

/* Estilos mejorados para el menú desplegable */
/* Corrección para los elementos del dropdown */
#dropdown-menu-area-presonal {
  background-color: #02648f;
  color: white;
  width: 100%;
  min-width: unset;
  border: none;
  border-radius: 0 0 10px 10px;
  margin-top: 0;
  text-align: center;
  padding: 10px 15px 0;
}

/* Corrección para el color blanco y espaciado */
#dropdown-menu-area-presonal li a.dropdown-item {
  color: white !important;
  /* Forzamos el color blanco */
  padding: 0.8rem 1.2rem;
  text-align: left;
  white-space: nowrap;
  display: block;
  text-decoration: none;
}

/* Eliminamos el espacio entre elementos li */
#dropdown-menu-area-presonal li {
  margin: 0;
  padding: 0;
}

/* Estilo hover corregido */
#dropdown-menu-area-presonal li a.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Divisores más sutiles sin espacio */
#dropdown-menu-area-presonal li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0;
}

.nav-image {
  padding: 0;
  max-width: 218px;
  height: 164px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  margin-top: 15px;
  margin-left: 12px;
}

/* Asegurar que el botón tenga un ancho consistente */
#area-personal {
  background-color: #02648f;
  color: white;
  border-radius: 10px 10px 10px 10px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 25px;
  justify-content: center;
}
#area-personal svg {
  margin-bottom: 4px;
}
/* Ajuste específico para el botón de registro */
#dropdown-menu-area-presonal .nav-register-btn {
  display: block;
  margin: 10px auto;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  box-sizing: border-box;
  /* Incluye padding y border en el ancho total */
  padding: 10px 26px 10px 26px;
  /* Ajuste de padding para mejor encaje */
  text-align: center;
  /* Reducir ligeramente el tamaño de fuente si es necesario */
  white-space: nowrap;
  /* Evita que el texto se divida en varias líneas */
  overflow: hidden;
  /* Previene desbordamiento */
  text-overflow: ellipsis;
  /* Añade puntos suspensivos si el texto es muy largo */
  border-radius: 20px;
  /* Mantiene el estilo redondeado */
  transition: all 0.3s ease;
  font-size: 16px;
  gap: 10px;
  text-transform: uppercase;
  font-family: 'DINNextRoundedLTPro', sans-serif
}

/* Ajuste para el contenedor del botón */
#dropdown-menu-area-presonal .nav-item.nav-image-item {
  padding: 5px 15px 15px;
  /* Reducir padding superior */
  margin: 0;
}

.nav-item.nav-image-item {
  display: flex;
  justify-content: center;
}

/* Estado hover del botón */
#dropdown-menu-area-presonal .nav-register-btn:hover {
  background-color: white;
  color: #02648f;
  transform: none;
  /* Eliminamos transform para evitar movimientos */
}

.dropdown-menu a.dropdown-item {
  border: none !important;
  border-width: 0;
  color: #02648f !important;
  font-size: 20px;
  white-space: normal;
  font-weight: 400;
}

.dropdown-menu a.dropdown-item:hover {
  border: none !important;
  border-width: 0;
  background-color: transparent;
  color: #00b3ff !important;
}

#vivofacil-corporativo {
  font-family: 'DINNextRoundedLTPro', sans-serif !important;
  color: #02648f;
  font-size: 25px;
  font-weight: 400;
}

/* Para los elementos del menu corporativo */

/* Contenedor principal */

/* Contenedor de imágenes */
.global-image-container {
  width: 400px;
  min-height: 300px;
  position: absolute;
  right: 0;
  top: 0;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-item-nav:hover .global-image-container {
  opacity: 1;
}

/* Imagen hover */
.menu-hover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* icono buscar */
i.fa.fa-search.fa-fw.icon {
  color: #02648f;
}

.header-btn-w {
  border: solid 2px #02648f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  align-content: center;
  display: flex;
  justify-content: center;
}

/* En customtopmenu.css */

/* Contenedor para prevenir desplazamiento */
.custom-nav-right {
  position: static;
  /* Mantener en flujo normal */
  min-width: 80px;
  /* Reservar espacio */
  display: flow;
}

/* Alineación general */
.custom-header-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

/* Elementos derecha - desktop */
.custom-nav-right {
  display: flex;
  gap: 1.5rem;
  order: 2;
}

/* Contenedor principal - asegura que use flexbox */
.row.align-items-center {
  display: flex;
  width: 100%;
}

/* Logo - empuja todo lo demás a la derecha */
/* .col-header-left {
  margin-right: auto;
} */

/* Asegura que los elementos se mantengan en línea */
.custom-nav,
#personal-nav {
  display: inline-block;
}

.contacto-dropdown {
  /* position: absolute; */
  top: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  font-size: 20px;
  font-weight: 400;
}

/* Elementos del formulario */
.contacto-dropdown input,
.contacto-dropdown textarea,
.contacto-dropdown .form-check-input {
  font-size: 20px;
  font-weight: 400;
  border: solid 2px;
}

/* Placeholders */
.contacto-dropdown input::placeholder,
.contacto-dropdown textarea::placeholder {
  font-size: 20px;
  font-weight: 400;
}

/* Versiones específicas para navegadores */
.contacto-dropdown input::-webkit-input-placeholder,
.contacto-dropdown textarea::-webkit-input-placeholder {
  font-size: 20px;
  font-weight: 400;
}

.contacto-dropdown input:-moz-placeholder,
.contacto-dropdown textarea:-moz-placeholder {
  font-size: 20px;
  font-weight: 400;
}

.contacto-dropdown input::-moz-placeholder,
.contacto-dropdown textarea::-moz-placeholder {
  font-size: 20px;
  font-weight: 400;
}

.form-control {
  width: 100%;
}

/* Border del icono del buscar */

/* Borde de 1px para el icono de la lupa */
.material-symbols-outlined {
  font-size: 24px;
  /* Tamaño del ícono (coincide con opsz=24 del enlace) */
  color: #02648f;
  /* Color del ícono */
  vertical-align: middle;
  font-weight: 400 !important;
}

/* Estilos para el dropdown de búsqueda */
.header-search-btn-w {
  position: relative;
}

.dropdown-search {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  width: 300px !important;
  /* max-width: 200px !important; */
  min-width: 200px !important;
  z-index: 1000 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background: white !important;
  padding: 5px !important;
  margin: 0 !important;
  transform: none !important;
}

/* Ajustar si se sale por la derecha de la pantalla */
@media (max-width: 250px) {
  .dropdown-search {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 150px !important;
    right: 10px !important;
  }
}

/* Border radius del area personal */
/* En customtopmenu.css */
#area-personal {
  font-family: 'DINNextRoundedLTPro', sans-serif !important;
  border-radius: 10px;
  transition: border-radius 0.3s ease;
  /* width: 244px !important; */
  height: 45px !important;
  font-weight: 400;
}

/* Cuando el dropdown está abierto */
#area-personal[aria-expanded="true"] {
  border-radius: 10px 10px 0 0 !important;
}

/* Selector de idioma personalizado */
.language-selector-custom {
  position: relative;
  min-width: 60px;
  z-index: 1000;
}

.iso {
  color: #02648f;
  font-size: 25px;
}

.selected-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);;
  padding: 5px 16px 2px;
  margin-top: 0;
  display: none;
  min-width: 109px;
  margin-left: -30%;
}

.lang-dropdown li {
  padding: 10px 0 10px;
  color: #02648f;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: 2px solid #00A0E6;
}
.lang-dropdown li:last-child {
  border-bottom: none !important;
}
.lang-dropdown li:hover {
  /* background: #f0f8ff; */
  color: #007bff;
}

/* .lang-dropdown li.active {
  background: #e6f3ff;
} */

.lang-separator {
  border: 0;
  border-top: 2px solid #02648f;
  margin: 8px 0;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.lang-dropdown.show {
  display: block;
}

.full-name {
  font-size: 20px;
  font-weight: 400;
}

.full-name.selected {
  color: #00A0E6;
  font-weight: 700;
}

.nav-link.dropdown-trigger {
  display: inline-flex;
  gap: 8px;
  align-items: flex-end;
}

.material-symbols-outlined.arrow-thin {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" -25, "opsz" 24;
  font-size: 1.2rem;
  color: currentColor;
  margin-left: 8px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.dropdown-trigger[aria-expanded="true"] .arrow-thin {
  transform: rotate(180deg);
}

.nombre-usuario-nav {
  font-size: 20px;
  text-align: start;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  margin-top: 5px;
  color: #00a0e6 !important;
}

.nombre-usuario p {
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
