/*BLOQUE USUARIO HEADER*/

.container-login-link {
    font-weight: bold;
    text-align: right;
    display: flex;
    padding: 10px;
    justify-content: flex-end;
    align-items: center;
}

.header-user-card {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: sans-serif;
}

.header-user-text {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
    text-align: right;
}

.header-user-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.2;
    text-transform: capitalize;
}

.header-user-role {
    font-size: 12px;
    color: #888;
    text-transform: capitalize;
}

.header-user-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: block;
    border: 1px solid rgba(14, 141, 141, 0.20);
    background: rgba(14, 141, 141, 0.10);
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Opcional: línea divisoria vertical a la izquierda del perfil */
.header-user-card {
    border-left: 1px solid #ececec;
    padding-left: 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 10px;
    transition: background 0.3s;
}

.header-user-card:hover { 
    border-radius: 8px;
    background: rgba(0,0,0,0.03); 
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    padding: 10px 0;
    display: none; /* Se activa con JS o Hover */
    z-index: 999;
}

/* Mostrar al pasar el mouse (opcional si usas JS) */
.header-user-card:hover .profile-dropdown-menu {
    display: block;
}

.profile-dropdown-menu .dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-dropdown-menu .dropdown-list li a {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 15px;
    text-decoration: none;
    color: #475569; /* Gris oscuro */
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    gap: 12px;
}

.profile-dropdown-menu .dropdown-list li a:hover {
    background: #f8fafc;
    color: #107c7c;
}

/* Iconos dentro del dropdown */
.profile-dropdown-menu .dropdown-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

.profile-dropdown-menu .dropdown-icon svg {
    width: 100%;
    height: 100%;
}

/* Color específico para Cerrar Sesión (Rojo en tu imagen) */
.profile-dropdown-menu .dropdown-list li a.logout-link {
    color: #ef4444;
}

.profile-dropdown-menu .dropdown-list li a.logout-link:hover {
    background: #fef2f2;
}

.profile-dropdown-menu .dropdown-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 8px 0;
}


/*VISTA USUARIO*/
.profile-icon-sm {
    width: 18px;
}

.profile-seccion-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.profile-header {
    background-color: #e9f2f2;
    /* Color de la franja superior */
    display: flex;
    flex-direction: column;
}

.profile-header-banner {
    height: 100px;
    /* Altura de la zona de color */
}

.profile-info-wrapper {
    background: #ffffff;
    padding: 20px 30px 25px 170px;
    /* Espacio para el avatar flotante */
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90px;
}

/* --- Avatar Flotante y Botón Editar --- */
.profile-avatar-container {
    position: absolute;
    left: 30px;
    top: -60px;
    /* Eleva el avatar sobre el banner */
}

.profile-avatar {
    position: relative;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.btn-edit-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #107c7c;
    /* Color turquesa de tu imagen */
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
    padding: 0;
}

.btn-edit-avatar i {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Contenedor del SVG para controlar el tamaño */
.profile-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* Ajusta según necesites */
    height: 20px;
}

.profile-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.w_14px{
    height: auto;
    width: 14px;
}
.w_20px{
    height: auto;
    width: 20px;
}

/* --- Textos del Header --- */
.profile-user-name {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    text-transform: capitalize;
}

.profile-role-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.profile-user-role {
    color: #94A3B8;
    font-family: Montserrat;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.profile-seccion-title {
    padding: 15px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-seccion-title h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    color: #0F172A;
    font-family: Montserrat;
}

.profile-seccion-card-info {
    display: grid;
    gap: 20px;
    padding: 25px;
    width: 90%;
    margin: auto;
    grid-template-columns: repeat(2, 1fr);
}

.profile-seccion-card-info .info.full {
    grid-column: 1 / -1;
}

.profile-seccion-card-info .info label {
    color: #94A3B8;
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.profile-seccion-card-info .info p {
    color: #334155;
    font-family: Montserrat;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* --- Modal --- */
.uam-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    align-items: center;
    justify-content: center;
}

.uam-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    font-family: Montserrat;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #94A3B8;
}

@media screen and (max-width: 768px) {
    .profile-seccion-card-info {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-info-wrapper {
        padding: 80px 20px 25px 20px;
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-container {
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-role-container {
        justify-content: center;
    }
}