/* =====================================================
   PASALAVENTA - NOTIFICACIONES
   ===================================================== */

/* ================= CONTENEDOR ================= */

.notificaciones-container {
    position: relative;
    margin-left: 15px;
    z-index: 1000;
}

/* ================= BOTÓN CAMPANA ================= */

.notificaciones-btn {
    position: relative;
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: transparent;

    font-size: 21px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease, transform 0.2s ease;
}

.notificaciones-btn:hover {
    background: #f3f3f3;
    transform: scale(1.05);
}

/* ================= CONTADOR ================= */

.notificaciones-count {
    position: absolute;

    top: 1px;
    right: 0px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border-radius: 20px;

    background: #e53935;
    color: white;

    font-size: 10px;
    font-weight: 700;

    display: none;

    align-items: center;
    justify-content: center;

    border: 2px solid white;
}

/* ================= PANEL ================= */

.notificaciones-panel {
    position: absolute;

    top: 50px;
    right: -10px;

    width: 360px;
    max-height: 480px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    display: none;
}

/* ================= HEADER PANEL ================= */

.notificaciones-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid #eeeeee;
}

.notificaciones-header h3 {
    margin: 0;

    font-size: 17px;

    color: #222;
}

.notificaciones-header button {
    border: none;

    background: none;

    color: #c62828;

    font-size: 11px;

    cursor: pointer;

    padding: 4px;
}

.notificaciones-header button:hover {
    text-decoration: underline;
}

/* ================= LISTA ================= */

#notificacionesLista {
    max-height: 410px;

    overflow-y: auto;
}

/* ================= AVISO ================= */

.notificacion {
    position: relative;

    display: flex;

    gap: 12px;

    padding: 15px 18px;

    border-bottom: 1px solid #f0f0f0;

    cursor: pointer;

    transition: background 0.2s ease;
}

.notificacion:hover {
    background: #f8f8f8;
}

/* ================= NO LEÍDA ================= */

.notificacion.no-leida {
    background: #fff5f5;
}

.notificacion.no-leida:hover {
    background: #ffeded;
}

/* ================= ICONO ================= */

.notificacion-icono {
    width: 38px;
    height: 38px;

    min-width: 38px;

    border-radius: 50%;

    background: #f1f1f1;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

/* ================= CONTENIDO ================= */

.notificacion-contenido {
    flex: 1;

    min-width: 0;
}

.notificacion-titulo {
    margin: 0 0 4px;

    font-size: 14px;

    font-weight: 700;

    color: #222;
}

.notificacion-mensaje {
    margin: 0;

    font-size: 13px;

    line-height: 1.4;

    color: #666;
}

.notificacion-fecha {
    display: block;

    margin-top: 6px;

    font-size: 11px;

    color: #999;
}

/* ================= PUNTO NO LEÍDA ================= */

.notificacion-punto {
    width: 7px;
    height: 7px;

    min-width: 7px;

    margin-top: 7px;

    border-radius: 50%;

    background: #e53935;
}

/* ================= VACÍO ================= */

.notificaciones-vacio {
    padding: 45px 20px;

    text-align: center;

    color: #888;

    font-size: 13px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 600px) {

    .notificaciones-panel {
        position: fixed;

        top: 70px;
        left: 10px;
        right: 10px;

        width: auto;

        max-height: calc(100vh - 90px);
    }

    #notificacionesLista {
        max-height: calc(100vh - 160px);
    }

}