/* ============================================
   BARRA LATERAL IZQUIERDA
   ============================================ */
.layout__aside {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.500) var(--color-primary); /* Color del scrollbar y fondo */
    scrollbar-width: thin; 
}

.aside__user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   FOTO DE PERFIL
   ============================================ */
.user-info__container-imagen {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.user-info__imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   NOMBRE Y TÍTULO
   ============================================ */
.user-info__name {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1rem;
}

.user-info__job {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================
   MENÚ DE NAVEGACIÓN CON EFECTO HOVER DE TEXTO
   ============================================ */
.layout__menu {
    width: 100%;
    margin: 0.5rem 0;
    flex-shrink: 0;
}

.menu__list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu__option {
    position: relative;
}

.menu__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    color: rgba(255,255,255,0.8);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 45px;
}

/* Icono normal */
.menu__icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Texto que aparece en hover (inicialmente oculto) */
.menu__link::after {
    content: attr(data-menu);
    position: absolute;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
}

/* Efecto hover: ocultar icono, mostrar texto */
.menu__link:hover,
.menu__link--active {
    color: white;
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.menu__link:hover .menu__icon,
.menu__link--active .menu__icon {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

.menu__link:hover::after,
.menu__link--active::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    position: static;
}

/* Eliminar el tooltip anterior ya que ahora el texto aparece en el propio botón */
.menu__overlay {
    display: none;
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.user-info__links {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.links__social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.social__link {
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social__link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* ============================================
   BOTÓN CV
   ============================================ */
.user-info__buttons {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.user-info__btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.user-info__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: -1;
}

.user-info__btn:hover {
    color: var(--color-primary);
}

.user-info__btn:hover::before {
    left: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.user-info__footer {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-align: center;
    flex-shrink: 0;
    padding-bottom: 0.5rem;
}
