/* =============================
   CONTENEDOR ICONO USUARIO
============================= */
.contenedor-usuario-hover {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 250;
}

/* Icono de usuario */
.icono-usuario {
  font-size: 2rem;
  color: #000;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.icono-usuario:hover {
  color: #b76e79;
}

/* =============================
   MENÚ USUARIO - ESCRITORIO
============================= */
@media (min-width: 769px) {
  .menu-usuario {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #f0d3d9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0.3rem;
    width: 190px;        /* ancho uniforme */
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
  }

  .menu-usuario.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-usuario li {
    text-align: center;
    margin: 0.25rem 0;
  }

  .menu-usuario li p {
    margin: 0.3rem 0;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.2;
    padding: 0 0.3rem;
  }

  

  /* =============================
     BOTONES Y ENLACES INTERNOS
  ============================= */
  .menu-usuario li a,
  .menu-usuario li button,
  .menu-usuario li .btn-menu-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;       /* ancho uniforme */
    height: 20px;       /* altura reducida */
    padding: 0 0.4rem;
    margin: 0.15rem auto;
    font-size: 0.65rem; /* texto reducido */
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #f0d3d9;
    background: #fbe9ed;
    color: #8a4b57;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
  }

  .menu-usuario li a:hover,
  .menu-usuario li button:hover,
  .menu-usuario li .btn-menu-login:hover {
    background: #f0d3d9;
    transform: scale(1.05);
  }

  /* =============================
     BOTÓN INICIAR SESIÓN FUERA DE MENÚ (SOLO ESCRITORIO)
  ============================= */
  .btn-menu-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 170px;       
    height: 20px;       /* altura reducida */
    padding: 0 0.4rem;
    margin: 0.15rem auto;
    font-size: 0.65rem; /* texto reducido */
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #f0d3d9;
    background: #fbe9ed;
    color: #8a4b57;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
  }

  .btn-menu-login:hover {
    background: #f0d3d9;
    transform: scale(1.05);
  }
}

/* Nombre + Apellido y Distribuidora */
.menu-usuario .nombre-usuario,
.menu-usuario .distribuidora {
  color: #8a4b57;     /* Color especial */
  font-weight: 700;   /* Un poco más grueso */
}

/* Menú de usuario en móviles: se despliega debajo de la fila de iconos. */
@media (max-width: 768px) {
  #menuUsuario.menu-usuario {
    box-sizing: border-box;
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    list-style: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #fbe9ed;
    border: 1px solid #f0d3d9;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 12px rgba(136, 14, 79, .10);
    z-index: 1200;
  }
  #menuUsuario.menu-usuario.show { display: block !important; }
  #menuUsuario.menu-usuario li { list-style: none; margin: 0; text-align: center; }
  #menuUsuario.menu-usuario li a,
  #menuUsuario.menu-usuario li button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 4px 0;
    padding: 10px 14px;
    border: 1px solid #f3b5cc;
    border-radius: 9px;
    background: #fff;
    color: #8a4b57;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
}
