/* ==========================================
   ASISTENTE PSW – VERSION ESTABLE
========================================== */

/* BOTÓN FLOTANTE */

#psw-asistente-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
}

#psw-asistente-btn:hover {
    transform: scale(1.08);
}

/* PANEL */

#psw-asistente-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100%;
    background: #ffffff;
    box-shadow: -8px 0 40px rgba(0,0,0,0.25);
    z-index: 999998;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#psw-asistente-panel.active {
    right: 0;
}

/* HEADER */

.psw-asistente-header {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    padding: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#psw-asistente-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

/* BODY */

.psw-asistente-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

#psw-asistente-input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

#psw-asistente-search {
    padding: 12px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* RESULTADOS */

#psw-asistente-resultados {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psw-asistente-card {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
}

.psw-asistente-card img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
}

.psw-asistente-card a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #2e7d32;
}

.psw-asistente-card small {
    display: block;
    font-size: 11px;
    color: #666;
}

.psw-asistente-vermas {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    text-decoration: none;
}

/* MÓVIL */

@media (max-width: 768px) {
    #psw-asistente-panel {
        width: 100%;
    }

    #psw-asistente-btn {
        width: 58px;
        height: 58px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}