* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
	font-size: 10px;
}
header {
    flex: 0 0 var(--hemsa-header-height, 62px);
    min-height: var(--hemsa-header-height, 62px);
    position: relative;
    z-index: 110;
    background: linear-gradient(90deg, #3E8F84 0%, #3CBF9E 100%);
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: inherit;
    text-decoration: none;
}
header .logo img {
    height: 40px;
}
.logo:hover {
    cursor: pointer;
}
header .logo span {
    font-size: 2rem;
    font-weight: 600;
}
header .login_register_link {
    color: white;
}
.container_nav {
    display: flex;
    flex: 1;
    justify-content: space-between; /* Botones bien repartidos, sin tanto espacio extra */
    align-items: center;
}
.user_info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin-left: 1rem;
    background-color: transparent;
    justify-content: end;
    align-items: center; /* 🔥 Centra verticalmente */
    gap: 8px; /* Espacio entre nombre y botón logout */
    height: var(--hemsa-header-height, 62px);
}
.user_info .user_icon,
.user_info input[type="image"].user_icon {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.user_name {
  display: flex;
  pointer-events: auto;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  width: 90%;
  background-color: transparent;
  margin-top: auto;
  margin-bottom: auto;
  align-items: center; /* 🔥 También centra dentro del span */
  justify-content: end;
}
.user_name a {
  pointer-events: auto;
  cursor: pointer;
}
.user_dropdown {
  display: inline-block;
  position: relative;
  background-color: transparent;
  height: fit-content;
}
.user_trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: white;
  cursor: pointer;
  height: var(--hemsa-header-height, 62px);
  border: 0;
  box-shadow: none;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.user_trigger:hover {
  background-color: rgba(255, 255, 255, 0.14);
}
.user_trigger:focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
}
.user_trigger span{
  font-size: 1.4em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.user_submenu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  z-index: 100;
  overflow: hidden;
  min-width: 190px;
  padding: 6px;
}
.user_submenu button,
.user_submenu a {
  display: block;
  text-decoration: none;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  font-size: 1.35rem;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  color: var(--colorSecundario_5);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.user_submenu button:hover,
.user_submenu button:focus,
.user_submenu a:hover,
.user_submenu a:focus {
  background-color: var(--colorPrincipal_1);
  color: var(--colorPrincipal_6);
  outline: none;
}

/* Mostrar el menú al pasar el cursor */
.user_dropdown:hover .user_submenu,
.user_dropdown:focus-within .user_submenu,
.user_submenu:hover {
  display: block;
}

.bt_logout {
    background-color: transparent;
    width: 10%;
  }

.bt_logout:hover {
    transform: scale(1.2); /* 🔥 Aumenta el tamaño al 120% */
}
.invisible{
    display: none;
}

/*----------RESPONSIVE MÓVIL-----------*/
@media (max-width: 1024px) {
  /* Logo: ocultar imagen, dejar solo el texto "databey" */
  .logo img { display: none; }
  #logo_span { display: inline; }
}
